From 7f035f58c663dec1bf508d46d2fb6f9bf152b9dc Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Sat, 22 Dec 2012 21:27:08 +0000 Subject: [PATCH] Don't cap prefx lifetimes below RA retransmit interval. --- src/radv.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/radv.c b/src/radv.c index 8f17662..c552c52 100644 --- a/src/radv.c +++ b/src/radv.c @@ -373,10 +373,14 @@ static int add_prefixes(struct in6_addr *local, int prefix, param->other = 1; } - /* find floor time */ + /* find floor time, don't reduce below RA interval. */ if (time > context->lease_time) - time = context->lease_time; - + { + time = context->lease_time; + if (time < 600u) + time = 600; + } + if (context->flags & CONTEXT_DEPRECATE) deprecate = 1;