[lkml]   [1999]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: seq numbers and checksum in tcp
   Date: 	Sun, 17 Jan 1999 23:51:41 -0600
From: Ayman El-Khashab <>

for some research that i am working on, i am doing some experiments
with the linux kernel and some tcpip stuff in particular. In any
case, in the tcp_rcv function, i have been able to get most of the
information that i need. Now i need to modify the sequence number
of the packet and then recompute the checksum, but i am not sure
how to go about this. I have expermimented for a while and turned
up nothing.

basically, i want to just modify the th->seq and then recompute
the tcp checksum and i suspect the skb checksum.

Why do you need to recompute the checksum on incoming packets, at
tcp_rcv() the checksum has already been validated as correct and is
never checked again? ie. nobody else cares about the checksum

David S. Miller

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:49    [W:0.031 / U:5.152 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site