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:
ee243b0
)
DHCPv6: enable flash-renumbering hack only for /64 prefixes
author
Steven Barth
<steven@midlink.org>
Thu, 6 Nov 2014 13:36:19 +0000
(14:36 +0100)
committer
Steven Barth
<steven@midlink.org>
Thu, 6 Nov 2014 13:36:19 +0000
(14:36 +0100)
src/dhcpv6-ia.c
patch
|
blob
|
history
diff --git
a/src/dhcpv6-ia.c
b/src/dhcpv6-ia.c
index b21b39e1007fca8ada8663689d8019e43b33cbc1..d103ecb422adfc3e398d9f36d703666fb1f39d7d 100644
(file)
--- a/
src/dhcpv6-ia.c
+++ b/
src/dhcpv6-ia.c
@@
-810,7
+810,8
@@
static size_t append_reply(uint8_t *buf, size_t buflen, uint16_t status,
n.addr.s6_addr32[3] = htonl(a->assigned);
size_t entrlen = sizeof(n) - 4;
- if (!a->accept_reconf && iface->managed < RELAYD_MANAGED_NO_AFLAG)
+ if (!a->accept_reconf && iface->managed < RELAYD_MANAGED_NO_AFLAG &&
+ addrs[i].prefix == 64)
n.preferred = htonl(1);
#ifdef DHCPV6_OPT_PREFIX_CLASS