summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Dedecker2020-12-03 20:10:20 +0000
committerHans Dedecker2020-12-03 20:10:20 +0000
commit9c50975bbba971b63d877b70c537bef1d2e81325 (patch)
tree35d29c604f30ea7c68a72d7b5a439b9559ac580d
parenta7b2221f687264c020b7a18a4e690d79f312a667 (diff)
downloadodhcp6c-9c50975bbba971b63d877b70c537bef1d2e81325.tar.gz
dhcpv6: fix printing identity association id
Fix endian issue when printing the identity association id Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
-rw-r--r--src/dhcpv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcpv6.c b/src/dhcpv6.c
index 63eb0eb..370c9ea 100644
--- a/src/dhcpv6.c
+++ b/src/dhcpv6.c
@@ -1282,7 +1282,7 @@ static unsigned int dhcpv6_parse_ia(void *opt, void *end)
if (t1 > t2)
return 0;
- syslog(LOG_INFO, "IAID %04x T1 %d T2 %d", ia_hdr->iaid, t1, t2);
+ syslog(LOG_INFO, "IAID %04x T1 %d T2 %d", htonl(ia_hdr->iaid), t1, t2);
// Update address IA
dhcpv6_for_each_option(&ia_hdr[1], end, otype, olen, odata) {