* bgp_damp.c: (bgp_reuse_timer) struct bgp can be retrieved via
the struct bgp_damp_info, no need to guess by using
bgp_get_default().
+2005-11-03 Paul Jakma <paul.jakma@sun.com>
+
+ * bgp_damp.c: (bgp_reuse_timer) struct bgp can be retrieved via
+ the struct bgp_damp_info, no need to guess by using
+ bgp_get_default().
+
2005-10-01 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* bgp_vty.c: (bgp_config_write_redistribute) Use new library function
struct bgp_damp_info *bdi;
struct bgp_damp_info *next;
time_t t_now, t_diff;
- struct bgp *bgp;
-
+
damp->t_reuse = NULL;
damp->t_reuse =
thread_add_timer (master, bgp_reuse_timer, NULL, DELTA_REUSE);
- bgp = bgp_get_default ();
- if (! bgp)
- return 0;
-
t_now = time (NULL);
/* 1. save a pointer to the current zeroth queue head and zero the
/* 3. if ( the saved list head pointer is non-empty ) */
for (; bdi; bdi = next)
{
+ struct bgp *bgp = bdi->binfo->peer->bgp;
+
next = bdi->next;
/* Set t-diff = t-now - t-updated. */