tcpdump mailing list archives
Re: disabling checksums flag
From: Guy Harris <gharris () sonic net>
Date: Fri, 18 Jul 2003 23:07:45 -0700
On Fri, Jul 18, 2003 at 12:55:50PM -0500, alex medvedev wrote:
i would like to add a disable checksum flag to tcpdump. i assume this will affect ip, tcp, udp, icmp, icmp6, isoclns, igmp, vrrp, mobile printers, and tcpdump.c file (is it all?) proposed change: add a global int cksumflag=1 in tcpdump.c :) add a command line flag: k (?), which when specified disables the checksum calculation (cksumflag=0); check cksumflag before calculating checksums in printers.
Is there any interest in having "-k" be able to disable specific checksums, rather than all of them? (I don't know whether that'd be worthwhile or not.)
diff -urN tcpdump.orig/print-icmp.c tcpdump/print-icmp.c --- tcpdump.orig/print-icmp.c Fri Jul 18 12:39:24 2003 +++ tcpdump/print-icmp.c Fri Jul 18 12:39:34 2003 @@ -41,6 +41,8 @@ #include "udp.h" #include "ipproto.h" +extern int cksumflag; +
You might want to put the declaration of "cksumflag" in "interface.h". - This is the TCPDUMP workers list. It is archived at http://www.tcpdump.org/lists/workers/index.html To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe
Current thread:
- disabling checksums flag alex medvedev (Jul 18)
- Re: disabling checksums flag Guy Harris (Jul 19)
- Re: disabling checksums flag Hannes Gredler (Jul 19)
- Re: disabling checksums flag alex medvedev (Jul 21)