]> The Tcpdump Group git mirrors - tcpdump/commitdiff
in tcpdump a length field has the semantics of a 'total length field'
authorhannes <hannes>
Fri, 21 Sep 2007 07:05:33 +0000 (07:05 +0000)
committerhannes <hannes>
Fri, 21 Sep 2007 07:05:33 +0000 (07:05 +0000)
i.e. including the header - the IP6 payload length field differs
from that ...
highlight the difference by printing 'payload length' rather than 'length'

print-ip6.c

index e04da5252424e0e79df5d3e2ce9d94bfe31c0dc5..0758bb952ed021790886dc4889fc4a22b01956dd 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.51 2007-09-14 00:38:41 guy Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.52 2007-09-21 07:05:33 hannes Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -93,7 +93,7 @@ ip6_print(register const u_char *bp, register u_int length)
                (void)printf("flowlabel 0x%05x, ", flow & 0x000fffff);
 #endif
 
-            (void)printf("hlim %u, next-header: %s (%u), length: %u) ",
+            (void)printf("hlim %u, next-header %s (%u) payload length: %u) ",
                          ip6->ip6_hlim,
                          tok2str(ipproto_values,"unknown",ip6->ip6_nxt),
                          ip6->ip6_nxt,