User-space controlled raw ethernet - Is this the way to go?
- From: Andrew Greensted <ajg112@xxxxxxxxxxxxxx>
- Date: Mon, 25 Feb 2008 10:23:00 +0000
Hi All,
I've got a FPGA development board directly connected to a PC via an ethernet connection. This provides a fairly high speed connection between the two.
I want to be able to send raw ethernet frames between the two. I've looked at libpcap, libdnet and direct socket code. For each of these I've got something working, BUT, they all seem to need root permissions to do low level ethernet frame sending and receiving.
Could you comment on the sanity of the following approach to allow user-space controlled ethernet transmission/reception:
My plan is to create a very simple kernel module that probably uses direct socket code to perform ethernet frame transmission and reception. I plan to use ioctl calls to give the user-space access to these operations.
Is there is an easier way? Perhaps to use libpcap directly as non-root.
Many thanks
Andy
.
- Follow-Ups:
- Re: User-space controlled raw ethernet - Is this the way to go?
- From: Chris Friesen
- Re: User-space controlled raw ethernet - Is this the way to go?
- From: Jan Kandziora
- Re: User-space controlled raw ethernet - Is this the way to go?
- From: David Schwartz
- Re: User-space controlled raw ethernet - Is this the way to go?
- Prev by Date: Using kstat to calculate each cpu load
- Next by Date: Re: User-space controlled raw ethernet - Is this the way to go?
- Previous by thread: Using kstat to calculate each cpu load
- Next by thread: Re: User-space controlled raw ethernet - Is this the way to go?
- Index(es):
Relevant Pages
|