Virtual network driver packet reception
So I am trying to write a virtual network device driver that takes all packets from the network stack and passes them to the ethernet or wireless drivers. I have this working on the transmit side of things but not on the reception.
So I was wondering if anyone would know how to receive/grab packets from the ethernet and wireless device drivers before there reach the kernel's network stack?
I looked at the bonding driver and it doesn't have to receive packets and I also looked at the bridge device code and that seems to be part of the kernel stack where I am trying to write a loaded driver. I am using the 22.214.171.124 kernel.