Newsgroups: comp.os.linux.embedded
Subject: Re: ethernet access without TCP/IP stack
References: <[email protected]>
Markus Pietrek  writes:

> Hi folks,
> 
> does anyone know how to send and receive ethernet packets under linux 
> without using the TCP/IP stack. For best performance I would like to 
> receive all packets directly and turn off the TCP/IP stack of linux 2.4
> 
> Thanks in advance,
> Markus Pietrek

There are different ways of accessing packets on the ethernet
(or other layer 2 transport technology) level. If possible
I would recommend to check a library called libpcap
if it suits for your application. It is a generic
library which works on many operating systems and
is used by a well known tool program tcpdump.
This library captures packets on the Ethernet level
very nicely and gives them to an user program to
analyze/process them. I have used in one special 
networking project very successfully.

You can find some libpcap related link on the following page:
http://www.epanorama.net/cgi-bin/search.cgi?keyword=libpcap
 

-- 
Tomi Engdahl (http://www.iki.fi/then/)
Take a look at my electronics web links and documents at 
http://www.epanorama.net/