]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
Fix bug #37959: ip6_debug_print prints plen, nexth, hoplim in wrong
authorIvan Delamer <delamer@inicotech.com>
Wed, 19 Dec 2012 23:38:44 +0000 (16:38 -0700)
committerIvan Delamer <delamer@inicotech.com>
Wed, 19 Dec 2012 23:38:44 +0000 (16:38 -0700)
byte order

src/core/ipv6/ip6.c

index 4818e77c8e2b18782a615a78ca1b2668ed12bed1..94e423a23007e4a2cb4835e4eeb41afd9eec0164 100644 (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)),