Ethereal-users: Re: [Ethereal-users] confusion about TCP checksum calculation

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxx>
Date: Wed, 2 Jan 2002 13:51:52 -0800 (PST)
> You're right; I captured the packet with tcpdump with the default
> options.

Ah, yes, those lovely default tiny-little-snapshot-length default
actions.  Fine if you're using tcpdump to look at TCP's behavior (other
than checking its checksum), not so fine if you're using it to, for
example, look at NFS's behavior.

> I'm still not sure how Ethereal knows that the checksum
> was correct on the original packet then - or doesn't it attempt
> to check it if some of the packet is missing?

It doesn't attempt to check the checksum if there's insufficient data to
compute the checksum.  (tcpdump does the same thing.)