From: Steven Barth Date: Fri, 22 Aug 2014 14:09:34 +0000 (+0200) Subject: Also test for correct IA-ID for IA_NA X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6959336df6e667145c0670f4455ca59e81f89a34;p=oweals%2Fodhcp6c.git Also test for correct IA-ID for IA_NA --- diff --git a/src/dhcpv6.c b/src/dhcpv6.c index e52fd6c..aafd237 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -934,7 +934,7 @@ static int dhcpv6_handle_reply(enum dhcpv6_msg orig, _unused const int rc, struct dhcpv6_ia_hdr *ia_hdr = (void*)(&odata[-4]); // Test ID - if (ia_hdr->iaid != 1 && otype == DHCPV6_OPT_IA_NA) + if (ia_hdr->iaid != htonl(1) && otype == DHCPV6_OPT_IA_NA) continue; uint16_t code = DHCPV6_Success;