Add --force-fast-ra option.

This commit is contained in:
Simon Kelley
2013-07-29 15:41:26 +01:00
parent 9f48ffa1e8
commit 8d03046269
5 changed files with 14 additions and 2 deletions

View File

@@ -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