1
0
Fork 0
mirror of https://github.com/the-tcpdump-group/libpcap.git synced 2026-03-07 03:00:34 +00:00
the LIBpcap interface to various kernel packet capture mechanism
Find a file
Guy Harris c40c6f9b35 testprogs/CMakeLists.txt: add a comment. [skip ci]
We don't distribute the fuzz tests in the release tarball, so we only
attempt to build them if we're in a Git repository.
2026-03-06 09:42:50 -08:00
.github/ISSUE_TEMPLATE Update the GitHub issue template 2025-05-14 09:51:48 +02:00
ChmodBPF To quote 2009-09-09 16:50:36 -07:00
cmake Refine reporting of DPDK-related build messages. 2025-02-12 22:52:28 +00:00
doc doc: Add a README.qnx.md file. 2026-01-19 17:45:50 +00:00
missing Include <config.h> unconditionally 2024-03-27 22:27:49 +00:00
pcap Don't assume Linux USB headers are 64-bit aligned. 2026-03-02 11:44:10 -08:00
rpcapd Both AF_INET and AF_INET6 are mandatory. 2026-02-24 12:26:17 +00:00
testprogs testprogs/CMakeLists.txt: add a comment. [skip ci] 2026-03-06 09:42:50 -08:00
tests TESTrun: Cover gen_load_internal() better. 2026-02-24 12:55:39 +00:00
.appveyor.yml AppVeyor: Update the remote capture build configuration 2026-03-01 16:12:10 +00:00
.ci-coverity-scan-build.sh .ci-coverity-scan-build.sh: Fix two shellcheck notes 2023-12-03 17:57:31 +01:00
.cirrus.yml CI: Add initial support for cross-compiling. [skip appveyor] 2026-02-05 13:21:36 +00:00
.gitattributes add a GitHub issue template 2017-03-06 11:49:32 +00:00
.gitignore Add *.orig and *.rej to .gitignore. [skip ci] 2024-12-04 22:29:44 +00:00
.mailmap Add more entries to .mailmap. [skip ci] 2020-09-08 16:01:40 +01:00
aclocal.m4 Autoconf: Add QNX support to AC_LBL_LIBRARY_NET(). 2026-01-19 17:45:50 +00:00
autogen.sh Autoconf: Print the GNU C Library version when needed in autogen.sh 2025-04-16 18:03:22 +02:00
bpf_dump.c Include <config.h> unconditionally 2024-03-27 22:27:49 +00:00
bpf_filter.c Remove all instances of the "register" specifier. 2025-10-05 11:34:42 +01:00
bpf_image.c Add the missing case for "ldx #pktlen" to bpf_image(). 2025-11-09 20:43:02 +00:00
build.sh CI: Add initial support for cross-compiling. [skip appveyor] 2026-02-05 13:21:36 +00:00
build_common.sh CI: Add initial support for cross-compiling. [skip appveyor] 2026-02-05 13:21:36 +00:00
build_matrix.sh CI: Rename FILTERTEST_TIMEOUT to TEST_TIMEOUT. 2025-12-26 13:03:27 +00:00
cbpf-savefile.manfile.in cbpf-savefile(5): Allocate a flag for BPF_RND. 2025-02-09 21:10:02 +00:00
CHANGES CHANGES: add a fix. [skip ci] 2026-03-02 11:54:25 -08:00
charconv.c Fix some typos 2023-10-18 15:01:02 +02:00
charconv.h Refine the #ifndef guard in charconv.h. [skip ci] 2021-08-10 13:49:21 +01:00
chmod_bpf Update to reflect the name change for Apple's UNIX-for-Macs. 2018-01-08 19:23:28 -08:00
cmake_uninstall.cmake.in Support "make uninstall" for CMake. 2017-09-28 11:21:11 -07:00
cmakeconfig.h.in Hinge zero-copy BPF on <machine/atomic.h>, not __QNX__. 2026-01-24 09:46:22 +00:00
CMakeLists.txt Don't assume Linux USB headers are 64-bit aligned. 2026-03-02 11:44:10 -08:00
config.guess Autoconf: Update config.{guess,sub}, timestamps 2024-01-01 2024-01-23 14:58:52 -08:00
config.sub Autoconf: Update config.{guess,sub}, timestamps 2024-01-01 2024-01-23 14:58:52 -08:00
configure.ac Autoconf: Move the --enable-remote warning at the end of configure script 2026-02-28 06:29:32 +00:00
CONTRIBUTING.md Mention the filter tests in CONTRIBUTING.md. [skip ci] 2025-03-17 18:00:41 +00:00
CREDITS List all recent contributors in CREDITS. [skip ci] 2025-12-29 17:25:59 +00:00
diag-control.h Silence -Wsign-compare about musl CMSG_NXTHDR(). [skip appveyor] 2024-03-29 16:05:00 +00:00
dlpisubs.c dlpi: some restructuring. 2025-07-29 19:29:47 -07:00
dlpisubs.h dlpi: some restructuring. 2025-07-29 19:29:47 -07:00
etherent.c Remove all instances of the "register" specifier. 2025-10-05 11:34:42 +01:00
ethertype.h Remove some ETHERTYPE_* definitions 2025-09-16 18:26:35 +02:00
extract.h Fix spelling 2023-06-25 17:15:12 +00:00
fad-getad.c Both AF_INET and AF_INET6 are mandatory. 2026-02-24 12:26:17 +00:00
fad-gifc.c Use calloc(3) a little bit more. 2025-11-01 13:36:00 +00:00
fad-glifc.c Use calloc(3) a little bit more. 2025-11-01 13:36:00 +00:00
fmtutils.c Fix a copy-and-pasteo in utf_16le_to_utf_8_truncated(). 2025-09-07 14:46:31 -07:00
fmtutils.h More pcap_ to pcapint_ for non-API routines. 2023-11-08 23:26:22 -08:00
ftmacros.h Avoid redefining _GNU_SOURCE. [skip appveyor] 2024-09-30 11:00:54 +01:00
gencode.c Factor gen_frelay_nlpid() out. 2026-02-24 20:18:23 +00:00
gencode.h Reduce AND/OR on a Boolean constant early. 2025-11-05 09:45:07 +00:00
grammar.y.in In "net <n> mask <m>" catch ENOMEM for the "m" too. 2026-02-21 15:49:55 +00:00
ieee80211.h Remove a few arrays from ieee80211.h. [skip ci] 2025-08-16 13:28:53 +01:00
install-sh Update install-sh script to the latest available version 2023-05-31 08:45:31 +01:00
INSTALL.md doc: Add a README.qnx.md file. 2026-01-19 17:45:50 +00:00
instrument-functions.c instrument functions: Use two loop indexes with reduced scopes 2023-10-30 14:08:20 +01:00
libpcap.pc.in autoconf, cmake: fix generated pcap-config and libpcap.pc. 2022-09-27 21:17:27 -07:00
LICENSE Delete trailing spaces/tabs 2015-03-08 21:39:43 +01:00
llc.h Add support for filters testing for 802.2 LLC frame types. 2014-05-19 20:53:58 -07:00
Makefile-devel-adds Fix parallel build with FreeBSD make. [skip appveyor] 2021-02-04 15:14:10 +00:00
Makefile.in Makefile.in: update a comment to reflect reality. [skip ci] 2026-03-06 09:40:25 -08:00
mkdep mkdep: Exit with a non-zero status if a command fails 2024-04-09 05:41:42 +00:00
nametoaddr.c Refine handling of struct eproto. 2026-01-24 09:43:29 +00:00
nametoaddr.h Separate DECnet and IPv4 code paths better. 2026-01-14 21:11:10 +00:00
nomkdep Fix "make depend" in rpcapd if we can't generate dependencies. 2017-11-25 01:00:46 -08:00
optimize.c Remove all instances of the "register" specifier. 2025-10-05 11:34:42 +01:00
optimize.h Have separate flags for "optimizer debug" and "print DOT graph". 2018-05-03 01:39:39 -07:00
org.tcpdump.chmod_bpf.plist Use more HTTPS in URLs 2020-01-19 09:33:18 +01:00
pcap-bpf.c Hinge zero-copy BPF on <machine/atomic.h>, not __QNX__. 2026-01-24 09:46:22 +00:00
pcap-bpf.h Delete trailing spaces/tabs 2015-03-08 21:39:43 +01:00
pcap-bt-linux.c Introduce a routine to parse decimal numbers in a string. 2026-02-24 00:19:26 -08:00
pcap-bt-linux.h Have a pcap_if_list_t structure for use by the findalldevs code. 2017-01-18 13:36:27 -08:00
pcap-bt-monitor-linux.c bt-monitor, netfilter: handle EPERM better. 2026-02-28 23:07:50 -08:00
pcap-bt-monitor-linux.h Have a pcap_if_list_t structure for use by the findalldevs code. 2017-01-18 13:36:27 -08:00
pcap-common.c Spell "EtherType" in a few more instances. [skip ci] 2025-12-12 18:51:37 +00:00
pcap-common.h rpcap: have the server tell the client its byte order. 2022-08-06 04:00:43 -07:00
pcap-config.1 pcap-config(1): Document --version a bit better. [skip ci] 2024-12-22 13:37:53 +00:00
pcap-config.in Document pcap-config better and test it. [skip ci] 2023-02-18 23:01:45 +00:00
pcap-dag.c DAG: Require dag_pciinfo() to succeed in dag_findalldevs(). 2026-02-06 22:59:21 +00:00
pcap-dag.h DAG: Fix a typo in pcap-dag.h. [skip ci] 2024-11-10 20:35:09 +00:00
pcap-dbus.c dbus: fix message leak 2024-09-29 14:08:35 -07:00
pcap-dbus.h Have a pcap_if_list_t structure for use by the findalldevs code. 2017-01-18 13:36:27 -08:00
pcap-dll.rc Use correct strings for DLL VersionInfo 2021-10-27 15:55:26 -05:00
pcap-dlpi.c Remove all instances of the "register" specifier. 2025-10-05 11:34:42 +01:00
pcap-dpdk.c Add the size of time_t to the version string. 2025-10-10 12:42:39 -07:00
pcap-dpdk.h modify copyright msg 2018-12-22 17:08:12 +08:00
pcap-filter.manmisc.in pcap-filter(7): Refine ext. headers and accessors. 2026-02-21 16:46:34 +00:00
pcap-haiku.c Use pcapint_strlcpy() in pcap-haiku.c. 2025-01-03 18:46:47 +00:00
pcap-hurd.c Hurd: fix a comment. [skip ci] 2025-02-20 19:29:42 -08:00
pcap-int.h Introduce a routine to parse decimal numbers in a string. 2026-02-24 00:19:26 -08:00
pcap-libdlpi.c dlpi: some restructuring. 2025-07-29 19:29:47 -07:00
pcap-linktype.manmisc.in Cross-reference some man pages better. [skip ci] 2024-10-01 12:23:59 +01:00
pcap-linux.c linux: handle older kernels that require CAP_NET_ADMIN for ETHTOOL_GLINK. 2025-12-30 12:38:13 -08:00
pcap-namedb.h remove libpcap's own CVS keywords 2014-01-03 16:05:37 +04:00
pcap-netfilter-linux.c bt-monitor, netfilter: handle EPERM better. 2026-02-28 23:07:50 -08:00
pcap-netfilter-linux.h Have a pcap_if_list_t structure for use by the findalldevs code. 2017-01-18 13:36:27 -08:00
pcap-netmap.c netmap: set the captured length appropriately. 2026-01-01 11:48:58 -08:00
pcap-netmap.h Add netmap support. 2017-05-31 12:45:20 -07:00
pcap-new.c Validate remote capture source strings better. 2025-12-18 15:42:31 +00:00
pcap-npf.c npf: don't empty or check the type and precision lists inget_ts_support(). 2025-12-24 17:19:31 -08:00
pcap-null.c Include <config.h> unconditionally 2024-03-27 22:27:49 +00:00
pcap-options.c Include <config.h> unconditionally 2024-03-27 22:27:49 +00:00
pcap-rdmasniff.c Include <config.h> unconditionally 2024-03-27 22:27:49 +00:00
pcap-rdmasniff.h RDMA sniffing support for pcap 2017-08-25 10:47:31 -07:00
pcap-rpcap.c Both AF_INET and AF_INET6 are mandatory. 2026-02-24 12:26:17 +00:00
pcap-rpcap.h More constification of arguments. 2018-12-25 00:46:46 -08:00
pcap-savefile.manfile.in pcap-savefile(5): Capitalize "GMT" properly. [skip ci] 2026-01-08 14:12:20 +00:00
pcap-snf.c Add the size of time_t to the version string. 2025-10-10 12:42:39 -07:00
pcap-snf.h SNF: Fill pcap_if_t in more consistently. 2024-11-30 17:14:43 +00:00
pcap-tstamp.manmisc.in pcap-tstamp(7): Before pcap_activate(), not after. 2024-10-01 08:20:09 +01:00
pcap-types.h Get rid of extra blank line. 2018-08-04 02:59:54 -07:00
pcap-usb-linux-common.h usb-linux: reorganize the isochronous length handling code. 2024-03-18 14:24:58 -07:00
pcap-usb-linux.c Don't assume Linux USB headers are 64-bit aligned. 2026-03-02 11:44:10 -08:00
pcap-usb-linux.h Have a pcap_if_list_t structure for use by the findalldevs code. 2017-01-18 13:36:27 -08:00
pcap-util.c Don't assume Linux USB headers are 64-bit aligned. 2026-03-02 11:44:10 -08:00
pcap-util.h Don't assume Linux USB headers are 64-bit aligned. 2026-03-02 11:44:10 -08:00
pcap.3pcap.in Call WSAStartup/WSACleanup for each use. Fixes #1333 2024-09-21 15:26:21 -07:00
pcap.c Introduce a routine to parse decimal numbers in a string. 2026-02-24 00:19:26 -08:00
pcap.h remove libpcap's own CVS keywords 2014-01-03 16:05:37 +04:00
pcap_activate.3pcap Bump the date up in pcap_activate(3PCAP). [skip ci] 2024-06-04 09:27:44 +01:00
pcap_breakloop.3pcap Finish the pruning of unsupported OSes. 2024-02-01 15:47:50 +00:00
pcap_can_set_rfmon.3pcap man: Format more special constants bold. [skip ci] 2020-08-21 19:54:55 +01:00
pcap_close.3pcap man pages: note that pcap_close() closes the standard i/O stream. 2024-10-22 14:27:19 -07:00
pcap_compile.3pcap.in pcap_compile(3PCAP): Clarify PCAP_NETMASK_UNKNOWN. [skip ci] 2025-05-29 18:27:53 +01:00
pcap_create.3pcap man: Document devices, interfaces and "any" better. 2025-03-11 18:44:48 +00:00
pcap_datalink.3pcap.in Cross-reference some man pages better. [skip ci] 2024-10-01 12:23:59 +01:00
pcap_datalink_name_to_val.3pcap Cross-reference some man pages better. [skip ci] 2024-10-01 12:23:59 +01:00
pcap_datalink_val_to_name.3pcap Cross-reference some man pages better. [skip ci] 2024-10-01 12:23:59 +01:00
pcap_dump.3pcap man: Indent multiline prototypes consistently. [skip ci] 2023-03-11 12:34:09 +00:00
pcap_dump_close.3pcap pcap_dump_close: don't close stdout, just flush it. 2024-10-22 14:46:00 -07:00
pcap_dump_file.3pcap Style cleanup. 2019-11-23 20:56:35 -08:00
pcap_dump_flush.3pcap Fix punctuation in a few more man pages. [skip ci] 2024-09-26 10:35:48 +01:00
pcap_dump_ftell.3pcap Add BACKWARD COMPATIBILITY for more post-1.0 APIs. 2020-12-21 03:12:47 -08:00
pcap_dump_open.3pcap.in Fixup a few man pages. [skip ci] 2021-12-22 23:59:42 +00:00
pcap_file.3pcap Update pcap_file.3pcap 2024-09-26 17:04:41 +08:00
pcap_fileno.3pcap Style cleanup. 2019-11-23 20:56:35 -08:00
pcap_findalldevs.3pcap Note QNX in pcap_findalldevs(3PCAP). 2026-02-01 19:28:27 +00:00
pcap_freecode.3pcap Style cleanup. 2019-11-23 20:56:35 -08:00
pcap_get_required_select_timeout.3pcap Fixup a few man pages. [skip ci] 2021-12-22 23:59:42 +00:00
pcap_get_selectable_fd.3pcap Show correct last modified date in all man pages. 2020-02-16 22:46:34 +00:00
pcap_get_tstamp_precision.3pcap.in man: Prevent hyphenation in a few more cases. [skip ci] 2022-02-13 10:42:40 +00:00
pcap_geterr.3pcap Cross-reference pcap_geterr(3PCAP) and pcap_strerror(3PCAP). 2024-10-07 22:50:19 +01:00
pcap_init.3pcap pcap_init: it was introduced in 1.10, not 1.9. [skip ci] 2025-12-30 22:32:40 -08:00
pcap_inject.3pcap pcap_inject(3PCAP): Add a couple more references. [skip ci] 2024-11-23 15:35:47 +00:00
pcap_is_swapped.3pcap man: Format more special constants bold. [skip ci] 2020-08-21 19:54:55 +01:00
pcap_lib_version.3pcap pcap_lib_version(3PCAP): Refine the format, update an example. 2025-10-23 21:44:40 +01:00
pcap_list_datalinks.3pcap.in Cross-reference some man pages better. [skip ci] 2024-10-01 12:23:59 +01:00
pcap_list_tstamp_types.3pcap.in Cross-reference some man pages better. [skip ci] 2024-10-01 12:23:59 +01:00
pcap_lookupdev.3pcap Bump the date stamp up in a few pages. [skip ci] 2024-08-25 14:19:48 +01:00
pcap_lookupnet.3pcap Note endianness in pcap_compile(3PCAP) and pcap_lookupnet(3PCAP). 2025-01-31 21:58:53 +00:00
pcap_loop.3pcap Fix punctuation in a few more man pages. [skip ci] 2024-09-26 10:35:48 +01:00
pcap_major_version.3pcap Style cleanup. 2019-11-23 20:56:35 -08:00
pcap_next_ex.3pcap Fix punctuation in a few more man pages. [skip ci] 2024-09-26 10:35:48 +01:00
pcap_offline_filter.3pcap Discuss Linux BPF extensions in the man pages. 2025-01-25 11:58:24 +00:00
pcap_open_dead.3pcap.in Add BACKWARD COMPATIBILITY for more post-1.0 APIs. 2020-12-21 03:12:47 -08:00
pcap_open_live.3pcap man: Document devices, interfaces and "any" better. 2025-03-11 18:44:48 +00:00
pcap_open_offline.3pcap.in pcap_open_offline(3PCAP): Fixup BSD house style. [skip ci] 2024-10-24 09:20:11 +01:00
pcap_set_buffer_size.3pcap man: Format more special constants bold. [skip ci] 2020-08-21 19:54:55 +01:00
pcap_set_datalink.3pcap Cross-reference some man pages better. [skip ci] 2024-10-01 12:23:59 +01:00
pcap_set_immediate_mode.3pcap.in Finish the pruning of unsupported OSes. 2024-02-01 15:47:50 +00:00
pcap_set_promisc.3pcap man: Format more special constants bold. [skip ci] 2020-08-21 19:54:55 +01:00
pcap_set_protocol_linux.3pcap man: Format more special constants bold. [skip ci] 2020-08-21 19:54:55 +01:00
pcap_set_rfmon.3pcap man: Format more special constants bold. [skip ci] 2020-08-21 19:54:55 +01:00
pcap_set_snaplen.3pcap man: Format more special constants bold. [skip ci] 2020-08-21 19:54:55 +01:00
pcap_set_timeout.3pcap man: Format more special constants bold. [skip ci] 2020-08-21 19:54:55 +01:00
pcap_set_tstamp_precision.3pcap.in Cross-reference some man pages better. [skip ci] 2024-10-01 12:23:59 +01:00
pcap_set_tstamp_type.3pcap.in Cross-reference some man pages better. [skip ci] 2024-10-01 12:23:59 +01:00
pcap_setdirection.3pcap doc: document PCAP_ERROR_NOT_ACTIVATED for more routines. 2022-03-05 23:26:20 -08:00
pcap_setfilter.3pcap pcap_setfilter(3PCAP): Fix the Linux BPF extensions note. 2025-02-15 21:59:38 +00:00
pcap_setnonblock.3pcap Bump the date stamp up in a few pages. [skip ci] 2024-08-25 14:19:48 +01:00
pcap_snapshot.3pcap Style cleanup. 2019-11-23 20:56:35 -08:00
pcap_stats.3pcap doc: document PCAP_ERROR_NOT_ACTIVATED for more routines. 2022-03-05 23:26:20 -08:00
pcap_statustostr.3pcap Style cleanup. 2019-11-23 20:56:35 -08:00
pcap_strerror.3pcap Cross-reference pcap_geterr(3PCAP) and pcap_strerror(3PCAP). 2024-10-07 22:50:19 +01:00
pcap_tstamp_type_name_to_val.3pcap Cross-reference some man pages better. [skip ci] 2024-10-01 12:23:59 +01:00
pcap_tstamp_type_val_to_name.3pcap Cross-reference some man pages better. [skip ci] 2024-10-01 12:23:59 +01:00
pflog.h Remove some apparently-unneeded includes. 2024-11-13 17:42:22 -08:00
portability.h On Windows, directly call WSAStartup(), and report the error it returns. 2024-09-21 22:58:29 -07:00
ppp.h Fix spelling 2023-06-25 17:15:12 +00:00
README.md README.md: Refine the OS-specific notes about BPF. 2026-01-19 18:20:39 +00:00
rpcap-protocol.c Include <config.h> unconditionally 2024-03-27 22:27:49 +00:00
rpcap-protocol.h Don't define SOCKET ourselves. 2024-01-19 19:31:22 -08:00
savefile.c Remove all instances of the "register" specifier. 2025-10-05 11:34:42 +01:00
scanner.l scanner: Do not try including grammar.h twice. 2026-03-06 15:55:38 +00:00
sf-pcap.c Spell Wireshark in a few places. 2025-11-18 13:40:43 +00:00
sf-pcap.h Read the magic number into a byte array. 2019-06-12 11:32:21 -07:00
sf-pcapng.c pcapng: Improve an error message in read_block(), printing lengths 2026-02-20 13:54:02 -08:00
sf-pcapng.h Read the magic number into a byte array. 2019-06-12 11:32:21 -07:00
sockutils.c rpcapd: Fixup a few comments. 2025-10-18 15:51:19 +01:00
sockutils.h Don't define SOCKET ourselves. 2024-01-19 19:31:22 -08:00
sslutils.c Include <config.h> unconditionally 2024-03-27 22:27:49 +00:00
sslutils.h Squelch Clang warnings about OpenSSL. 2024-03-03 21:19:21 +00:00
thread-local.h Check for HP's C compiler rather than for HP-UX. 2024-09-21 15:21:06 -07:00
varattrs.h Use compiler tests to determine how to define _U_. 2017-11-15 14:21:44 -08:00
VERSION updated VERSION on master branch 2020-12-29 16:40:42 -05:00

