diff options
Diffstat (limited to 'src/router.c')
-rw-r--r-- | src/router.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/router.c b/src/router.c index d7452f5..1ae8d1a 100644 --- a/src/router.c +++ b/src/router.c @@ -314,6 +314,8 @@ static uint64_t send_router_advert(struct interface *iface, const struct in6_add p->nd_opt_pi_valid_time = htonl(TIME_LEFT(addr->valid, now)); if (addr->preferred > (uint32_t)now) p->nd_opt_pi_preferred_time = htonl(TIME_LEFT(addr->preferred, now)); + else if (addr->valid - now < 7200) + p->nd_opt_pi_valid_time = 0; if (TIME_LEFT(addr->preferred, now) > dns_time) { |