summaryrefslogtreecommitdiff
path: root/bgpd/bgp_zebra.c
diff options
context:
space:
mode:
authorpaul <paul>2005-06-28 12:44:16 +0000
committerpaul <paul>2005-06-28 12:44:16 +0000
commit94f2b3923e9663d0355a829f22e4e31cf68ee7b8 (patch)
tree59c0291a76b1c97fbb089abb479307f19cdfd4c1 /bgpd/bgp_zebra.c
parent7cad40007b9714dba65065916ea68577f9d3d6dd (diff)
2005-06-28 Paul Jakma <paul.jakma@sun.com>
* (global) The great bgpd extern and static'ification. * bgp_routemap.c: remove unused ROUTE_MATCH_ASPATH_OLD code (route_set_metric_compile) fix u_int32_t to ULONG_MAX comparison warnings. * bgp_route.h: (bgp_process, bgp_withdraw, bgp_update) export these used by various files which had their own private declarations, in the case of mplsvpn - incorrect.
Diffstat (limited to 'bgpd/bgp_zebra.c')
-rw-r--r--bgpd/bgp_zebra.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c
index b4496e21..0cb9e0e2 100644
--- a/bgpd/bgp_zebra.c
+++ b/bgpd/bgp_zebra.c
@@ -42,7 +42,7 @@ static struct zclient *zclient = NULL;
struct in_addr router_id_zebra;
/* Router-id update message from zebra. */
-int
+static int
bgp_router_id_update (int command, struct zclient *zclient, zebra_size_t length)
{
struct prefix router_id;
@@ -62,7 +62,7 @@ bgp_router_id_update (int command, struct zclient *zclient, zebra_size_t length)
}
/* Inteface addition message from zebra. */
-int
+static int
bgp_interface_add (int command, struct zclient *zclient, zebra_size_t length)
{
struct interface *ifp;
@@ -72,7 +72,7 @@ bgp_interface_add (int command, struct zclient *zclient, zebra_size_t length)
return 0;
}
-int
+static int
bgp_interface_delete (int command, struct zclient *zclient,
zebra_size_t length)
{
@@ -86,7 +86,7 @@ bgp_interface_delete (int command, struct zclient *zclient,
return 0;
}
-int
+static int
bgp_interface_up (int command, struct zclient *zclient, zebra_size_t length)
{
struct stream *s;
@@ -106,7 +106,7 @@ bgp_interface_up (int command, struct zclient *zclient, zebra_size_t length)
return 0;
}
-int
+static int
bgp_interface_down (int command, struct zclient *zclient, zebra_size_t length)
{
struct stream *s;
@@ -153,7 +153,7 @@ bgp_interface_down (int command, struct zclient *zclient, zebra_size_t length)
return 0;
}
-int
+static int
bgp_interface_address_add (int command, struct zclient *zclient,
zebra_size_t length)
{
@@ -170,7 +170,7 @@ bgp_interface_address_add (int command, struct zclient *zclient,
return 0;
}
-int
+static int
bgp_interface_address_delete (int command, struct zclient *zclient,
zebra_size_t length)
{
@@ -190,7 +190,7 @@ bgp_interface_address_delete (int command, struct zclient *zclient,
}
/* Zebra route add and delete treatment. */
-int
+static int
zebra_read_ipv4 (int command, struct zclient *zclient, zebra_size_t length)
{
struct stream *s;
@@ -242,7 +242,7 @@ zebra_read_ipv4 (int command, struct zclient *zclient, zebra_size_t length)
#ifdef HAVE_IPV6
/* Zebra route add and delete treatment. */
-int
+static int
zebra_read_ipv6 (int command, struct zclient *zclient, zebra_size_t length)
{
struct stream *s;
@@ -402,7 +402,7 @@ if_lookup_by_ipv6_exact (struct in6_addr *addr)
return NULL;
}
-int
+static int
if_get_ipv6_global (struct interface *ifp, struct in6_addr *addr)
{
struct listnode *cnode;
@@ -423,7 +423,7 @@ if_get_ipv6_global (struct interface *ifp, struct in6_addr *addr)
return 0;
}
-int
+static int
if_get_ipv6_local (struct interface *ifp, struct in6_addr *addr)
{
struct listnode *cnode;
@@ -558,7 +558,7 @@ bgp_nexthop_set (union sockunion *local, union sockunion *remote,
}
#ifdef HAVE_IPV6
-unsigned int
+static unsigned int
bgp_ifindex_by_nexthop (struct in6_addr *addr)
{
struct listnode *ifnode;
@@ -914,13 +914,13 @@ bgp_redistribute_metric_unset (struct bgp *bgp, afi_t afi, int type)
}
void
-bgp_zclient_reset ()
+bgp_zclient_reset (void)
{
zclient_reset (zclient);
}
void
-bgp_zebra_init (int enable)
+bgp_zebra_init (void)
{
/* Set default values. */
zclient = zclient_new ();