]> The Tcpdump Group git mirrors - tcpdump/commitdiff
bugfix: don't mask the more-fragments bit for ICMP checksum suppression
authorhannes <hannes>
Fri, 7 Oct 2005 10:49:28 +0000 (10:49 +0000)
committerhannes <hannes>
Fri, 7 Oct 2005 10:49:28 +0000 (10:49 +0000)
print-ip.c

index 4bb68c077d2461c4c300382666d2d9f1b6da0602..aa20ce5f5290584d2a19eb7b5f308567f1072e46 100644 (file)
@@ -21,7 +21,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-ip.c,v 1.149.2.2 2005-09-20 06:05:38 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-ip.c,v 1.149.2.3 2005-10-07 10:49:28 hannes Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -429,7 +429,7 @@ again:
        case IPPROTO_ICMP:
                /* pass on the MF bit plus the offset to detect fragments */
                icmp_print(ipds->cp, ipds->len, (const u_char *)ipds->ip,
-                          (ipds->off & 0x3fff));
+                          (ipds->off &~ 0x6000));
                break;
                
        case IPPROTO_PIGP: