diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-06-16 22:10:36 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-06-16 22:10:36 -0700 |
commit | 7074f77080d5d15ba9c6ea5970c5d49372170a86 (patch) | |
tree | 6f65e3256c6f1bf55a86e201a9b503d74213060c /ip6.h | |
parent | 9bfe2abe60f265cc6a4f2fe5372f49137c409f5f (diff) | |
download | tcpdump-7074f77080d5d15ba9c6ea5970c5d49372170a86.tar.gz |
Handle UDP checksums more like TCP checksums.
Instead of printing the result of udp_cksum() if it's non-zero, print
the checksum field value and the value it should have had. That means
that what we print is the same regardless of whether we're running on a
big-endian or little-endian machine.
Also, just as we did with TCP:
Check -v and -K, and the fragmented flag, up front; then check the IP
version etc.. Don't check for IPv6 if we already know it's IPv4. Fetch
the checksum field only once.
Update some test files for the new output format.
Diffstat (limited to 'ip6.h')
0 files changed, 0 insertions, 0 deletions