LIBPCAP 1.x.y by The Tcpdump Group

To report a security issue please send an e-mail to security@tcpdump.org.

To report bugs and other problems, contribute patches, request a feature, provide generic feedback etc please see the guidelines for contributing.

The documentation directory has README files about specific operating systems and options.

Anonymous Git is available via:

https://github.com/the-tcpdump-group/libpcap.git

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 this functionality, 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.

formerly from	Lawrence Berkeley National Laboratory
		Network Research Group <libpcap@ee.lbl.gov>
		ftp://ftp.ee.lbl.gov/old/libpcap-0.4a7.tar.Z

Support for particular platforms and BPF

For some platforms there are README.{system} files that discuss issues with the OS's interface for packet capture on those platforms, such as how to enable support for that interface in the OS, if it's not built in by default.

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'' (compressed PostScript, gzipped PostScript, PDF).

Although most packet capture interfaces support some in-kernel filtering, libpcap utilizes in-kernel filtering only for the use cases that support BPF programs, namely, the BPF packet capture interface, the Linux packet socket and the GNU/Hurd interface.

In all other cases libpcap reads every packet into user-space and evaluates it using the filter program, which incurs added overhead (especially, for selective filters). Ideally, libpcap would translate BPF filters into a filter program that is compatible with the underlying kernel subsystem, but this is not implemented.

BPF is standard in NetBSD, FreeBSD, OpenBSD, DragonFly BSD, macOS, QNX and Solaris 11; an older, modified and undocumented version is standard in AIX.

Linux has a number of BPF based systems, and libpcap does not support any of the eBPF mechanisms as yet, although it supports many of the memory mapped receive mechanisms. See the Linux-specific README for more information.

Note to Linux distributions and *BSD systems that include libpcap:

There's now a rule to make a shared library, which should work on Linux and *BSD, among other platforms.

It sets the soname of the library to libpcap.so.1; this is what it should be, NOT libpcap.so.1.x or libpcap.so.1.x.y or something such as that.

We've been maintaining binary compatibility between libpcap releases for quite a while; there's no reason to tie a binary linked with libpcap to a particular release of libpcap.