Re: TCP checksum calculation

2005-01-20 Thread Stephen Hemminger
On Thu, 20 Jan 2005 15:52:34 -0500 (EST) Rahul Jain <[EMAIL PROTECTED]> wrote: > Hi, > > I have written a module that changes IP addrs and TCP port values. After > changing these fields, I am able to recalculate the IP checksum within > the module. To recalculate the TCP checksum, I wrote a new

TCP checksum calculation

2005-01-20 Thread Rahul Jain
Hi, I have written a module that changes IP addrs and TCP port values. After changing these fields, I am able to recalculate the IP checksum within the module. To recalculate the TCP checksum, I wrote a new function in tcp_ipv4.c which is very similar to tcp_v4_send_check(). The only difference i