NameDateSize

..11-Mar-202490

aclocal.m4H A D29-Jun-202340.2 KiB

arcnet.hH A D22-Jun-20212.4 KiB

atmuni31.hH A D01-Apr-20233.9 KiB

bpf_dump.cH A D22-Jun-20211.9 KiB

bpf_filter.cH A D01-Apr-202312.1 KiB

bpf_image.cH A D01-Apr-20239.2 KiB

CHANGESH A D29-Jun-202362.4 KiB

charconv.cH A D01-Apr-20236.3 KiB

charconv.hH A D01-Apr-20232.2 KiB

chmod_bpfH A D22-Jun-2021757

ChmodBPF/H22-Jun-20214

cmake/H22-Jun-20214

cmake_uninstall.cmake.inH A D22-Jun-20211 KiB

cmakeconfig.h.inH A D01-Apr-202310.6 KiB

CMakeLists.txtH A D01-Apr-2023120.6 KiB

config.guessH A D29-Jun-202348.8 KiB

config.h.inH A D01-Apr-20239.9 KiB

config.subH A D29-Jun-202335 KiB

configureH A D29-Jun-2023419.2 KiB

configure.acH A D29-Jun-202389.1 KiB

CONTRIBUTING.mdH A D01-Apr-20231.4 KiB

CREDITSH A D01-Apr-202316.6 KiB

diag-control.hH A D01-Apr-202311.8 KiB

dlpisubs.cH A D01-Apr-202310.2 KiB

dlpisubs.hH A D22-Jun-2021702

doc/H01-Apr-202311

etherent.cH A D01-Apr-20233.7 KiB

ethertype.hH A D01-Apr-20233.5 KiB

extract.hH A D01-Apr-202318.5 KiB

fad-getad.cH A D01-Apr-20238.6 KiB

fad-gifc.cH A D01-Apr-202312.7 KiB

fad-glifc.cH A D01-Apr-20239.3 KiB

fmtutils.cH A D01-Apr-202312.1 KiB

fmtutils.hH A D01-Apr-20232.5 KiB

ftmacros.hH A D01-Apr-20234.8 KiB

gencode.cH A D29-Jun-2023256.7 KiB

gencode.hH A D01-Apr-202312.7 KiB

grammar.y.inH A D01-Apr-202326.6 KiB

ieee80211.hH A D01-Apr-20235.3 KiB

install-shH A D22-Jun-20215.4 KiB

INSTALL.mdH A D01-Apr-202312.8 KiB

lbl/H01-Apr-202310

libpcap.pc.inH A D01-Apr-2023537

LICENSEH A D22-Jun-2021868

llc.hH A D22-Jun-20212.6 KiB

Makefile-devel-addsH A D01-Apr-2023618

Makefile.inH A D29-Jun-202325.8 KiB

missing/H01-Apr-20239

mkdepH A D29-Jun-20232.8 KiB

msdos/H29-Jun-202311

nametoaddr.cH A D29-Jun-202319.5 KiB

nametoaddr.hH A D22-Jun-20212.1 KiB

nlpid.hH A D22-Jun-20211.7 KiB

nomkdepH A D01-Apr-2023135

optimize.cH A D29-Jun-202374.7 KiB

optimize.hH A D22-Jun-20211.3 KiB

org.tcpdump.chmod_bpf.plistH A D01-Apr-2023442

pcap/H29-Jun-202317

pcap-airpcap.cH A D01-Apr-202328.8 KiB

pcap-airpcap.hH A D01-Apr-20231.8 KiB

pcap-bpf.cH A D01-Apr-202390.3 KiB

pcap-bpf.hH A D22-Jun-20212.2 KiB

pcap-bt-linux.cH A D29-Jun-202311.9 KiB

pcap-bt-linux.hH A D22-Jun-20211.8 KiB

pcap-bt-monitor-linux.cH A D01-Apr-20238 KiB

pcap-bt-monitor-linux.hH A D22-Jun-20211.6 KiB

pcap-common.cH A D29-Jun-202342.8 KiB

pcap-common.hH A D01-Apr-20231.3 KiB

pcap-config.1H A D01-Apr-20232.3 KiB

pcap-config.inH A D01-Apr-20233.8 KiB

pcap-dag.cH A D01-Apr-202337 KiB

pcap-dag.hH A D22-Jun-2021457

pcap-dbus.cH A D01-Apr-202310 KiB

pcap-dbus.hH A D22-Jun-2021112

pcap-dll.rcH A D01-Apr-20231 KiB

pcap-dlpi.cH A D01-Apr-202348.5 KiB

pcap-dos.cH A D01-Apr-202336.4 KiB

pcap-dos.hH A D22-Jun-20216.7 KiB

pcap-dpdk.cH A D01-Apr-202331.6 KiB

pcap-dpdk.hH A D01-Apr-20231.4 KiB

pcap-enet.cH A D01-Apr-20234.7 KiB

pcap-filter.manmisc.inH A D01-Apr-202336.8 KiB

pcap-haiku.cppH A D01-Apr-20236.9 KiB

pcap-int.hH A D01-Apr-202321.1 KiB

pcap-libdlpi.cH A D29-Jun-202312.9 KiB

pcap-linktype.manmisc.inH A D01-Apr-20232.3 KiB

pcap-linux.cH A D29-Jun-2023155.1 KiB

pcap-namedb.hH A D22-Jun-20212 KiB

pcap-netfilter-linux.cH A D29-Jun-202321.5 KiB

pcap-netfilter-linux.hH A D22-Jun-20211.7 KiB

pcap-netmap.cH A D01-Apr-20237.8 KiB

pcap-netmap.hH A D22-Jun-2021126

pcap-new.cH A D01-Apr-202313.3 KiB

pcap-nit.cH A D01-Apr-202310.3 KiB

pcap-npf.cH A D29-Jun-202369.5 KiB

pcap-null.cH A D22-Jun-20211.9 KiB

pcap-pf.cH A D01-Apr-202318.5 KiB

pcap-rdmasniff.cH A D01-Apr-202311.5 KiB

pcap-rdmasniff.hH A D22-Jun-2021140

pcap-rpcap-int.hH A D22-Jun-20213.4 KiB

pcap-rpcap.cH A D01-Apr-2023106.8 KiB

pcap-rpcap.hH A D22-Jun-20212.2 KiB

pcap-savefile.manfile.inH A D01-Apr-20235.2 KiB

pcap-septel.cH A D01-Apr-20238.1 KiB

pcap-septel.hH A D22-Jun-2021512

pcap-sita.cH A D29-Jun-202336 KiB

pcap-sita.hH A D22-Jun-2021224

pcap-sita.htmlH A D29-Jun-202337.4 KiB

pcap-snf.cH A D29-Jun-202314.8 KiB

pcap-snf.hH A D22-Jun-2021110

pcap-snit.cH A D01-Apr-202312.9 KiB

pcap-snoop.cH A D01-Apr-202313.2 KiB

pcap-tc.cH A D01-Apr-202332.6 KiB

pcap-tc.hH A D22-Jun-20211.9 KiB

pcap-tstamp.manmisc.inH A D01-Apr-20239.4 KiB

pcap-types.hH A D01-Apr-20231.9 KiB

pcap-usb-linux-common.cH A D01-Apr-20234.8 KiB

pcap-usb-linux-common.hH A D01-Apr-20231.3 KiB

pcap-usb-linux.cH A D29-Jun-202325.7 KiB

pcap-usb-linux.hH A D22-Jun-20211.8 KiB

pcap-util.cH A D01-Apr-202313.6 KiB

pcap-util.hH A D01-Apr-20232.4 KiB

pcap.3pcap.inH A D01-Apr-202331.4 KiB

pcap.cH A D01-Apr-2023115 KiB

pcap.hH A D22-Jun-20212.2 KiB

pcap_activate.3pcapH A D01-Apr-20233.9 KiB

pcap_breakloop.3pcapH A D01-Apr-20235.8 KiB

pcap_can_set_rfmon.3pcapH A D01-Apr-20232.7 KiB

pcap_close.3pcapH A D01-Apr-20231.5 KiB

pcap_compile.3pcap.inH A D01-Apr-20233 KiB

pcap_create.3pcapH A D01-Apr-20232.2 KiB

pcap_datalink.3pcap.inH A D01-Apr-20232.4 KiB

pcap_datalink_name_to_val.3pcapH A D01-Apr-20231.8 KiB

pcap_datalink_val_to_name.3pcapH A D01-Apr-20232.8 KiB

pcap_dump.3pcapH A D01-Apr-20231.7 KiB

pcap_dump_close.3pcapH A D01-Apr-20231.5 KiB

pcap_dump_file.3pcapH A D01-Apr-20231.5 KiB

pcap_dump_flush.3pcapH A D01-Apr-20231.7 KiB

pcap_dump_ftell.3pcapH A D01-Apr-20232.3 KiB

pcap_dump_open.3pcap.inH A D01-Apr-20233.6 KiB

pcap_file.3pcapH A D01-Apr-20232.1 KiB

pcap_fileno.3pcapH A D01-Apr-20232 KiB

pcap_findalldevs.3pcapH A D01-Apr-20236.3 KiB

pcap_freecode.3pcapH A D01-Apr-20231.7 KiB

pcap_get_required_select_timeout.3pcapH A D01-Apr-20234.9 KiB

pcap_get_selectable_fd.3pcapH A D01-Apr-20234.7 KiB

pcap_get_tstamp_precision.3pcap.inH A D01-Apr-20231.9 KiB

pcap_geterr.3pcapH A D01-Apr-20231.8 KiB

pcap_init.3pcapH A D01-Apr-20233.2 KiB

pcap_inject.3pcapH A D01-Apr-20233.6 KiB

pcap_is_swapped.3pcapH A D01-Apr-20231.9 KiB

pcap_lib_version.3pcapH A D01-Apr-20231.6 KiB

pcap_list_datalinks.3pcap.inH A D01-Apr-20232.6 KiB

pcap_list_tstamp_types.3pcap.inH A D01-Apr-20233 KiB

pcap_lookupdev.3pcapH A D01-Apr-20232.6 KiB

pcap_lookupnet.3pcapH A D01-Apr-20232 KiB

pcap_loop.3pcapH A D01-Apr-20236.9 KiB

pcap_major_version.3pcapH A D01-Apr-20232 KiB

pcap_next_ex.3pcapH A D01-Apr-20235 KiB

pcap_offline_filter.3pcapH A D01-Apr-20232 KiB

pcap_open_dead.3pcap.inH A D01-Apr-20232.9 KiB

pcap_open_live.3pcapH A D01-Apr-20232.8 KiB

pcap_open_offline.3pcap.inH A D01-Apr-20233.8 KiB

pcap_set_buffer_size.3pcapH A D01-Apr-20231.8 KiB

pcap_set_datalink.3pcapH A D01-Apr-20232 KiB

pcap_set_immediate_mode.3pcap.inH A D01-Apr-20233.3 KiB

pcap_set_promisc.3pcapH A D01-Apr-20231.8 KiB

pcap_set_protocol_linux.3pcapH A D01-Apr-20232.8 KiB

pcap_set_rfmon.3pcapH A D01-Apr-20231.8 KiB

pcap_set_snaplen.3pcapH A D01-Apr-20231.8 KiB

pcap_set_timeout.3pcapH A D01-Apr-20232.2 KiB

pcap_set_tstamp_precision.3pcap.inH A D01-Apr-20232.4 KiB

pcap_set_tstamp_type.3pcap.inH A D01-Apr-20232.8 KiB

pcap_setdirection.3pcapH A D01-Apr-20232.5 KiB

pcap_setfilter.3pcapH A D01-Apr-20231.9 KiB

pcap_setnonblock.3pcapH A D01-Apr-20233.2 KiB

pcap_snapshot.3pcapH A D01-Apr-20231.9 KiB

pcap_stats.3pcapH A D01-Apr-20233.5 KiB

pcap_statustostr.3pcapH A D01-Apr-20231.6 KiB

pcap_strerror.3pcapH A D01-Apr-20231.5 KiB

pcap_tstamp_type_name_to_val.3pcapH A D01-Apr-20231.9 KiB

pcap_tstamp_type_val_to_name.3pcapH A D01-Apr-20232 KiB

pflog.hH A D01-Apr-20234.1 KiB

portability.hH A D01-Apr-20235.2 KiB

ppp.hH A D22-Jun-20212.6 KiB

README.mdH A D29-Jun-20233.4 KiB

rpcap-protocol.cH A D01-Apr-20236.8 KiB

rpcap-protocol.hH A D01-Apr-202319.4 KiB

rpcapd/H29-Jun-202323

savefile.cH A D01-Apr-202317.4 KiB

scanner.lH A D01-Apr-202316.7 KiB

sf-pcap.cH A D01-Apr-202331.6 KiB

sf-pcap.hH A D22-Jun-20211.7 KiB

sf-pcapng.cH A D01-Apr-202339.6 KiB

sf-pcapng.hH A D22-Jun-20211.4 KiB

sockutils.cH A D29-Jun-202362.4 KiB

sockutils.hH A D01-Apr-20235.8 KiB

sslutils.cH A D01-Apr-20236.4 KiB

sslutils.hH A D01-Apr-20232.4 KiB

sunatmpos.hH A D22-Jun-20212.1 KiB

testprogs/H29-Jun-202319

tests/H01-Apr-20237

TODOH A D01-Apr-20231.4 KiB

varattrs.hH A D22-Jun-20212.4 KiB

VERSIONH A D29-Jun-20237

README.md

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