#define CMP_ERROR 999
-struct adata *
+static struct adata *
adata_empty(struct linpool *pool)
{
struct adata *res = lp_alloc(pool, sizeof(struct adata));
/*
* val_simple_in_range - check if @v1 ~ @v2 for everything except sets
*/
-int
+static int
val_simple_in_range(struct f_val v1, struct f_val v2)
{
if ((v1.type == T_PATH) && (v2.type == T_PATH_MASK))
* Checks if @v1 is element (|~| operator) of @v2. Sets are internally represented as balanced trees, see
* |tree.c| module (this is not limited to sets, but for non-set cases, val_simple_in_range() is called early).
*/
-int
+static int
val_in_range(struct f_val v1, struct f_val v2)
{
int res;
/*
* rta_cow - prepare rta for modification by filter
*/
-void
+static void
rta_cow(void)
{
if (!f_rta_copy) {
return s;
}
-struct sl_head *
+static struct sl_head *
sl_new_head(slab *s)
{
struct sl_head *h = xmalloc(SLAB_SIZE);
static void bgp_initiate(struct bgp_proto *p);
static void bgp_setup_listen_sk(void);
-void
+static void
bgp_close(struct bgp_proto *p UNUSED)
{
ASSERT(bgp_counter);
}
}
-void
+static void
ospf_dbdes_reqladd(struct ospf_dbdes_packet *ps, struct ospf_neighbor *n)
{
struct ospf_lsa_header *plsa, lsa;
char *ospf_it[]={ "broadcast", "nbma", "point-to-point", "virtual link" };
-void
+static void
poll_timer_hook(timer *timer)
{
ospf_hello_send(timer, 1, NULL);
}
-void
+static void
hello_timer_hook(timer *timer)
{
ospf_hello_send(timer, 0, NULL);
}
-void
+static void
wait_timer_hook(timer *timer)
{
struct ospf_iface *ifa;
return(n);
}
-int
+static int
can_do_adj(struct ospf_neighbor *n)
{
struct ospf_iface *ifa;
rxmt_timer_hook(timer *timer)
{
struct ospf_neighbor *n = (struct ospf_neighbor *)timer->data;
- struct ospf_iface *ifa = n->ifa;
struct top_hash_entry *en;
DBG("%s: RXMT timer fired on interface %s for neigh: %I.\n",
return;
}
-int
+static int
ospf_rx_authenticate (struct ospf_iface *ifa, struct ospf_packet *pkt)
{
int i;
#define HASH_LO_STEP 2
#define HASH_LO_MIN 8
-void *
+static void *
originate_rt_lsa_body(struct ospf_area *oa, u16 *length, struct proto_ospf *p)
{
struct ospf_iface *ifa;
oa->origrt=0;
}
-void *
+static void *
originate_net_lsa_body(struct ospf_iface *ifa, u16 *length,
struct proto_ospf *po)
{
}
}
-struct iface *
+static struct iface *
krt_temp_iface(struct krt_proto *p, unsigned index)
{
struct iface *i, *j;