Re: User-space controlled raw ethernet - Is this the way to go?



David Schwartz wrote:
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

Hi David,

Actually this was my first approach. But I really wasn't that happy with the overhead of the IP and UDP headers.

Thanks
Andy
.



Relevant Pages

  • Re: platform builder 4.2 debugger cannot connect to target
    ... Kernel Transport to Serial, ... to init KITL for Ethernet, not serial as it's doing now. ... I captured the serial port output during the download and boot up. ... Debugger could not initialize connection. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: ethernet connection wont work
    ... the Westell "DSL modem" (which actually includes a router) is configured. ... The Westell has a single Ethernet connector but the Linksys probably has ... Area Connection." ...
    (microsoft.public.windowsxp.network_web)
  • Re: Connecting Mac to Telewest cable modem?
    ... yesterday so time is running out) and she's agreed to try a Mac. ... Make sure you either use Ethernet from ... the cable modem to the Mac, or Ethernet from the cable modem to a router and ... This is a very poor implementation of a Cable connection. ...
    (uk.comp.sys.mac)
  • Re: [opensuse] How to set up the wireless connection for TeleCom router
    ... 1- The connector on the Aladino phone is a Ethernet plug, ... The base of Aladino phone is provided with: ... This kind of connection is used to operate Aladino as a regular analogic phone ... TeleCom Gate 2 has a port named ADSL which is actually a phone-out plug. ...
    (SuSE)
  • Re: ActiveSync/Ethernet/CE6
    ... I've got a device connected directly to a LAN via ethernet, ... ActiveSync, or if the application development computer doesn't have ... You then have a minute or two to make the connection to ... ActiveSync should I be installing? ...
    (microsoft.public.windowsce.embedded)