Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 12-03-2009, 10:38 AM   #1
Registered: Nov 2008
Location: Madison, WI
Posts: 34

Rep: Reputation: 16
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 kernel.

Old 02-13-2010, 05:08 AM   #2
LQ Newbie
Registered: Jan 2009
Distribution: Ubuntu / LFS/BLFS/CLFS
Posts: 20

Rep: Reputation: 1
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.


drivers, kernel, networking

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bypassing packet reception path dodo76 Linux - Networking 2 10-28-2009 08:40 AM
Why packet incoming interface (sk_buff->dev) effects application reception? farkeu Linux - Networking 1 08-22-2009 06:11 PM
LXer: HDTV reception and network streaming in a box LXer Syndicated Linux News 0 04-26-2007 01:46 PM
identify a network packet alaios Linux - Networking 4 04-19-2006 07:54 PM
packet reception by virtual network interface seeker321in Linux - Networking 0 04-19-2002 01:48 PM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration