summaryrefslogtreecommitdiff
path: root/bgpd/bgp_open.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_open.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_open.c')
-rw-r--r--bgpd/bgp_open.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/bgpd/bgp_open.c b/bgpd/bgp_open.c
index b1d0fc14..e44bd2a0 100644
--- a/bgpd/bgp_open.c
+++ b/bgpd/bgp_open.c
@@ -112,7 +112,7 @@ bgp_capability_vty_out (struct vty *vty, struct peer *peer)
}
/* Set negotiated capability value. */
-int
+static int
bgp_capability_mp (struct peer *peer, struct capability *cap)
{
if (ntohs (cap->mpc.afi) == AFI_IP)
@@ -181,7 +181,7 @@ bgp_capability_mp (struct peer *peer, struct capability *cap)
return 0;
}
-void
+static void
bgp_capability_orf_not_support (struct peer *peer, afi_t afi, safi_t safi,
u_char type, u_char mode)
{
@@ -190,7 +190,7 @@ bgp_capability_orf_not_support (struct peer *peer, afi_t afi, safi_t safi,
peer->host, afi, safi, type, mode);
}
-int
+static int
bgp_capability_orf (struct peer *peer, struct capability *cap,
u_char *pnt)
{
@@ -307,7 +307,7 @@ bgp_capability_orf (struct peer *peer, struct capability *cap,
}
/* Parse given capability. */
-int
+static int
bgp_capability_parse (struct peer *peer, u_char *pnt, u_char length,
u_char **error)
{
@@ -504,7 +504,7 @@ bgp_capability_parse (struct peer *peer, u_char *pnt, u_char length,
return 0;
}
-int
+static int
bgp_auth_parse (struct peer *peer, u_char *pnt, size_t length)
{
bgp_notify_send (peer,
@@ -513,7 +513,7 @@ bgp_auth_parse (struct peer *peer, u_char *pnt, size_t length)
return -1;
}
-int
+static int
strict_capability_same (struct peer *peer)
{
int i, j;
@@ -660,7 +660,7 @@ bgp_open_option_parse (struct peer *peer, u_char length, int *capability)
return 0;
}
-void
+static void
bgp_open_capability_orf (struct stream *s, struct peer *peer,
afi_t afi, safi_t safi, u_char code)
{