LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-04-2011, 04:48 PM   #1
kalloc
LQ Newbie
 
Registered: Feb 2011
Posts: 20

Rep: Reputation: 0
Smile Kernel sender module in post routing hook causing ethernet fcs error at receiver


coded netfilter module and in a post routing hook i have modified the data. the data reaches the wireshark packet capture at receiver but fails to reach up the application . rather the complete data that reaches receiver. part of it shows up in ethernet trailer with ethernet fcs error.

is there a point to be taken care of while sending skbuff finally..
i have done following:-
calculated tcp checksum
ip checksum - not calculated
header pointers - not re-setted
csum - initialised using csum_partial . but not sure
data put in skbuff using skb_put.

modified data seen by putting prints as well as on reciever packet capture, but not in receiving application..

As soon as the module is removed ( rmmod) the original packet shows up in application... how can i handle this data modification in netfilter hook. what all do i need to cater for step wise.. can any one please please guide
 
  


Reply

Tags
checksum, ethernet, netfilter modules, packet, skbuff


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
restriction of sender and receiver in sendmail Dhrumil Linux - Newbie 3 12-22-2010 02:45 AM
Netfilter kernel module hook at PREROUTING forward packet use ip_forward(sk_buff) lukeshih Programming 0 11-18-2010 03:35 AM
netfilter hook---kernel module---skb_transport_header--- tcphdr fields wrong values abhishek@LQ Linux - Networking 4 05-26-2010 06:21 AM
netfilter hook---kernel module---skb_transport_header--- tcphdr fields wrong values abhishek@LQ Linux - Security 1 04-01-2010 08:07 AM
[SVN - post-commit hook] hook failed, did not exit cleanly G00fy Programming 0 01-21-2009 02:15 AM


All times are GMT -5. The time now is 07:31 AM.

Main Menu
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