Re: User-space controlled raw ethernet - Is this the way to go?
- From: David Schwartz <davids@xxxxxxxxxxxxx>
- Date: Mon, 25 Feb 2008 02:45:28 -0800 (PST)
On Feb 25, 2:23 am, Andrew Greensted <ajg...@xxxxxxxxxxxxxx> wrote:
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.
Implement minimal ARP and UDP.
DS
.
- Follow-Ups:
- Re: User-space controlled raw ethernet - Is this the way to go?
- From: Andrew Greensted
- Re: User-space controlled raw ethernet - Is this the way to go?
- References:
- User-space controlled raw ethernet - Is this the way to go?
- From: Andrew Greensted
- User-space controlled raw ethernet - Is this the way to go?
- Prev by Date: User-space controlled raw ethernet - Is this the way to go?
- Next by Date: Re: User-space controlled raw ethernet - Is this the way to go?
- Previous by thread: User-space controlled raw ethernet - Is this the way to go?
- Next by thread: Re: User-space controlled raw ethernet - Is this the way to go?
- Index(es):
Relevant Pages
|