Don't cap prefx lifetimes below RA retransmit interval.

This commit is contained in:
Simon Kelley
2012-12-22 21:27:08 +00:00
parent 81e84f8dac
commit 7f035f58c6

View File

@@ -373,9 +373,13 @@ 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;