projects
/
project
/
odhcpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
cb1842c
)
Merge pull request #62 from willmo/dns-lifetime
author
Steven Barth
<steven@midlink.org>
Wed, 21 Oct 2015 06:07:52 +0000
(08:07 +0200)
committer
Steven Barth
<steven@midlink.org>
Wed, 21 Oct 2015 06:07:52 +0000
(08:07 +0200)
Correctly byteswap DNS lifetimes in RAs
src/router.c
patch
|
blob
|
history
diff --git
a/src/router.c
b/src/router.c
index
a23b530
..
526f9c2
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));