projects
/
project
/
odhcp6c.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7b2221
)
dhcpv6: fix printing identity association id
author
Hans Dedecker
<dedeckeh@gmail.com>
Thu, 3 Dec 2020 20:10:20 +0000
(21:10 +0100)
committer
Hans Dedecker
<dedeckeh@gmail.com>
Thu, 3 Dec 2020 20:10:20 +0000
(21:10 +0100)
Fix endian issue when printing the identity association id
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/dhcpv6.c
patch
|
blob
|
history
diff --git
a/src/dhcpv6.c
b/src/dhcpv6.c
index 63eb0ebe2d011730ccd3b05d74061db55b7ef921..370c9eaede62d86aa4d75ae0ee5637ad122d7a50 100644
(file)
--- 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) {