svn commit: r229244 - stable/9/contrib/tcpdump

Dimitry Andric dim at FreeBSD.org
Sun Jan 1 23:45:21 UTC 2012


Author: dim
Date: Sun Jan  1 23:45:21 2012
New Revision: 229244
URL: http://svn.freebsd.org/changeset/base/229244

Log:
  MFC r228713:
  
  In contrib/tcpdump/print-icmp6.c, fix a problem where the comparison
  against icmp6_hdr::icmp6_type is done incorrectly.  (This fix has
  already been applied upstream, but we do not have the latest version of
  tcpdump.)

Modified:
  stable/9/contrib/tcpdump/print-icmp6.c
Directory Properties:
  stable/9/contrib/tcpdump/   (props changed)

Modified: stable/9/contrib/tcpdump/print-icmp6.c
==============================================================================
--- stable/9/contrib/tcpdump/print-icmp6.c	Sun Jan  1 23:43:45 2012	(r229243)
+++ stable/9/contrib/tcpdump/print-icmp6.c	Sun Jan  1 23:45:21 2012	(r229244)
@@ -350,14 +350,13 @@ icmp6_print(netdissect_options *ndo,
         printf("ICMP6, %s", tok2str(icmp6_type_values,"unknown icmp6 type (%u)",dp->icmp6_type));
 
         /* display cosmetics: print the packet length for printer that use the vflag now */
-        if (vflag && (dp->icmp6_type ==
-                      ND_ROUTER_SOLICIT ||
-                      ND_ROUTER_ADVERT ||
-                      ND_NEIGHBOR_ADVERT ||
-                      ND_NEIGHBOR_SOLICIT ||
-                      ND_REDIRECT ||
-                      ICMP6_HADISCOV_REPLY ||
-                      ICMP6_MOBILEPREFIX_ADVERT ))
+        if (vflag && (dp->icmp6_type == ND_ROUTER_SOLICIT ||
+                      dp->icmp6_type == ND_ROUTER_ADVERT ||
+                      dp->icmp6_type == ND_NEIGHBOR_ADVERT ||
+                      dp->icmp6_type == ND_NEIGHBOR_SOLICIT ||
+                      dp->icmp6_type == ND_REDIRECT ||
+                      dp->icmp6_type == ICMP6_HADISCOV_REPLY ||
+                      dp->icmp6_type == ICMP6_MOBILEPREFIX_ADVERT ))
             printf(", length %u", length);
                       
 	switch (dp->icmp6_type) {


More information about the svn-src-stable-9 mailing list