Can someone help me with simple example of network driver modules that send and receive Ethernet packet on same network interface
Printable View
Can someone help me with simple example of network driver modules that send and receive Ethernet packet on same network interface
Have you tried the obvious - examine existing kernel drivers?
I'm talking about existing network drivers. There is root network code that all network device drivers use. You REALLY need to get familiar with all that. Download the source for your kernel, install it, and start looking at that. In the kernel tree, there is a top-level directory "net" that has all this cruft. This is not simple stuff, but you should be able to figure it out with some effort. The netlink driver is there also in net/netlink.