summaryrefslogtreecommitdiff
path: root/proto/radv/radv.c
diff options
context:
space:
mode:
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>2017-08-17 11:34:25 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2017-08-30 16:34:15 +0200
commitec7d6a506ecae89e5019ce7fcb380a713be28bce (patch)
tree9e038f0fb760223b2710aec35fa5348fa0ad60d2 /proto/radv/radv.c
parente2d2b3ef21f082a034e79d0880d4b36428029a59 (diff)
RAdv: Configure how long a dead prefix is advertised
Diffstat (limited to 'proto/radv/radv.c')
-rw-r--r--proto/radv/radv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/radv/radv.c b/proto/radv/radv.c
index 303cf251..44040a4b 100644
--- a/proto/radv/radv.c
+++ b/proto/radv/radv.c
@@ -115,6 +115,7 @@ static void
prefixes_prepare(struct radv_iface *ifa)
{
struct radv_proto *p = ifa->ra;
+ struct radv_iface_config *cf = ifa->cf;
/* First mark all the prefixes as unused */
struct radv_prefix *pfx;
@@ -164,8 +165,7 @@ prefixes_prepare(struct radv_iface *ifa)
* dropped just yet). If something is dead and rots there for long enough,
* clean it up.
*/
- // XXX: Make these 5 minutes it configurable
- bird_clock_t rotten = now + 300;
+ bird_clock_t rotten = now + cf->linger_time;
struct radv_prefix *next;
bird_clock_t expires_soonest = 0;
WALK_LIST_DELSAFE(pfx, next, ifa->prefixes) {