I assume that you want to read the "transport layer data" from the kernel-space with a kernel module.
1-Hmmm.... I don't really know. The last time I worked on a new networking suite (http://sourceforge.net/projects/atn), I accessed the data directly through skb->data after certain calls to skb_pull(). This is done with Linux kernel 2.6.21.5.
2-Yes, definitely you should. But, only on those fields that are larger than a byte (e.g., __be16 or __be32).
Some answers...
Hi Ho!
I assume that you want to read the "transport layer data" from the kernel-space with a kernel module.
1-Hmmm.... I don't really know. The last time I worked on a new networking suite (http://sourceforge.net/projects/atn), I accessed the data directly through skb->data after certain calls to skb_pull(). This is done with Linux kernel 2.6.21.5.
2-Yes, definitely you should. But, only on those fields that are larger than a byte (e.g., __be16 or __be32).
3-Ehem... what about having a look at http://sourceforge.net/projects/atn? I learned the way from the IPX code.
Best regards,
Eus