From bd2c6c801707b05541edbfc050bcd2930785321e Mon Sep 17 00:00:00 2001 From: Vladislav Grishenko Date: Fri, 12 Jan 2018 16:22:39 +0500 Subject: ipv6: dhcpv6: fix iaid logging --- accel-pppd/ipv6/dhcpv6_packet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'accel-pppd/ipv6') 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, ...)) -- cgit v1.2.3