diff options
author | Steven Barth <steven@midlink.org> | 2014-08-22 16:09:34 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-08-22 16:09:34 +0200 |
commit | 6959336df6e667145c0670f4455ca59e81f89a34 (patch) | |
tree | 3e175d590c7a9c5ea6f8c59cd0e7ad44af8b2259 /src/dhcpv6.c | |
parent | fc0f3fd210223120a63e64cb707097b93568173a (diff) | |
download | odhcp6c-6959336df6e667145c0670f4455ca59e81f89a34.tar.gz |
Also test for correct IA-ID for IA_NA
Diffstat (limited to 'src/dhcpv6.c')
-rw-r--r-- | src/dhcpv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |