Re: Bad TCP checksum error

2007-10-26 Thread Rick Jones
Checksum Offload on the NIC(s) can complicate things. First, if you are tracing on the sender, the tracepoint is before the NIC has computed the full checksum. IIRC only a partial checksum is passed-down to the NIC when CKO is in use. So, making certain your trace is from the "wire" or the re

Re: Bad TCP checksum error

2007-10-26 Thread Gaurav Aggarwal
e packet. After that I just change the destination > address of the packet and insert it back into the ip stack. But after > inserting the packet I am getting a bad TCP checksum error. Even I am > getting the same error for IP header checksum. Attached is the source > code and tcpdump o

Bad TCP checksum error

2007-10-26 Thread Gaurav Aggarwal
Hi, I wrote a program where I am using the nfnetlink and netfilter_queue model to capture the packet. After that I just change the destination address of the packet and insert it back into the ip stack. But after inserting the packet I am getting a bad TCP checksum error. Even I am getting the