I'm trying to generate an skb in a kernel module. The packets I have are equivalent to an Ethernet packet. I'm confused about where exactly in the actual packet should the "data" field of the skb point to. Does it depend on the layer processing/generating the skb, and if yes how? I haven't been able to find any up-to-date documentations. Are there any helper functions that can help setting different skb fields when we have the actual data and know the packet type? Pointers to up-to-date and relevant docs are appreciated.
Thank you