NameDateSize

..23-Dec-201992

aclocal.m423-Dec-201930.9 KiB

arcnet.h07-Jan-20152.4 KiB

atmuni31.h07-Jan-20153.9 KiB

bpf_dump.c30-May-20181.9 KiB

bpf_filter.c23-Dec-201912.2 KiB

bpf_image.c30-May-20187.4 KiB

CHANGES23-Dec-201941 KiB

chmod_bpf30-May-2018757

ChmodBPF/30-May-20184

cmake/30-May-20184

cmake_uninstall.cmake.in30-May-20181 KiB

cmakeconfig.h.in23-Dec-201911.2 KiB

CMakeLists.txt23-Dec-201985 KiB

config.guess23-Dec-201943.2 KiB

config.h.in23-Dec-201910.3 KiB

config.sub23-Dec-201934.9 KiB

configure23-Dec-2019331.2 KiB

configure.ac23-Dec-201964.4 KiB

CONTRIBUTING.md23-Dec-20191.4 KiB

CREDITS23-Dec-201911.5 KiB

diag-control.h23-Dec-20198.3 KiB

dlpisubs.c30-May-20189.4 KiB

dlpisubs.h07-Jan-2015702

doc/23-Dec-201912

etherent.c30-May-20183.4 KiB

ethertype.h13-Feb-20173.5 KiB

extract.h30-May-20189.2 KiB

fad-getad.c30-May-20188.6 KiB

fad-gifc.c30-May-201812.8 KiB

fad-glifc.c30-May-20189.4 KiB

fmtutils.c23-Dec-20196.4 KiB

fmtutils.h23-Dec-20192.2 KiB

ftmacros.h23-Dec-20194.2 KiB

gencode.c23-Dec-2019257 KiB

gencode.h23-Dec-201911.4 KiB

grammar.y23-Dec-201924.7 KiB

ieee80211.h30-May-20185.2 KiB

install-sh13-Feb-20175.4 KiB

INSTALL.md23-Dec-201915.4 KiB

lbl/13-Feb-201710

libpcap.pc.in30-May-2018484

LICENSE13-Feb-2017868

llc.h07-Jan-20152.6 KiB

Makefile-devel-adds13-Feb-2017614

Makefile.in23-Dec-201923.7 KiB

missing/23-Dec-201911

mkdep13-Feb-20172.4 KiB

msdos/23-Dec-201911

nametoaddr.c23-Dec-201918.8 KiB

nametoaddr.h13-Feb-20172.1 KiB

nlpid.h07-Jan-20151.7 KiB

nomkdep30-May-2018135

optimize.c23-Dec-201962.3 KiB

optimize.h30-May-20181.3 KiB

org.tcpdump.chmod_bpf.plist30-May-2018441

pcap/23-Dec-201917

pcap-bpf.c23-Dec-201984 KiB

pcap-bpf.h13-Feb-20172.2 KiB

pcap-bt-linux.c23-Dec-201911.4 KiB

pcap-bt-linux.h30-May-20181.8 KiB

pcap-bt-monitor-linux.c23-Dec-20197.8 KiB

pcap-bt-monitor-linux.h30-May-20181.6 KiB

pcap-common.c23-Dec-201947.1 KiB

pcap-common.h23-Dec-20192.3 KiB

pcap-config.113-Feb-20172.3 KiB

pcap-config.in30-May-20181.8 KiB

pcap-dag.c23-Dec-201937.1 KiB

pcap-dag.h30-May-2018457

pcap-dbus.c30-May-201810 KiB

pcap-dbus.h30-May-2018112

pcap-dll.rc30-May-20181 KiB

pcap-dlpi.c23-Dec-201947.6 KiB

pcap-dos.c23-Dec-201935.9 KiB

pcap-dos.h13-Feb-20176.7 KiB

pcap-enet.c30-May-20184.7 KiB

pcap-filter.manmisc.in23-Dec-201933.5 KiB

pcap-int.h23-Dec-201916.9 KiB

pcap-libdlpi.c23-Dec-201912.1 KiB

pcap-linktype.manmisc.in23-Dec-20192.3 KiB

pcap-linux.c23-Dec-2019207.9 KiB

pcap-namedb.h07-Jan-20152 KiB

pcap-netfilter-linux.c23-Dec-201920.5 KiB

pcap-netfilter-linux.h30-May-20181.7 KiB

pcap-netmap.c23-Dec-20197.8 KiB

pcap-netmap.h30-May-2018126

pcap-new.c23-Dec-201912.8 KiB

pcap-nit.c30-May-201810.2 KiB

pcap-npf.c23-Dec-201951.6 KiB

pcap-null.c23-Dec-20191.9 KiB

pcap-pf.c30-May-201818.5 KiB

pcap-rdmasniff.c30-May-201811 KiB

pcap-rdmasniff.h30-May-2018140

pcap-rpcap-int.h30-May-20183.4 KiB

pcap-rpcap.c23-Dec-201996.9 KiB

pcap-rpcap.h23-Dec-20192.2 KiB

