summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_damp.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_damp.c
parent7cad40007b9714dba65065916ea68577f9d3d6dd (diff)
downloadquagga-94f2b3923e9663d0355a829f22e4e31cf68ee7b8.tar.bz2
quagga-94f2b3923e9663d0355a829f22e4e31cf68ee7b8.tar.xz
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_damp.c')
-rw-r--r--bgpd/bgp_damp.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/bgpd/bgp_damp.c b/bgpd/bgp_damp.c
index e3ccbfba..93f1995f 100644
--- a/bgpd/bgp_damp.c
+++ b/bgpd/bgp_damp.c
@@ -106,15 +106,14 @@ bgp_damp_decay (time_t tdiff, int penalty)
/* Handler of reuse timer event. Each route in the current reuse-list
is evaluated. RFC2439 Section 4.8.7. */
-int
+static int
bgp_reuse_timer (struct thread *t)
{
struct bgp_damp_info *bdi;
struct bgp_damp_info *next;
time_t t_now, t_diff;
struct bgp *bgp;
- int bgp_process (struct bgp *, struct bgp_node *, afi_t, safi_t);
-
+
damp->t_reuse = NULL;
damp->t_reuse =
thread_add_timer (master, bgp_reuse_timer, NULL, DELTA_REUSE);
@@ -371,7 +370,7 @@ bgp_damp_info_free (struct bgp_damp_info *bdi, int withdraw)
XFREE (MTYPE_BGP_DAMP_INFO, bdi);
}
-void
+static void
bgp_damp_parameter_set (int hlife, int reuse, int sup, int maxsup)
{
double reuse_max_ratio;
@@ -457,7 +456,7 @@ bgp_damp_enable (struct bgp *bgp, afi_t afi, safi_t safi, time_t half,
return 0;
}
-void
+static void
bgp_damp_config_clean (struct bgp_damp_config *damp)
{
/* Free decay array */
@@ -472,7 +471,7 @@ bgp_damp_config_clean (struct bgp_damp_config *damp)
/* Clean all the bgp_damp_info stored in reuse_list. */
void
-bgp_damp_info_clean ()
+bgp_damp_info_clean (void)
{
unsigned int i;
struct bgp_damp_info *bdi, *next;