projects
/
project
/
odhcpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ce8886
)
router: fix invalid router lifetime
author
Steven Barth
<steven@midlink.org>
Tue, 14 Jul 2015 19:49:57 +0000
(21:49 +0200)
committer
Steven Barth
<steven@midlink.org>
Tue, 14 Jul 2015 19:49:57 +0000
(21:49 +0200)
src/router.c
patch
|
blob
|
history
diff --git
a/src/router.c
b/src/router.c
index fada62b8486da9328b11e20d0a2c7e50ef4715dc..51fd95420a7ef9615d7624148ede0e50e607f52e 100644
(file)
--- a/
src/router.c
+++ b/
src/router.c
@@
-437,7
+437,7
@@
static uint64_t send_router_advert(struct interface *iface, const struct in6_add
minival = (maxival * 3) / 4;
if (adv.h.nd_ra_router_lifetime)
- adv.h.nd_ra_router_lifetime = htons(maxvalid);
+ adv.h.nd_ra_router_lifetime = htons(maxvalid
/ 1000
);
odhcpd_urandom(&msecs, sizeof(msecs));
msecs = (labs(msecs) % (maxival - minival)) + minival;