I've been debugging an embedded tcp/ip stack using Ethereal and have found it
to be quite handy and very impressive. Thanks for the code !
I recently added code to validate the TCP header checksums to help me find a
bug in my stack that was generating invalid checksums occasionally. I hope
others might find this addition useful.
The attached patch adds TCP header checksum validation. The text " (correct)"
is appended to the TCP header checksum field if the checksum is correct,
otherwise the text " (incorrect, should be 0x????) is appended. If the network
address is not type IPv4 then nothing is appended.
The changes have been tested under FreeBSD version 3.2 with an x86 processor. I
believe the code should also function correctly on a big endian machine, but I
haven't tested it.
Skip
The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.
---- File information -----------
File: my.patch
Date: 9 Jun 2000, 11:55
Size: 2654 bytes.
Type: Unknown
Attachment:
my.patch
Description: Binary data