diff options
author | Steven Barth <steven@midlink.org> | 2014-11-06 14:36:19 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-11-06 14:36:19 +0100 |
commit | 3b628005e66e90770b2757a4a02c1dee25ccb883 (patch) | |
tree | 22a5ac795f43c22536a9f2d538b25a8f203fecb9 /src/dhcpv6-ia.c | |
parent | ee243b09f3c81f824cc463c1c757e905f882350e (diff) |
DHCPv6: enable flash-renumbering hack only for /64 prefixes
Diffstat (limited to 'src/dhcpv6-ia.c')
-rw-r--r-- | src/dhcpv6-ia.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index b21b39e..d103ecb 100644 --- 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 |