NetBSD/lib/libpcap
cgd ace25ccb4d show what's going on (i.e. show the cmp ... || install ...) even if
nothing's being installed.
1996-05-10 21:54:24 +00:00
..
CHANGES Port to NetBSD, and add NetBSD RCS tags. 1995-03-06 11:37:58 +00:00
Makefile show what's going on (i.e. show the cmp ... || install ...) even if 1996-05-10 21:54:24 +00:00
README Port to NetBSD, and add NetBSD RCS tags. 1995-03-06 11:37:58 +00:00
bpf_image.c Port to NetBSD, and add NetBSD RCS tags. 1995-03-06 11:37:58 +00:00
etherent.c Port to NetBSD, and add NetBSD RCS tags. 1995-03-06 11:37:58 +00:00
ethertype.h Port to NetBSD, and add NetBSD RCS tags. 1995-03-06 11:37:58 +00:00
gencode.c Port to NetBSD, and add NetBSD RCS tags. 1995-03-06 11:37:58 +00:00
gencode.h Port to NetBSD, and add NetBSD RCS tags. 1995-03-06 11:37:58 +00:00
grammar.y Port to NetBSD, and add NetBSD RCS tags. 1995-03-06 11:37:58 +00:00
inet.c Port to NetBSD, and add NetBSD RCS tags. 1995-03-06 11:37:58 +00:00
nametoaddr.c include string.h and/or stdlib.h as appropriate, if NetBSD. 1995-04-29 05:42:23 +00:00
optimize.c include string.h and/or stdlib.h as appropriate, if NetBSD. 1995-04-29 05:42:23 +00:00
pcap-bpf.c include string.h and/or stdlib.h as appropriate, if NetBSD. 1995-04-29 05:42:23 +00:00
pcap-int.h Port to NetBSD, and add NetBSD RCS tags. 1995-03-06 11:37:58 +00:00
pcap-namedb.h Port to NetBSD, and add NetBSD RCS tags. 1995-03-06 11:37:58 +00:00
pcap.3 Port to NetBSD, and add NetBSD RCS tags. 1995-03-06 11:37:58 +00:00
pcap.c Port to NetBSD, and add NetBSD RCS tags. 1995-03-06 11:37:58 +00:00
pcap.h apparently the BPF_HEADERS don't define BPF_RELEASE or typedef the 1996-05-02 00:18:28 +00:00
savefile.c Port to NetBSD, and add NetBSD RCS tags. 1995-03-06 11:37:58 +00:00
scanner.l Port to NetBSD, and add NetBSD RCS tags. 1995-03-06 11:37:58 +00:00
shlib_version Port to NetBSD, and add NetBSD RCS tags. 1995-03-06 11:37:58 +00:00

README

$NetBSD: README,v 1.2 1995/03/06 11:38:07 mycroft Exp $
@(#) Header: README,v 1.7 94/06/20 18:56:55 leres Exp (LBL)

LIBPCAP 0.0
Lawrence Berkeley Laboratory
Network Research Group
libpcap@ee.lbl.gov
ftp://ftp.ee.lbl.gov/libpcap-*.tar.Z

This directory contains source code for libpcap, a system-independent
interface for user-level packet capture.  libpcap provides a portable
framework for low-level network monitoring.  Applications include
network statistics collection, security monitoring, network debugging,
etc.  Since almost every system vendor provides a different interface
for packet capture, and since we've developed several tools that require
these interfaces, we've created this system-independent API to ease in
porting and to alleviate the need for several system-dependent packet
capture modules in each application.

THIS IS AN ALPHA-QUALITY RELEASE.  The interface is brand new and is
likely to change.  If you code to this interface, and want to track
future versions, be prepared to update your code.  We admit that this
release is premature, but we're releasing it anyway because the tcpdump-3.0
distribution requires it.

libpcap has been built and tested under SGI Irix 4.x & 5.2, SunOS 4.x,
Solaris 2.3, BSD/386 v1.1, DEC/OSF v1.3 v2.0, and Ultrix 4.x.  SunOS 3.5
4.3BSD Reno/Tahoe and 4.4BSD are supported as well, but we currently
do not have the resources to carry out testing in these environments
(we suspect you'll run into problems under these systems -- please
send us the patches if you fix any porting problems).

The libpcap interface supports a filtering mechanism based on the
architecture in the BSD packet filter.  BPF is described in the
1993 Winter Usenix paper ``The BSD Packet Filter: A New Architecture
for User-level Packet Capture''.  A compressed postscript version is in

	ftp://ftp.ee.lbl.gov/papers/bpf-usenix93.ps.Z.

Although most packet capture interfaces support in-kernel filtering,
libpcap utilizes in-kernel filtering only for the BPF interface.
On systems that don't have BPF, all packets are read into user-space
and the BPF filters are evaluated in the libpcap library, incurring
added overhead (especially, for selective filters).  We haven't tried
taking advantage of other packet filter models first because they
aren't general enough (i.e., only simple filters can be evaluated),
and second because we don't have the time to modify the code generator
(or write a filter translator) and BPF is more efficient anyway.

BPF is standard in 4.4BSD, BSD/386, NetBSD, and FreeBSD.  DEC OSF/1
uses the packetfilter interface but has been extended to accept
BPF filters (which libpcap utilizes).  Also, you can add BPF filter
support to Ultrix using the kernel source and/or object patches
available in

	 ftp://gatekeeper.dec.com/pub/DEC/net/bpfext42.tar.Z.

Please send bugs and comments to libpcap@ee.lbl.gov.

 - Steve McCanne (mccanne@ee.lbl.gov)
   Craig Leres (leres@ee.lbl.gov)
   Van Jacobson (van@ee.lbl.gov)