LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 12-03-2009, 11:38 AM   #1
j-osh
Member
 
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 2.6.30.9 kernel.

j
 
Old 02-13-2010, 06:08 AM   #2
paulcsf
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.
 
  


Reply

Tags
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 09:40 AM
Why packet incoming interface (sk_buff->dev) effects application reception? farkeu Linux - Networking 1 08-22-2009 07:11 PM
LXer: HDTV reception and network streaming in a box LXer Syndicated Linux News 0 04-26-2007 02:46 PM
identify a network packet alaios Linux - Networking 4 04-19-2006 08:54 PM
packet reception by virtual network interface seeker321in Linux - Networking 0 04-19-2002 02:48 PM


All times are GMT -5. The time now is 04:45 AM.

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