Networking Forums

Networking Forums > Computer Networking > Linux Networking > packets being lost in ip_layer

Reply
Thread Tools Display Modes

packets being lost in ip_layer

 
 
seossenk
Guest
Posts: n/a

 
      11-11-2005, 02:51 AM
I am writing a linux kernel module that works with some custom
hardware. The custom hardware receives IP like datagrams. The kernel
module I am writing effectively receives the datagrams and wraps them
in skb, much like a normal ethernet driver. I have to totally rebuild
the header when I receive the packet and I am passing it to the stack
using netif_rx. I can see the packets fine using tcpdump with the
device but I am not sure what is happening to the packets pass that. I
am trying to forward them to another network device to go out another
subnet on my eval board using ip_forwarding. TCPDUMP indicates that
everything looks fine by capturing the output file and looking at it in
ethereal but the packet never gets to the fowarded ethernet device nor
have I been able to open a raw socket and receive the any packets from
the device. The packets are probably being discarded (I assume) in the
IP layer in the stack but how do I tell this? Are there any additional
tools that I can short of printk's in the ip layer code that I can use
to see what is happening to the packets?

Perhaps I am not getting the packets prepared right before passing them
using netif_rx(skb)? I am not sure what I would be missing though.
Since I have to basically rebuild the header before passing the packet
up including the checksums, are there any tips in terms of setting data
fields in the skb structure I may be missing?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
When did I lost packets? Spoon Linux Networking 5 05-04-2006 07:45 AM
Lost packets - strange problem martin.ferrari@gmail.com Linux Networking 4 03-28-2006 04:01 PM
wlan not working at all (lost packets) Jochen Demmer Linux Networking 1 04-27-2005 12:21 AM
ppp lost packets - 16850 uart Al Linux Networking 0 07-26-2004 06:16 AM
Slow connection/lost packets to adsl router (note only router and one PC is on network) Tony Collins Windows Networking 2 01-28-2004 03:55 AM



1 2 3 4 5 6 7 8 9 10 11