diff options
Diffstat (limited to 'src/router.c')
-rw-r--r-- | src/router.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/router.c b/src/router.c index 06f3a66..d6ab4bb 100644 --- a/src/router.c +++ b/src/router.c @@ -552,8 +552,8 @@ static int send_router_advert(struct interface *iface, const struct in6_addr *fr preferred = TIME_LEFT(addr->preferred, now); if (iface->ra_useleasetime && - preferred > iface->dhcp_leasetime) - preferred = iface->dhcp_leasetime; + preferred > iface->preferred_lifetime) + preferred = iface->preferred_lifetime; } valid = TIME_LEFT(addr->valid, now); |