LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 05-29-2008, 01:04 PM   #1
jesshowe
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 0
Question user space network driver api?


Does anyone know of a user space framework that will allow me to set up a nic? I have a windows virtual nic that I need to port to linux, but it has to be user space so that my company's tcp proxies aren't given away to the competition.
 
Old 05-30-2008, 07:59 AM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
I'm not aware of any such developments. The topic of 'user space drivers' had come up again in the past few months and the general concession was: why?

If it's any use to you, maybe have a look at 'user mode linux'. It was touted as a great way to develop drivers because when it hung you simply restarted it.

What's wrong with the Linux virtual NICs ; why do you need to port a WinDuhs one?
 
Old 05-30-2008, 01:19 PM   #3
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 69
Quote:
Originally Posted by jesshowe View Post
Does anyone know of a user space framework that will allow me to set up a nic?
By setting up a nic, do you mean just assigning addresses and bringing it up or down? In that case, the appropriate framework is a series of socket ioctls. You can learn more about how these work by studying the source of utilities such as ifconfig or ip.

Perhaps you are talking about a TUN or TAP interface? They have a similar API, which you can read about here.

Last edited by osor; 05-30-2008 at 01:25 PM.
 
Old 05-30-2008, 02:22 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,481

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by pinniped View Post
The topic of 'user space drivers' had come up again in the past few months and the general concession was: why?
The GPL ?
 
  


Reply


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
User Space Device Driver Development ameya.verma Linux - Software 0 04-02-2008 02:26 AM
Interfacing a USB device driver into user space? ddraper Linux - Kernel 2 02-19-2008 04:33 PM
User Space Device Driver jvogel Linux - Kernel 4 10-16-2007 05:46 PM
LXer: This week at LWN: LinuxConf.eu: Documentation and user-space API design LXer Syndicated Linux News 0 09-12-2007 02:40 PM
How to get data from a terminal driver from user space? Any ioctl for this? Sreeram B S Linux - Kernel 0 02-24-2007 12:51 AM


All times are GMT -5. The time now is 11:14 AM.

Main Menu
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