Ethereal-dev: Re: [Ethereal-dev] ethernet checksums

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 17 Nov 2003 11:56:13 -0800

On Nov 17, 2003, at 10:38 AM, Ben Greear wrote:

I have made a patch to the e1000 driver (a similar patch should work
on other drivers) to allow it to be configured to return the entire
ethernet frame, ie the FCS too. Eventually, if I can convince the kernel
folks, there will be an Ethtool ioctl to turn this on/off and query it.

Which kernel?  (As in "kernel for what OS"?)

In the meantime, how hard would it be for someone to add an option to
ethereal to tell it that a particular interface or session's packets
include the FCS as the last 4 bytes? Please note, I'm using a hacked up proprietary protocol for my testing, so there is no way Ethereal can know
that the last 4 bytes are checksum....

I.e.

1) this would be done with a libpcap-format capture (e.g., done by Ethereal);

2) your protocol doesn't run atop 802.3+802.2 (with a length field rather than a type field) and doesn't include a length field of its own, so Ethereal doesn't know how much of the packet is trailer and/or FCS and thus the existing Ethereal code to try to guess whether there's an FCS won't always work?