X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=src%2Fdhcpv6.c;h=e52fd6cd95fcf5dc4aa47febb023cb12e00b8eca;hb=fc0f3fd210223120a63e64cb707097b93568173a;hp=df6e1206b87eb35d11d814be26e83fe785d0d09e;hpb=b38d8871977d3b97cc3c3e7f2ad203852166c661;p=odhcp6c.git diff --git a/src/dhcpv6.c b/src/dhcpv6.c index df6e120..e52fd6c 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -366,7 +366,7 @@ static void dhcpv6_send(enum dhcpv6_msg type, uint8_t trid[3], uint32_t ecs) struct dhcpv6_ia_hdr hdr_ia_na = { htons(DHCPV6_OPT_IA_NA), htons(sizeof(hdr_ia_na) - 4), - 1, 0, 0 + htonl(1), 0, 0 }; struct dhcpv6_ia_addr pa[ia_na_entries]; @@ -1060,7 +1060,8 @@ static int dhcpv6_handle_reply(enum dhcpv6_msg orig, _unused const int rc, otype == DHCPV6_OPT_IA_TA || otype == DHCPV6_OPT_PREF || otype == DHCPV6_OPT_UNICAST || - otype == DHCPV6_OPT_FQDN) { + otype == DHCPV6_OPT_FQDN || + otype == DHCPV6_OPT_RECONF_ACCEPT) { passthru = false; } else { odhcp6c_add_state(STATE_CUSTOM_OPTS, &odata[-4], olen + 4);