#endif
datalen += entrlen + 4;
} else {
- if (!a->accept_reconf && iface->managed < RELAYD_MANAGED_NO_AFLAG)
- prefix_pref = 1;
-
struct dhcpv6_ia_addr n = {
.type = htons(DHCPV6_OPT_IA_ADDR),
.len = htons(sizeof(n) - 4),
n.addr.s6_addr32[3] = htonl(a->assigned);
size_t entrlen = sizeof(n) - 4;
+ if (!a->accept_reconf && iface->managed < RELAYD_MANAGED_NO_AFLAG)
+ n.preferred = htonl(1);
+
#ifdef DHCPV6_OPT_PREFIX_CLASS
if (iface->ia_addr[i].has_class) {
entrlen += sizeof(pclass);