CVSROOT:        /cvs
Module name:    src
Changes by:     l...@cvs.openbsd.org    2014/06/19 22:04:52

Modified files:
        usr.sbin/tcpdump: print-icmp.c print-icmp6.c print-ip.c 
                          print-tcp.c print-udp.c 

Log message:
Instead of showing the difference between a bad checksum and a good
checksum, make tcpdump (with the -v flag) show the actual bad checksum
within the IP/protocol header itself and what the good checksum should
be, e.g. "[bad tcp cksum abcd! -> d1e6]"

This change applies to IP, TCP (over IPv4 and IPv6), UDP (over IPv4 and
IPv6), ICMP, and ICMPv6.  This commit also fixes several inconsistencies
in the way bad checksums were displayed for these protocols.

Tested on amd64, i386, and macppc.

ok henning@

Reply via email to