projects
/
oweals
/
odhcpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f96f98
)
router: unify RA router and DNS lifetime
author
Steven Barth
<steven@midlink.org>
Wed, 15 Jul 2015 07:37:52 +0000
(09:37 +0200)
committer
Steven Barth
<steven@midlink.org>
Wed, 15 Jul 2015 07:37:52 +0000
(09:37 +0200)
src/router.c
patch
|
blob
|
history
diff --git
a/src/router.c
b/src/router.c
index bbde03fa5f67dd1412aaf7b0abefe8b03632c51c..89b1c520ab13d4a104e00a65d10dd7c1cf79771d 100644
(file)
--- 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;