Is there any utility function on the Kernel like the ipv6_skip_exthdr() [1] for instance, which doesn’t uses sk_buff as input to handle ipv6 packets? I need some basic functionality to handle IPv6 packets, I know Kernel does this, but I wasn’t able to figure the utility functions to do that, functions that I can use on the user-space to handle raw packets that I have (without sk_buff structure).
Thanks !
RFC 3542 describes an advanced API to parse IPv6 headers:
http://www.ietf.org/rfc/rfc3542.txt
It also has suggestions which headers and functions to use for specific tasks. Give it a try.