mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-20 02:38:32 +00:00
Don't cap prefx lifetimes below RA retransmit interval.
This commit is contained in:
10
src/radv.c
10
src/radv.c
@@ -373,10 +373,14 @@ static int add_prefixes(struct in6_addr *local, int prefix,
|
|||||||
param->other = 1;
|
param->other = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* find floor time */
|
/* find floor time, don't reduce below RA interval. */
|
||||||
if (time > context->lease_time)
|
if (time > context->lease_time)
|
||||||
time = context->lease_time;
|
{
|
||||||
|
time = context->lease_time;
|
||||||
|
if (time < 600u)
|
||||||
|
time = 600;
|
||||||
|
}
|
||||||
|
|
||||||
if (context->flags & CONTEXT_DEPRECATE)
|
if (context->flags & CONTEXT_DEPRECATE)
|
||||||
deprecate = 1;
|
deprecate = 1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user