1
0
Fork 0
mirror of https://github.com/the-tcpdump-group/libpcap.git synced 2025-12-05 22:47:24 +00:00
the LIBpcap interface to various kernel packet capture mechanism
Find a file
Denis Ovsienko 8a6ed3ced7 Linux: Document a problem with the "mtk" DSA tag. [skip ci]
As per Vladimir Oltean comments in GH #1451.
2025-11-26 19:42:38 +00: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 Spell Wireshark in a few places. 2025-11-18 13:40:43 +00:00
missing Include <config.h> unconditionally 2024-03-27 22:27:49 +00:00
pcap Allocate DLT_DEBUG_ONLY. 2025-11-26 18:17:17 +00:00
rpcapd Standardize some error messages (bogus->invalid) 2025-11-15 19:00:00 -08:00
testprogs Add inbound/outbound support for two DSA DLTs. 2025-11-22 20:35:53 +00:00
tests Enable various primitives for DLT_DSA_TAG_DSA. 2025-11-18 13:21:49 +00:00
.appveyor.yml AppVeyor: Stop building for ARM 64-bit with MSVC 2019 2025-11-20 10:36:19 +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 Cirrus CI: Add the "file" package in coverity_task 2025-09-07 14:41:07 +02: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: Set the MKDEP default value 2025-09-07 05:59:17 +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 Add the size of time_t to the version string. 2025-10-10 12:42:39 -07:00
build_common.sh CI: Add TinyCC (aka TCC) support 2024-05-16 18:29:09 +00:00
build_matrix.sh Remove the "disable IPv6" build option. 2025-04-24 21:03:58 +01: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 change backported to 1.10 2025-11-19 15:51:54 +01: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 Lose the unused checks for tpacket_auxdata.tp_vlan_tci. [skip ci] 2025-11-05 00:49:59 +00:00
CMakeLists.txt Lose the unused checks for tpacket_auxdata.tp_vlan_tci. [skip ci] 2025-11-05 00:49:59 +00: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 Lose the unused checks for tpacket_auxdata.tp_vlan_tci. [skip ci] 2025-11-05 00:49:59 +00:00
CONTRIBUTING.md Mention the filter tests in CONTRIBUTING.md. [skip ci] 2025-03-17 18:00:41 +00:00
CREDITS CREDITS: Update Robert Edmonds entry. [skip ci] 2024-10-02 18:13:14 +01: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 Don't assume the netmask has the same length as the interface address. 2025-09-07 09:20:26 -07: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 Add inbound/outbound support for two DSA DLTs. 2025-11-22 20:35:53 +00:00
gencode.h Reduce AND/OR on a Boolean constant early. 2025-11-05 09:45:07 +00:00
grammar.y.in Have gen_and(), gen_or() and gen_not() return the result. 2025-11-05 09:45:07 +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 INSTALL.md: Document the BUILD_YEAR2038 environment variable 2025-10-28 07:08:18 +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 Add the size of time_t to the version string. 2025-10-10 12:42:39 -07:00
mkdep mkdep: Exit with a non-zero status if a command fails 2024-04-09 05:41:42 +00:00
nametoaddr.c Remove all instances of the "register" specifier. 2025-10-05 11:34:42 +01:00
nametoaddr.h Fix, test and document ARCnet address parsing. 2025-01-30 19:45:58 +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 Remove the two remaining traces of bzero(3). 2025-11-01 13:35:46 +00:00
pcap-bpf.h Delete trailing spaces/tabs 2015-03-08 21:39:43 +01:00
pcap-bt-linux.c Remove remaining no-op strrchr() calls. 2024-10-26 16:19:17 +01: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 Remove remaining no-op strrchr() calls. 2024-10-26 16:19:17 +01: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 Allocate DLT_DEBUG_ONLY. 2025-11-26 18:17:17 +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 Add the size of time_t to the version string. 2025-10-10 12:42:39 -07: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 Add inbound/outbound support for two DSA DLTs. 2025-11-22 20:35:53 +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 Add the size of time_t to the version string. 2025-10-10 12:42:39 -07: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: Document a problem with the "mtk" DSA tag. [skip ci] 2025-11-26 19:42:38 +00:00
pcap-namedb.h remove libpcap's own CVS keywords 2014-01-03 16:05:37 +04:00
pcap-netfilter-linux.c Linux netfilter: Use MAX_GROUP instead of magic number 32 2025-10-23 07:46:55 +00: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 Remove the two remaining traces of bzero(3). 2025-11-01 13:35:46 +00:00
pcap-netmap.h Add netmap support. 2017-05-31 12:45:20 -07:00
pcap-npf.c Add the size of time_t to the version string. 2025-10-10 12:42:39 -07: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 rpcap: Use straight quote (') as in most other cases 2025-11-02 14:02:36 +01:00
pcap-rpcap.h More constification of arguments. 2018-12-25 00:46:46 -08:00
pcap-savefile.manfile.in pcap-savefile(5): Explain snapshot-based truncation. [skip ci] 2025-01-21 15:33:29 +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 Use sizeof() in usb_dev_add(). [skip appveyor] 2024-10-26 16:19:54 +01: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 Always use offsetof() via <stddef.h>. 2025-02-09 21:08:50 +00:00
pcap-util.h Refine the SWAPLL() macro. 2025-01-27 18:39:36 +00:00
pcap.3pcap.in Call WSAStartup/WSACleanup for each use. Fixes #1333 2024-09-21 15:26:21 -07:00
pcap.c Allocate DLT_DEBUG_ONLY. 2025-11-26 18:17:17 +00: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 man: Document devices, interfaces and "any" better. 2025-03-11 18:44:48 +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 Call WSAStartup/WSACleanup for each use. Fixes #1333 2024-09-21 15:26:21 -07: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 Finish the pruning of unsupported OSes. 2024-02-01 15:47:50 +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 Standardize "Ethernet" spelling in the error messages 2025-11-16 13:53:09 +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 Fix a typo in a comment 2024-05-29 13:58:24 +02: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 in-kernel filtering, libpcap utilizes in-kernel filtering only for the BPF interface. On systems that don't have BPF, all packets are read into user-space and the BPF filters are evaluated in the libpcap library, incurring 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 yet implemented.

BPF is standard in NetBSD, FreeBSD, OpenBSD, DragonFly BSD, macOS, 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.