Fix bug #37959: ip6_debug_print prints plen, nexth, hoplim in wrong

byte order
This commit is contained in:
Ivan Delamer 2012-12-19 16:38:44 -07:00
parent 4fe648415f
commit 3bb29bf63a

View File

@ -996,9 +996,9 @@ ip6_debug_print(struct pbuf *p)
IP6H_FL(ip6hdr)));
LWIP_DEBUGF(IP6_DEBUG, ("+-------------------------------+\n"));
LWIP_DEBUGF(IP6_DEBUG, ("| %5"U16_F" | %3"U16_F" | %3"U16_F" | (plen, nexth, hopl)\n",
ntohs(IP6H_PLEN(ip6hdr)),
ntohs(IP6H_NEXTH(ip6hdr)),
ntohs(IP6H_HOPLIM(ip6hdr))));
IP6H_PLEN(ip6hdr),
IP6H_NEXTH(ip6hdr),
IP6H_HOPLIM(ip6hdr)));
LWIP_DEBUGF(IP6_DEBUG, ("+-------------------------------+\n"));
LWIP_DEBUGF(IP6_DEBUG, ("| %4"X32_F" | %4"X32_F" | %4"X32_F" | %4"X32_F" | (src)\n",
IP6_ADDR_BLOCK1(&(ip6hdr->src)),