vector vrf_vector;
/* Allocate new VRF. */
-struct vrf *
+static struct vrf *
vrf_alloc (const char *name)
{
struct vrf *vrf;
}
/* Free VRF. */
-void
+static void
vrf_free (struct vrf *vrf)
{
if (vrf->name)
}
/* Lookup VRF by name. */
-struct vrf *
+static struct vrf *
vrf_lookup_by_name (char *name)
{
unsigned int i;
}
/* Initialize VRF. */
-void
-vrf_init ()
+static void
+vrf_init (void)
{
struct vrf *default_table;
}
\f
/* Add nexthop to the end of the list. */
-void
+static void
nexthop_add (struct rib *rib, struct nexthop *nexthop)
{
struct nexthop *last;
}
/* Delete specified nexthop from the list. */
-void
+static void
nexthop_delete (struct rib *rib, struct nexthop *nexthop)
{
if (nexthop->next)
}
/* Free nexthop. */
-void
+static void
nexthop_free (struct nexthop *nexthop)
{
if (nexthop->ifname)
return nexthop;
}
-struct nexthop *
+static struct nexthop *
nexthop_ipv4_ifindex_add (struct rib *rib, struct in_addr *ipv4,
unsigned int ifindex)
{
return nexthop;
}
-struct nexthop *
+static struct nexthop *
nexthop_ipv6_ifname_add (struct rib *rib, struct in6_addr *ipv6,
char *ifname)
{
return nexthop;
}
-struct nexthop *
+static struct nexthop *
nexthop_ipv6_ifindex_add (struct rib *rib, struct in6_addr *ipv6,
unsigned int ifindex)
{
/* If force flag is not set, do not modify falgs at all for uninstall
the route from FIB. */
-int
+static int
nexthop_active_ipv4 (struct rib *rib, struct nexthop *nexthop, int set,
struct route_node *top)
{
#ifdef HAVE_IPV6
/* If force flag is not set, do not modify falgs at all for uninstall
the route from FIB. */
-int
+static int
nexthop_active_ipv6 (struct rib *rib, struct nexthop *nexthop, int set,
struct route_node *top)
{
}
#endif /* HAVE_IPV6 */
-int
+static int
nexthop_active_check (struct route_node *rn, struct rib *rib,
struct nexthop *nexthop, int set)
{
return CHECK_FLAG (nexthop->flags, NEXTHOP_FLAG_ACTIVE);
}
-int
+static int
nexthop_active_update (struct route_node *rn, struct rib *rib, int set)
{
struct nexthop *nexthop;
return rib;
}
-void
+static void
rib_install_kernel (struct route_node *rn, struct rib *rib)
{
int ret = 0;
}
/* Uninstall the route from kernel. */
-int
+static int
rib_uninstall_kernel (struct route_node *rn, struct rib *rib)
{
int ret = 0;
}
/* Uninstall the route from kernel. */
-void
+static void
rib_uninstall (struct route_node *rn, struct rib *rib)
{
if (CHECK_FLAG (rib->flags, ZEBRA_FLAG_SELECTED))
}
/* Core function for processing routing information base. */
-wq_item_status
+static wq_item_status
rib_process (struct zebra_queue_node_t *qnode)
{
struct rib *rib;
}
/* Add work queue item to work queue and schedule processing */
-void
+static void
rib_queue_add_qnode (struct zebra_t *zebra, struct zebra_queue_node_t *qnode)
{
route_lock_node (qnode->node);
}
/* Add route node and rib to work queue and schedule processing */
-void
+static void
rib_queue_add (struct zebra_t *zebra, struct route_node *rn, struct rib *del)
{
struct zebra_queue_node_t *qnode;
}
/* free zebra_queue_node_t */
-void
+static void
rib_queue_qnode_del (struct zebra_queue_node_t *qnode)
{
route_unlock_node (qnode->node);
}
/* initialise zebra rib work queue */
-void
+static void
rib_queue_init (struct zebra_t *zebra)
{
assert (zebra);
}
/* Add RIB to head of the route node. */
-void
+static void
rib_addnode (struct route_node *rn, struct rib *rib)
{
struct rib *head;
rn->info = rib;
}
-void
+static void
rib_delnode (struct route_node *rn, struct rib *rib)
{
assert (rn && rib);
}
\f
/* Install static route into rib. */
-void
+static void
static_install_ipv4 (struct prefix *p, struct static_ipv4 *si)
{
struct rib *rib;
}
}
-int
+static int
static_ipv4_nexthop_same (struct nexthop *nexthop, struct static_ipv4 *si)
{
if (nexthop->type == NEXTHOP_TYPE_IPV4
}
/* Uninstall static route from RIB. */
-void
+static void
static_uninstall_ipv4 (struct prefix *p, struct static_ipv4 *si)
{
struct route_node *rn;
\f
#ifdef HAVE_IPV6
-int
+static int
rib_bogus_ipv6 (int type, struct prefix_ipv6 *p,
struct in6_addr *gate, unsigned int ifindex, int table)
{
}
\f
/* Install static route into rib. */
-void
+static void
static_install_ipv6 (struct prefix *p, struct static_ipv6 *si)
{
struct rib *rib;
}
}
-int
+static int
static_ipv6_nexthop_same (struct nexthop *nexthop, struct static_ipv6 *si)
{
if (nexthop->type == NEXTHOP_TYPE_IPV6
return 0;;
}
-void
+static void
static_uninstall_ipv6 (struct prefix *p, struct static_ipv6 *si)
{
struct route_table *table;
\f
/* RIB update function. */
void
-rib_update ()
+rib_update (void)
{
struct route_node *rn;
struct route_table *table;
}
/* Interface goes up. */
-void
+static void
rib_if_up (struct interface *ifp)
{
rib_update ();
}
/* Interface goes down. */
-void
+static void
rib_if_down (struct interface *ifp)
{
rib_update ();
}
\f
/* Remove all routes which comes from non main table. */
-void
+static void
rib_weed_table (struct route_table *table)
{
struct route_node *rn;
/* Delete all routes from non main table. */
void
-rib_weed_tables ()
+rib_weed_tables (void)
{
rib_weed_table (vrf_table (AFI_IP, SAFI_UNICAST, 0));
rib_weed_table (vrf_table (AFI_IP6, SAFI_UNICAST, 0));
}
\f
/* Delete self installed routes after zebra is relaunched. */
-void
+static void
rib_sweep_table (struct route_table *table)
{
struct route_node *rn;
/* Sweep all RIB tables. */
void
-rib_sweep_route ()
+rib_sweep_route (void)
{
rib_sweep_table (vrf_table (AFI_IP, SAFI_UNICAST, 0));
rib_sweep_table (vrf_table (AFI_IP6, SAFI_UNICAST, 0));
}
\f
/* Close RIB and clean up kernel routes. */
-void
+static void
rib_close_table (struct route_table *table)
{
struct route_node *rn;
/* Close all RIB tables. */
void
-rib_close ()
+rib_close (void)
{
rib_close_table (vrf_table (AFI_IP, SAFI_UNICAST, 0));
rib_close_table (vrf_table (AFI_IP6, SAFI_UNICAST, 0));
\f
/* Routing information base initialize. */
void
-rib_init ()
+rib_init (void)
{
rib_queue_init (&zebrad);
/* VRF initialization. */