I found out that I need to build a new sk_buff struct in the kernel module and pass it to my network device, but what I can't figure out is how to set the struct variables for a simple raw ethernet packet.

This has to be easy, but I would really appreciate it, if someone could give me a sample code of how to put the sk_buff together.

Edit
Report