Wednesday, 28 August 2013

Pushing SKB to the network stack

Pushing SKB to the network stack

I have net_device which has the ndo_start_xmit function implemented.
When ndo_start_xmit function called I have an skb that contains the IP
packet. I'll need to overt the packet with IP+UDP headers and send it back
to the routing system.
The problem is that when I call the dst_input(skb) or dst_output(skb) I'll
catch the NULL pointer dereference error. It seems that I can't use this
functions to push the encapsulated packet into the network stack.
Can anybody helps me with the solution?

No comments:

Post a Comment