Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 03-24-2011, 01:38 PM   #1
LQ Newbie
Registered: Feb 2011
Posts: 20

Rep: Reputation: 0
Smile Tcp checksum calculation at sender end

I am trying to modify skbuff data by skb_put() . that is happening successfully but probably using NF Hooks modifies the data at L3 and this ofcourse shall change the TCP checksum when receiver will compare the checksum at TCP header field and the one based on modified received data.

2. i have tried using csum_partial() and tcpudp_magic() but probably didnt understand the correct usage. so this didnt work for me. am i on the right path and if some one has gone through it can some one please guide the right path.

3. If you can guide please help out. the issue is at sender side .

thx a lot if some one can please help me . it is been over 20 days on the issue. i am new in this .


checksum, kernel module, netfilter modules, tcp

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I calculate the right TCP checksum? moby@root Programming 2 11-11-2010 12:26 PM
[SOLVED] Calculate new tcp checksum yaplej Programming 1 09-25-2009 11:27 AM
TCP checksum doubt arun4will Programming 1 05-17-2007 08:53 AM
TCP header checksum live_dont_exist Programming 16 04-13-2005 12:45 PM
anyone can help me with the TCP checksum? vaaub Programming 1 02-10-2004 01:32 PM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration