From 6959336df6e667145c0670f4455ca59e81f89a34 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 22 Aug 2014 16:09:34 +0200 Subject: [PATCH] Also test for correct IA-ID for IA_NA --- src/dhcpv6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2