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:
cb1842c
)
Correctly byteswap DNS lifetimes in RAs
author
Will Mortensen
<willmo@gmail.com>
Mon, 19 Oct 2015 03:59:20 +0000
(20:59 -0700)
committer
Will Mortensen
<willmo@gmail.com>
Wed, 21 Oct 2015 06:04:13 +0000
(23:04 -0700)
src/router.c
patch
|
blob
|
history
diff --git
a/src/router.c
b/src/router.c
index a23b5305bf65909837b0192a31e4df520cf3f76d..526f9c25b12de4963b890fcc4dcec97ec275b59f 100644
(file)
--- a/
src/router.c
+++ b/
src/router.c
@@
-430,7
+430,7
@@
static uint64_t send_router_advert(struct interface *iface, const struct in6_add
minival = (maxival * 3) / 4;
- search->lifetime =
maxival / 100
;
+ search->lifetime =
htonl(maxival / 100)
;
dns.lifetime = search->lifetime;
odhcpd_urandom(&msecs, sizeof(msecs));