diff options
author | Vladislav Grishenko <themiron@mail.ru> | 2018-01-12 16:22:39 +0500 |
---|---|---|
committer | Vladislav Grishenko <themiron@mail.ru> | 2018-01-13 02:07:57 +0500 |
commit | bd2c6c801707b05541edbfc050bcd2930785321e (patch) | |
tree | 700849449cfd18fc8ea5ae0406506015cbf68280 /accel-pppd/ipv6 | |
parent | 043ad09ee13d0facb851e3b20f03f78074739ce9 (diff) | |
download | accel-ppp-bd2c6c801707b05541edbfc050bcd2930785321e.tar.gz accel-ppp-bd2c6c801707b05541edbfc050bcd2930785321e.zip |
ipv6: dhcpv6: fix iaid logging
Diffstat (limited to 'accel-pppd/ipv6')
-rw-r--r-- | accel-pppd/ipv6/dhcpv6_packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/ipv6/dhcpv6_packet.c b/accel-pppd/ipv6/dhcpv6_packet.c index fa18ac61..664a1168 100644 --- a/accel-pppd/ipv6/dhcpv6_packet.c +++ b/accel-pppd/ipv6/dhcpv6_packet.c @@ -329,14 +329,14 @@ static void print_ia_na(struct dhcpv6_option *opt, void (*print)(const char *fmt { struct dhcpv6_opt_ia_na *o = (struct dhcpv6_opt_ia_na *)opt->hdr; - print(" %x T1=%i T2=%i", o->iaid, ntohl(o->T1), ntohl(o->T2)); + print(" %x T1=%i T2=%i", ntohl(o->iaid), ntohl(o->T1), ntohl(o->T2)); } static void print_ia_ta(struct dhcpv6_option *opt, void (*print)(const char *fmt, ...)) { struct dhcpv6_opt_ia_ta *o = (struct dhcpv6_opt_ia_ta *)opt->hdr; - print(" %x", o->iaid); + print(" %x", ntohl(o->iaid)); } static void print_ia_addr(struct dhcpv6_option *opt, void (*print)(const char *fmt, ...)) |