summaryrefslogtreecommitdiff
path: root/src/dhcpv6.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2014-08-22 16:07:37 +0200
committerSteven Barth <steven@midlink.org>2014-08-22 16:07:37 +0200
commitfc0f3fd210223120a63e64cb707097b93568173a (patch)
treeea2d0f91b16013a6c2652f11ced1f9c3dd89c73a /src/dhcpv6.c
parentb9c8be24207e4197c9b529c157d7ea04f3f4bdb8 (diff)
downloadodhcp6c-fc0f3fd210223120a63e64cb707097b93568173a.tar.gz
ia_na: use big-endian 1 as IAID
Diffstat (limited to 'src/dhcpv6.c')
-rw-r--r--src/dhcpv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcpv6.c b/src/dhcpv6.c
index 0c98729..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];