pcap-savefile.manfile.in23-Dec-20195.1 KiB

pcap-septel.c23-Dec-20198.7 KiB

pcap-septel.h30-May-2018512

pcap-sita.c23-Dec-201936.3 KiB

pcap-sita.h07-Jan-2015224

pcap-sita.html23-Dec-201937.4 KiB

pcap-snf.c23-Dec-201914.7 KiB

pcap-snf.h30-May-2018110

pcap-snit.c30-May-201812.7 KiB

pcap-snoop.c30-May-201813.3 KiB

pcap-tc.c23-Dec-201934.2 KiB

pcap-tc.h30-May-20181.9 KiB

pcap-tstamp.manmisc.in23-Dec-20197.7 KiB

pcap-types.h30-May-20181.9 KiB

pcap-usb-linux.c23-Dec-201935.9 KiB

pcap-usb-linux.h30-May-20181.8 KiB

pcap.3pcap.in23-Dec-201929.6 KiB

pcap.c23-Dec-2019103.7 KiB

pcap.h07-Jan-20152.2 KiB

pcap_activate.3pcap23-Dec-20193.8 KiB

pcap_breakloop.3pcap23-Dec-20194 KiB

pcap_can_set_rfmon.3pcap23-Dec-20192.6 KiB

pcap_close.3pcap13-Feb-20171.5 KiB

pcap_compile.3pcap.in23-Dec-20193 KiB

pcap_create.3pcap23-Dec-20192.2 KiB

pcap_datalink.3pcap.in23-Dec-20192.4 KiB

pcap_datalink_name_to_val.3pcap23-Dec-20191.8 KiB

pcap_datalink_val_to_name.3pcap23-Dec-20192.5 KiB

pcap_dump.3pcap23-Dec-20191.7 KiB

pcap_dump_close.3pcap13-Feb-20171.5 KiB

pcap_dump_file.3pcap23-Dec-20191.5 KiB

pcap_dump_flush.3pcap23-Dec-20191.7 KiB

pcap_dump_ftell.3pcap23-Dec-20192.1 KiB

pcap_dump_open.3pcap.in23-Dec-20193.3 KiB

pcap_file.3pcap23-Dec-20192.1 KiB

pcap_fileno.3pcap23-Dec-20192 KiB

pcap_findalldevs.3pcap23-Dec-20196.3 KiB

pcap_freecode.3pcap23-Dec-20191.7 KiB

pcap_get_required_select_timeout.3pcap23-Dec-20193 KiB

pcap_get_selectable_fd.3pcap23-Dec-20194.7 KiB

pcap_get_tstamp_precision.3pcap.in23-Dec-20191.8 KiB

pcap_geterr.3pcap23-Dec-20191.8 KiB

pcap_inject.3pcap23-Dec-20193.3 KiB

pcap_is_swapped.3pcap23-Dec-20191.9 KiB

pcap_lib_version.3pcap13-Feb-20171.6 KiB

pcap_list_datalinks.3pcap.in23-Dec-20192.5 KiB

pcap_list_tstamp_types.3pcap.in23-Dec-20193 KiB

pcap_lookupdev.3pcap23-Dec-20192.5 KiB

pcap_lookupnet.3pcap23-Dec-20191.9 KiB

pcap_loop.3pcap23-Dec-20196.6 KiB

pcap_major_version.3pcap23-Dec-20192 KiB

pcap_next_ex.3pcap23-Dec-20194.9 KiB

pcap_offline_filter.3pcap23-Dec-20191.9 KiB

pcap_open_dead.3pcap.in23-Dec-20192.6 KiB

pcap_open_live.3pcap23-Dec-20192.6 KiB

pcap_open_offline.3pcap.in23-Dec-20193.8 KiB

pcap_set_buffer_size.3pcap13-Feb-20171.8 KiB

pcap_set_datalink.3pcap23-Dec-20191.8 KiB

pcap_set_immediate_mode.3pcap.in23-Dec-20193.3 KiB

pcap_set_promisc.3pcap13-Feb-20171.8 KiB

pcap_set_protocol_linux.3pcap23-Dec-20192.8 KiB

pcap_set_rfmon.3pcap13-Feb-20171.8 KiB

pcap_set_snaplen.3pcap13-Feb-20171.7 KiB

pcap_set_timeout.3pcap23-Dec-20192.1 KiB

pcap_set_tstamp_precision.3pcap.in23-Dec-20192.4 KiB

pcap_set_tstamp_type.3pcap.in23-Dec-20192.7 KiB

pcap_setdirection.3pcap23-Dec-20192.4 KiB

pcap_setfilter.3pcap23-Dec-20191.8 KiB

pcap_setnonblock.3pcap23-Dec-20192.8 KiB

pcap_snapshot.3pcap23-Dec-20191.9 KiB

pcap_stats.3pcap23-Dec-20193.4 KiB

pcap_statustostr.3pcap13-Feb-20171.6 KiB

pcap_strerror.3pcap23-Dec-20191.5 KiB

pcap_tstamp_type_name_to_val.3pcap23-Dec-20191.9 KiB

