: Hi all,
: I need to write a program on Linux which gets all non-IP traffic from
: the ethernet adapter - in promiscuous mode. Can anyone point me to
: some docs or simple examples of:
Examples (but perhapse not simple) can be found by ftp(ing) to
tcpdump prints out the headers of packets on a network interface
that match the boolean expression.
You must be root to invoke tcpdump or it must be installed
setuid to root.
Any user can invoke tcpdump once the super-user has enabled
promiscuous-mode operation using pfconfig(8).
Access is controlled by the permissions on /dev/bpf0 etc.
Included is a shar file for 'etherload'- to monitor the load
on an ethernet from Unix systems.
IRIX40 Silicon Graphics IRIX 4.0
IRIX51 Silicon Graphics IRIX 5.1
SUNOS4 Sun Microsystems SunOS 4.x
SUNOS5 Sun Microsystems SunOS 5.x (Solaris 2.x)
SVR4 AT&T System V Release 4
ULTRIX Digital Equipment Ultrix 4.x
DECOSF Digital Equipment OSF/1 V1.3 and later
This ethernet access library is a part of the Columbia Netmate project
which is being released as a useful component in its own right.
These functions provide access to the raw ethernet for user-level
programs. On Suns, they are implemented using NIT(4p) (network interface
tap). While they do not provide the full functionality of NIT, these
functions do run on both the socket- and streams-based NIT
implementations. On Ultrix systems, they are implemented using DLI (data
link interface). On Berkeley systems, they are implemented using the
Stanford enetfilter available as user-contributed software in the 4.3 BSD