LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices



Reply
 
Search this Thread
Old 03-24-2011, 02:38 PM   #1
kalloc
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 .
 
  


Reply

Tags
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 01:26 PM
[SOLVED] Calculate new tcp checksum yaplej Programming 1 09-25-2009 12:27 PM
TCP checksum doubt arun4will Programming 1 05-17-2007 09:53 AM
TCP header checksum live_dont_exist Programming 16 04-13-2005 01:45 PM
anyone can help me with the TCP checksum? vaaub Programming 1 02-10-2004 02:32 PM


All times are GMT -5. The time now is 11:04 AM.

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