Home | History | Annotate | only in /src/external/bsd/libpcap/dist
Up to higher level directory
NameDateSize
aclocal.m419-Mar-202641.5K
arcnet.h19-Nov-20142.5K
atmuni31.h02-Sep-20243.9K
autogen.sh19-Mar-20262.7K
bpf_dump.c02-Sep-20242K
bpf_filter.c02-Sep-202412.2K
bpf_image.c02-Sep-20249.4K
CHANGES19-Mar-202675.5K
charconv.c02-Sep-20246.4K
charconv.h17-Aug-20232.2K
chmod_bpf03-Sep-2018757
ChmodBPF/25-Feb-2026
cmake/25-Feb-2026
cmake_uninstall.cmake.in03-Sep-20181K
cmakeconfig.h.in19-Mar-202610.8K
CMakeLists.txt19-Mar-2026130K
config.guess02-Sep-202449.5K
config.h.in19-Mar-202610K
config.sub02-Sep-202436K
configure19-Mar-2026428.2K
configure.ac19-Mar-202690.1K
CONTRIBUTING.md17-Aug-20231.4K
CREDITS19-Mar-202618.7K
diag-control.h02-Sep-202414.3K
dlpisubs.c19-Mar-202613.7K
dlpisubs.h19-Mar-2026840
doc/19-Mar-2026
etherent.c02-Sep-20243.8K
ethertype.h17-Aug-20233.5K
extract.h02-Sep-202418.5K
fad-getad.c19-Mar-20269.5K
fad-gifc.c02-Sep-202413.1K
fad-glifc.c02-Sep-20249.6K
fmtutils.c19-Mar-202611.1K
fmtutils.h02-Sep-20242.6K
ftmacros.h02-Sep-20244.8K
gencode.c19-Mar-2026267.4K
gencode.h02-Sep-202412.8K
grammar.y.in19-Mar-202629.7K
ieee80211.h19-Mar-20265.4K
install-sh02-Sep-202415K
INSTALL.md19-Mar-202616.5K
instrument-functions.c18-Mar-20266.5K
lbl/25-Feb-2026
libpcap.pc.in17-Aug-2023537
LICENSE31-Mar-2015868
llc.h19-Nov-20142.6K
Makefile-devel-adds17-Aug-2023618
Makefile.in19-Mar-202628.7K
missing/25-Feb-2026
mkdep02-Sep-20242.9K
msdos/25-Feb-2026
nametoaddr.c19-Mar-202627.6K
nametoaddr.h19-Mar-20262.2K
nlpid.h02-Sep-20241.7K
nomkdep03-Sep-2018135
optimize.c19-Mar-202675.3K
optimize.h03-Sep-20181.3K
org.tcpdump.chmod_bpf.plist17-Aug-2023442
pcap/19-Mar-2026
pcap-airpcap.c02-Sep-202428.9K
pcap-airpcap.h17-Aug-20231.8K
pcap-bpf.c19-Mar-202693.3K
pcap-bpf.h31-Mar-20152.3K
pcap-bt-linux.c02-Sep-202412.2K
pcap-bt-linux.h03-Sep-20181.8K
pcap-bt-monitor-linux.c02-Sep-20248.3K
pcap-bt-monitor-linux.h03-Sep-20181.7K
pcap-common.c19-Mar-202652.1K
pcap-common.h17-Aug-20231.4K
pcap-config.102-Sep-20243.5K
pcap-config.in02-Sep-20243.8K
pcap-dag.c19-Mar-202637K
pcap-dag.h03-Sep-2018525
pcap-dbus.c19-Mar-202610.2K
pcap-dbus.h03-Sep-2018181
pcap-dll.rc17-Aug-20231K
pcap-dlpi.c19-Mar-202650.9K
pcap-dos.c02-Sep-202436.5K
pcap-dos.h31-Mar-20156.8K
pcap-dpdk.c19-Mar-202631.6K
pcap-dpdk.h17-Aug-20231.4K
pcap-enet.c02-Sep-20244.9K
pcap-filter.manmisc.in02-Sep-202436.9K
pcap-haiku.c19-Mar-202615.3K
pcap-int.h19-Mar-202620.4K
pcap-libdlpi.c19-Mar-202613.8K
pcap-linktype.manmisc.in17-Aug-20232.3K
pcap-linux.c19-Mar-2026172.9K
pcap-namedb.h19-Nov-20142K
pcap-netfilter-linux.c02-Sep-202421.9K
pcap-netfilter-linux.h03-Sep-20181.7K
pcap-netmap.c02-Sep-20247.8K
pcap-netmap.h03-Sep-2018126
pcap-new.c19-Mar-202614.2K
pcap-nit.c02-Sep-202410.5K
pcap-npf.c19-Mar-202673.1K
pcap-null.c02-Sep-20242K
pcap-pf.c02-Sep-202418.8K
pcap-rdmasniff.c02-Sep-202411.5K
pcap-rdmasniff.h03-Sep-2018140
pcap-rpcap-unix.c02-Sep-202417.6K
pcap-rpcap-unix.h29-Mar-202071
pcap-rpcap.c19-Mar-2026107.1K
pcap-rpcap.h01-Oct-20192.2K
pcap-savefile.manfile.in19-Mar-20267.3K
pcap-septel.c19-Mar-20268.2K
pcap-septel.h03-Sep-2018583
pcap-sita.c02-Sep-202436.2K
pcap-sita.h19-Nov-2014293
pcap-sita.html02-Sep-202437.3K
pcap-snf.c19-Mar-202615K
pcap-snf.h03-Sep-2018178
pcap-snit.c02-Sep-202413.2K
pcap-snoop.c02-Sep-202413.5K
pcap-tc.c02-Sep-202432.7K
pcap-tc.h03-Sep-20181.9K
pcap-tstamp.manmisc.in02-Sep-20249.4K
pcap-types.h17-Aug-20231.9K
pcap-usb-linux-common.h02-Sep-20244.2K
pcap-usb-linux.c02-Sep-202426.6K
pcap-usb-linux.h03-Sep-20181.8K
pcap-util.c02-Sep-202418.9K
pcap-util.h02-Sep-20242.3K
pcap.3pcap.in02-Sep-202431.4K
pcap.c19-Mar-2026121.7K
pcap.h19-Nov-20142.3K
pcap_activate.3pcap02-Sep-20244.1K
pcap_breakloop.3pcap02-Sep-20245.8K
pcap_can_set_rfmon.3pcap02-Sep-20242.7K
pcap_close.3pcap19-Mar-20261.7K
pcap_compile.3pcap.in02-Sep-20243K
pcap_create.3pcap02-Sep-20242.2K
pcap_datalink.3pcap.in17-Aug-20232.4K
pcap_datalink_name_to_val.3pcap02-Sep-20241.8K
pcap_datalink_val_to_name.3pcap02-Sep-20242.8K
pcap_dump.3pcap02-Sep-20241.7K
pcap_dump_close.3pcap19-Mar-20261.7K
pcap_dump_file.3pcap02-Sep-20241.5K
pcap_dump_flush.3pcap19-Mar-20261.7K
pcap_dump_ftell.3pcap02-Sep-20242.3K
pcap_dump_open.3pcap.in17-Aug-20233.6K
pcap_file.3pcap19-Mar-20262.1K
pcap_fileno.3pcap02-Sep-20242K
pcap_findalldevs.3pcap02-Sep-20246.8K
pcap_freecode.3pcap02-Sep-20241.7K
pcap_get_required_select_timeout.3pcap17-Aug-20234.9K
pcap_get_selectable_fd.3pcap02-Sep-20244.7K
pcap_get_tstamp_precision.3pcap.in17-Aug-20231.9K
pcap_geterr.3pcap02-Sep-20241.8K
pcap_init.3pcap02-Sep-20243.2K
pcap_inject.3pcap02-Sep-20243.6K
pcap_is_swapped.3pcap02-Sep-20241.9K
pcap_lib_version.3pcap02-Sep-20241.6K
pcap_list_datalinks.3pcap.in17-Aug-20232.6K
pcap_list_tstamp_types.3pcap.in17-Aug-20233K
pcap_lookupdev.3pcap02-Sep-20242.6K
pcap_lookupnet.3pcap02-Sep-20242.2K
pcap_loop.3pcap19-Mar-20266.9K
pcap_major_version.3pcap02-Sep-20242K
pcap_next_ex.3pcap19-Mar-20265K
pcap_offline_filter.3pcap02-Sep-20242K
pcap_open_dead.3pcap.in17-Aug-20232.9K
pcap_open_live.3pcap02-Sep-20243.1K
pcap_open_offline.3pcap.in19-Mar-20263.9K
pcap_set_buffer_size.3pcap02-Sep-20241.8K
pcap_set_datalink.3pcap02-Sep-20242K
pcap_set_immediate_mode.3pcap.in17-Aug-20233.3K
pcap_set_promisc.3pcap02-Sep-20241.8K
pcap_set_protocol_linux.3pcap17-Aug-20232.8K
pcap_set_rfmon.3pcap02-Sep-20241.8K
pcap_set_snaplen.3pcap02-Sep-20241.8K
pcap_set_timeout.3pcap02-Sep-20242.2K
pcap_set_tstamp_precision.3pcap.in02-Sep-20242.4K
pcap_set_tstamp_type.3pcap.in17-Aug-20232.8K
pcap_setdirection.3pcap02-Sep-20242.5K
pcap_setfilter.3pcap02-Sep-20241.9K
pcap_setnonblock.3pcap02-Sep-20243.3K
pcap_snapshot.3pcap02-Sep-20241.9K
pcap_stats.3pcap02-Sep-20243.5K
pcap_statustostr.3pcap02-Sep-20241.6K
pcap_strerror.3pcap02-Sep-20241.8K
pcap_tstamp_type_name_to_val.3pcap02-Sep-20241.9K
pcap_tstamp_type_val_to_name.3pcap02-Sep-20242K
pflog.h19-Mar-20264.1K
portability.h02-Sep-20245.3K
ppp.h02-Sep-20242.7K
README.md17-Aug-20233.4K
rpcap-protocol.c02-Sep-20246.8K
rpcap-protocol.h02-Sep-202419.4K
rpcapd/19-Mar-2026
savefile.c02-Sep-202417.6K
scanner.l19-Mar-202618K
sf-pcap.c19-Mar-202634.8K
sf-pcap.h01-Oct-20191.8K
sf-pcapng.c02-Sep-202439.6K
sf-pcapng.h01-Oct-20191.4K
sockutils.c02-Sep-202462.6K
sockutils.h02-Sep-20245.8K
sslutils.c02-Sep-20246.4K
sslutils.h02-Sep-20242.7K
sunatmpos.h19-Nov-20142.2K
testprogs/Today
tests/25-Feb-2026
thread-local.h02-Sep-20243K
TODO02-Sep-20241.2K
varattrs.h03-Sep-20182.4K
VERSION19-Mar-20267

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