summaryrefslogtreecommitdiffhomepage
path: root/src/router.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2015-07-15 09:37:52 +0200
committerSteven Barth <steven@midlink.org>2015-07-15 09:37:52 +0200
commit053ca41a841aa4a1b1ce86ce6ee9f4304cba7027 (patch)
treed6c27b15c22207a9673ab897336f4655d47031e2 /src/router.c
parent9f96f988e2c3a0519bef59535e15ad9c176aa254 (diff)
router: unify RA router and DNS lifetime
Diffstat (limited to 'src/router.c')
-rw-r--r--src/router.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/router.c b/src/router.c
index bbde03f..89b1c52 100644
--- a/src/router.c
+++ b/src/router.c
@@ -438,7 +438,7 @@ static uint64_t send_router_advert(struct interface *iface, const struct in6_add
if (adv.h.nd_ra_router_lifetime)
adv.h.nd_ra_router_lifetime = htons(maxvalid / 1000);
- search->lifetime = htonl((maxival * 3) / 1000);
+ search->lifetime = htonl(maxvalid / 1000);
if (!dns.lifetime)
dns.lifetime = search->lifetime;