mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-11-26 20:48:32 +00:00
Add --force-fast-ra option.
This commit is contained in:
1 parent
9f48ffa1e8
commit
8d03046269
5 files changed
+14
-2
No files matched your search
+1
-1
@@ -652,7 +652,7 @@ static int iface_search(struct in6_addr *local, int prefix,
|
||||
|
||||
static void new_timeout(struct dhcp_context *context, time_t now)
|
||||
{
|
||||
if (difftime(now, context->ra_short_period_start) < 60.0)
|
||||
if (difftime(now, context->ra_short_period_start) < 60.0 || option_bool(OPT_FAST_RA))
|
||||
/* range 5 - 20 */
|
||||
context->ra_time = now + 5 + (rand16()/4400);
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user