tcpdump mailing list archives
Re: disabling checksums flag
From: alex medvedev <alexm () pycckue org>
Date: Mon, 21 Jul 2003 16:29:25 -0500 (CDT)
Hi Hannes, i like checksumming and i think this functionality is great and informative. the reason i tried to disable the checksumming was unpleasant messages [bad tcp cksum!] and [bad cksum!] while running over loopback in AIX :) because AIX does not do checksumming over loopback. i think you are right that we can simply suppress the warning messages and still calculate the checksums. -alexm -- ...É ÎÁÐÉÓÁÌ éÉÓÕÓ ËÏÎ×ÅÒÔÅÒ water2wine, É ÓÔÁÌ ÒÁÚÄÁ×ÁÔØ ÅÇÏ freeware... On Sat, 19 Jul 2003, Hannes Gredler wrote:
alex, could you give some insight why one generally wants to have checksumming turned off rather than just turning the warning messages off ? if there are good reasons for both options then i'd propose that we still do the checksumming verification suppression,based on your flag; call it a checksum verification flag ... i.e. 12:36:45.587565 OSI, IS-IS, length: 405 hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0), pdu-type: L2 LSP lsp-id: 2092.1113.4009-00, seq: 0x000002fd, lifetime: 1198s chksum: 0xe984 (correct), PDU length: 405, L1L2 IS ^^^^^^^^^ becomes with k flag 12:36:45.587565 OSI, IS-IS, length: 405 hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0), pdu-type: L2 LSP lsp-id: 2092.1113.4009-00, seq: 0x000002fd, lifetime: 1198s chksum: 0xe984, PDU length: 405, L1L2 IS /hannes On Fri, Jul 18, 2003 at 12:55:50PM -0500, alex medvedev wrote: | hallo, | | 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. | | i attached the patch against today's cvs, which worked on my setup, | but i have no idea what some printers do, so, please, let me know | if there is more changes needed or things should be done differently. | | ??? | | thanks, | | -alexm
- 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)