]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/libpcap/README
This commit was generated by cvs2svn to compensate for changes in r126357,
[FreeBSD/FreeBSD.git] / contrib / libpcap / README
1 @(#) $Header: /tcpdump/master/libpcap/README,v 1.24 2001/06/05 03:45:55 guy Exp $ (LBL)
2
3 LIBPCAP 0.6.2
4 Now maintained by "The Tcpdump Group"
5 See             www.tcpdump.org
6
7 Please send inquiries/comments/reports to       tcpdump-workers@tcpdump.org
8
9 Anonymous CVS is available via:
10         cvs -d :pserver:tcpdump@cvs.tcpdump.org:/tcpdump/master login
11         (password "anoncvs")
12         cvs -d :pserver:tcpdump@cvs.tcpdump.org:/tcpdump/master checkout libpcap
13
14 Version 0.6.2 of LIBPCAP can be retrieved with the CVS tag "libpcap_0_6rel2":
15         cvs -d :pserver:tcpdump@cvs.tcpdump.org:/tcpdump/master checkout -r libpcap_0_6rel2 libpcap
16
17 Please send patches against the master copy to patches@tcpdump.org.
18
19 formerly from   Lawrence Berkeley National Laboratory
20                 Network Research Group <libpcap@ee.lbl.gov>
21                 ftp://ftp.ee.lbl.gov/libpcap.tar.Z (0.4)
22
23 This directory contains source code for libpcap, a system-independent
24 interface for user-level packet capture.  libpcap provides a portable
25 framework for low-level network monitoring.  Applications include
26 network statistics collection, security monitoring, network debugging,
27 etc.  Since almost every system vendor provides a different interface
28 for packet capture, and since we've developed several tools that
29 require this functionality, we've created this system-independent API
30 to ease in porting and to alleviate the need for several
31 system-dependent packet capture modules in each application.
32
33 Note well: this interface is new and is likely to change.
34
35 The libpcap interface supports a filtering mechanism based on the
36 architecture in the BSD packet filter.  BPF is described in the 1993
37 Winter Usenix paper ``The BSD Packet Filter: A New Architecture for
38 User-level Packet Capture''.  A compressed postscript version is in:
39
40         ftp://ftp.ee.lbl.gov/papers/bpf-usenix93.ps.Z.
41
42 Although most packet capture interfaces support in-kernel filtering,
43 libpcap utilizes in-kernel filtering only for the BPF interface.
44 On systems that don't have BPF, all packets are read into user-space
45 and the BPF filters are evaluated in the libpcap library, incurring
46 added overhead (especially, for selective filters).  Ideally, libpcap
47 would translate BPF filters into a filter program that is compatible
48 with the underlying kernel subsystem, but this is not yet implemented.
49
50 BPF is standard in 4.4BSD, BSD/OS, NetBSD, FreeBSD, and OpenBSD.  DEC OSF/1
51 uses the packetfilter interface but has been extended to accept BPF
52 filters (which libpcap utilizes).  Also, you can add BPF filter support
53 to Ultrix using the kernel source and/or object patches available in:
54
55         ftp://gatekeeper.dec.com/pub/DEC/net/bpfext42.tar.Z.
56
57 Problems, bugs, questions, desirable enhancements, etc. 
58 should be sent to the address "tcpdump-workers@tcpdump.org".
59
60 Source code contributions, etc. should be sent to the email address 
61 "patches@tcpdump.org".
62
63 Current versions can be found at www.tcpdump.org
64
65  - The TCPdump team