pcap_tstamp_type_val_to_name.3pcap23-Dec-20192 KiB

portability.h23-Dec-20195.5 KiB

ppp.h07-Jan-20152.6 KiB

README.md23-Dec-20193.7 KiB

rpcap-protocol.c30-May-20186.7 KiB

rpcap-protocol.h23-Dec-201918.6 KiB

rpcapd/23-Dec-201923

savefile.c23-Dec-201913.7 KiB

scanner.l23-Dec-201914.4 KiB

sf-pcap.c23-Dec-201930.3 KiB

sf-pcap.h23-Dec-20191.7 KiB

sf-pcapng.c23-Dec-201938.9 KiB

sf-pcapng.h23-Dec-20191.4 KiB

sockutils.c23-Dec-201952.3 KiB

sockutils.h23-Dec-20195.2 KiB

sunatmpos.h07-Jan-20152.1 KiB

testprogs/23-Dec-201914

tests/30-May-20183

TODO13-Feb-20171.5 KiB

varattrs.h30-May-20182.4 KiB

VERSION23-Dec-20196

Win32/30-May-20183

README.md

1To report a security issue please send an e-mail to security@tcpdump.org.
2
3To report bugs and other problems, contribute patches, request a
4feature, provide generic feedback etc please see the file
5[CONTRIBUTING](CONTRIBUTING.md) in the libpcap source tree root.
6
7The directory doc/ has README files about specific operating systems and
8options.
9
10LIBPCAP 1.x.y
11Now maintained by "The Tcpdump Group"
12https://www.tcpdump.org
13
14Anonymous Git is available via:
15        https://github.com/the-tcpdump-group/libpcap.git
16
17formerly from 	Lawrence Berkeley National Laboratory
18		Network Research Group <libpcap@ee.lbl.gov>
19		ftp://ftp.ee.lbl.gov/old/libpcap-0.4a7.tar.Z
20
21This directory contains source code for libpcap, a system-independent
22interface for user-level packet capture.  libpcap provides a portable
23framework for low-level network monitoring.  Applications include
24network statistics collection, security monitoring, network debugging,
25etc.  Since almost every system vendor provides a different interface
26for packet capture, and since we've developed several tools that
27require this functionality, we've created this system-independent API
28to ease in porting and to alleviate the need for several
29system-dependent packet capture modules in each application.
30
31For some platforms there are README.{system} files that discuss issues
32with the OS's interface for packet capture on those platforms, such as
33how to enable support for that interface in the OS, if it's not built in
34by default.
35
36The libpcap interface supports a filtering mechanism based on the
37architecture in the BSD packet filter.  BPF is described in the 1993
38Winter Usenix paper ``The BSD Packet Filter: A New Architecture for
39User-level Packet Capture''.  A compressed PostScript version can be
40found at
41
42	ftp://ftp.ee.lbl.gov/papers/bpf-usenix93.ps.Z
43
44or
45
46	https://www.tcpdump.org/papers/bpf-usenix93.ps.Z
47
48and a gzipped version can be found at
49
50	https://www.tcpdump.org/papers/bpf-usenix93.ps.gz
51
52A PDF version can be found at
53
54	https://www.tcpdump.org/papers/bpf-usenix93.pdf
55
56Although most packet capture interfaces support in-kernel filtering,
57libpcap utilizes in-kernel filtering only for the BPF interface.
58On systems that don't have BPF, all packets are read into user-space
59and the BPF filters are evaluated in the libpcap library, incurring
60added overhead (especially, for selective filters).  Ideally, libpcap
61would translate BPF filters into a filter program that is compatible
62with the underlying kernel subsystem, but this is not yet implemented.
63
64BPF is standard in 4.4BSD, BSD/OS, NetBSD, FreeBSD, OpenBSD, DragonFly
65BSD, and macOS; an older, modified and undocumented version is standard
66in AIX.  {DEC OSF/1, Digital UNIX, Tru64 UNIX} uses the packetfilter
67interface but has been extended to accept BPF filters (which libpcap
68utilizes).  Also, you can add BPF filter support to Ultrix using the
69kernel source and/or object patches available in:
70
71	https://www.tcpdump.org/other/bpfext42.tar.Z
72
73Linux has a number of BPF based systems, and libpcap does not support
74any of the eBPF mechanisms as yet, although it supports many of the
75memory mapped receive mechanisms.
76See the [README.linux](doc/README.linux.md) file for more information.
77
78Note to Linux distributions and *BSD systems that include libpcap:
79
80There's now a rule to make a shared library, which should work on Linux
81and *BSD, among other platforms.
82
83It sets the soname of the library to "libpcap.so.1"; this is what it
84should be, *NOT* libpcap.so.1.x or libpcap.so.1.x.y or something such as
85that.
86
87We've been maintaining binary compatibility between libpcap releases for
88quite a while; there's no reason to tie a binary linked with libpcap to
89a particular release of libpcap.
90
91Current versions can be found at https://www.tcpdump.org.
92
93 - The TCPdump group
94