LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Virtual network driver packet reception (https://www.linuxquestions.org/questions/linux-kernel-70/virtual-network-driver-packet-reception-773226/)

j-osh 12-03-2009 10:38 AM

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 2.6.30.9 kernel.

j

paulcsf 02-13-2010 05:08 AM

Have you looked at the tap/tun Ethernet "drivers"? I am not sure they are what you want, but can be used to interface between various hardware and the Ethernet stack.


All times are GMT -5. The time now is 10:00 PM.