lkml.org 
[lkml]   [1999]   [Jan]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectseq numbers and checksum in tcp
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.

Is there an easy way to check the tcp checksum and then make the
mod and then recompute a new checksum. any help is much appreciated.

for that matter, i will need to change fields in the tcp header in
the v_ip_queue_xmit function. how can i compute whatever checksums
are neccessary here.

thanks,
- ayman

--
----------------------------------------------------------------------
Ayman El-Khashab <ayman@ccwf.cc.utexas.edu> PGP key available from
The University of Texas at Austin keyserver or by finger
Key Fingerprint: 42 D3 22 E6 D1 73 45 09 DA AE 60 DE 24 CB 71 18
----------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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