Extract the payload of the packet from SKB buffer at Layer-2

Ramana Reddy gtvrreddy at gmail.com
Thu May 29 03:36:58 EDT 2014


Hi All,

Is there any mechanism to get the payload area after extracting the
transport
header from skb at layer-2. I think we can do this with the combination of
skb_full and skb_reset_mac_header, skb_reset_network_header, and
skb_reset_transport_header
functions. My main interest is extract the payload from the skb and reset
the all the
headers so that the skb remains unchanged.


Help in this regards is highly appreciated.

Thanks,
Ramana.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140529/04a35441/attachment-0001.html 


More information about the Kernelnewbies mailing list