head 1.9; access; symbols pkgsrc-2026Q1:1.9.0.14 pkgsrc-2026Q1-base:1.9 pkgsrc-2025Q4:1.9.0.12 pkgsrc-2025Q4-base:1.9 pkgsrc-2025Q3:1.9.0.10 pkgsrc-2025Q3-base:1.9 pkgsrc-2025Q2:1.9.0.8 pkgsrc-2025Q2-base:1.9 pkgsrc-2025Q1:1.9.0.6 pkgsrc-2025Q1-base:1.9 pkgsrc-2024Q4:1.9.0.4 pkgsrc-2024Q4-base:1.9 pkgsrc-2024Q3:1.9.0.2 pkgsrc-2024Q3-base:1.9 pkgsrc-2024Q2:1.8.0.12 pkgsrc-2024Q2-base:1.8 pkgsrc-2024Q1:1.8.0.10 pkgsrc-2024Q1-base:1.8 pkgsrc-2023Q4:1.8.0.8 pkgsrc-2023Q4-base:1.8 pkgsrc-2023Q3:1.8.0.6 pkgsrc-2023Q3-base:1.8 pkgsrc-2023Q2:1.8.0.4 pkgsrc-2023Q2-base:1.8 pkgsrc-2023Q1:1.8.0.2 pkgsrc-2023Q1-base:1.8 pkgsrc-2022Q4:1.7.0.26 pkgsrc-2022Q4-base:1.7 pkgsrc-2022Q3:1.7.0.24 pkgsrc-2022Q3-base:1.7 pkgsrc-2022Q2:1.7.0.22 pkgsrc-2022Q2-base:1.7 pkgsrc-2022Q1:1.7.0.20 pkgsrc-2022Q1-base:1.7 pkgsrc-2021Q4:1.7.0.18 pkgsrc-2021Q4-base:1.7 pkgsrc-2021Q3:1.7.0.16 pkgsrc-2021Q3-base:1.7 pkgsrc-2021Q2:1.7.0.14 pkgsrc-2021Q2-base:1.7 pkgsrc-2021Q1:1.7.0.12 pkgsrc-2021Q1-base:1.7 pkgsrc-2020Q4:1.7.0.10 pkgsrc-2020Q4-base:1.7 pkgsrc-2020Q3:1.7.0.8 pkgsrc-2020Q3-base:1.7 pkgsrc-2020Q2:1.7.0.6 pkgsrc-2020Q2-base:1.7 pkgsrc-2020Q1:1.7.0.2 pkgsrc-2020Q1-base:1.7 pkgsrc-2019Q4:1.7.0.4 pkgsrc-2019Q4-base:1.7 pkgsrc-2019Q3:1.6.0.2 pkgsrc-2019Q3-base:1.6 pkgsrc-2019Q2:1.5.0.30 pkgsrc-2019Q2-base:1.5 pkgsrc-2019Q1:1.5.0.28 pkgsrc-2019Q1-base:1.5 pkgsrc-2018Q4:1.5.0.26 pkgsrc-2018Q4-base:1.5 pkgsrc-2018Q3:1.5.0.24 pkgsrc-2018Q3-base:1.5 pkgsrc-2018Q2:1.5.0.22 pkgsrc-2018Q2-base:1.5 pkgsrc-2018Q1:1.5.0.20 pkgsrc-2018Q1-base:1.5 pkgsrc-2017Q4:1.5.0.18 pkgsrc-2017Q4-base:1.5 pkgsrc-2017Q3:1.5.0.16 pkgsrc-2017Q3-base:1.5 pkgsrc-2017Q2:1.5.0.12 pkgsrc-2017Q2-base:1.5 pkgsrc-2017Q1:1.5.0.10 pkgsrc-2017Q1-base:1.5 pkgsrc-2016Q4:1.5.0.8 pkgsrc-2016Q4-base:1.5 pkgsrc-2016Q3:1.5.0.6 pkgsrc-2016Q3-base:1.5 pkgsrc-2016Q2:1.5.0.4 pkgsrc-2016Q2-base:1.5 pkgsrc-2016Q1:1.5.0.2 pkgsrc-2016Q1-base:1.5 pkgsrc-2015Q4:1.4.0.8 pkgsrc-2015Q4-base:1.4 pkgsrc-2015Q3:1.4.0.6 pkgsrc-2015Q3-base:1.4 pkgsrc-2015Q2:1.4.0.4 pkgsrc-2015Q2-base:1.4 pkgsrc-2015Q1:1.4.0.2 pkgsrc-2015Q1-base:1.4 pkgsrc-2014Q4:1.3.0.14 pkgsrc-2014Q4-base:1.3 pkgsrc-2014Q3:1.3.0.12 pkgsrc-2014Q3-base:1.3 pkgsrc-2014Q2:1.3.0.10 pkgsrc-2014Q2-base:1.3 pkgsrc-2014Q1:1.3.0.8 pkgsrc-2014Q1-base:1.3 pkgsrc-2013Q4:1.3.0.6 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.3.0.4 pkgsrc-2013Q3-base:1.3 pkgsrc-2013Q2:1.3.0.2 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.1.0.2 pkgsrc-2013Q1-base:1.1; locks; strict; comment @# @; 1.9 date 2024.09.01.09.47.09; author adam; state Exp; branches; next 1.8; commitid Xz9iTDM44JpFq5oF; 1.8 date 2023.01.16.08.17.30; author adam; state Exp; branches; next 1.7; commitid rizeVN7gbqhK1K9E; 1.7 date 2019.10.14.20.10.19; author triaxx; state Exp; branches; next 1.6; commitid BvNRMvP4LGkIdSGB; 1.6 date 2019.07.04.07.17.25; author adam; state Exp; branches; next 1.5; commitid rNuTV9Ehv155eHtB; 1.5 date 2016.02.11.05.55.19; author jklos; state Exp; branches; next 1.4; commitid 52mpjvAMave9BsUy; 1.4 date 2015.03.11.21.05.09; author tnn; state Exp; branches; next 1.3; commitid ELlguct9N2C3tedy; 1.3 date 2013.06.21.13.35.06; author jperkin; state Exp; branches; next 1.2; commitid ZnrdZPHvlXZk9uUw; 1.2 date 2013.06.15.21.01.22; author adam; state Exp; branches; next 1.1; commitid mJd6ju72OBZmPKTw; 1.1 date 2013.02.06.18.07.04; author jperkin; state Exp; branches; next ; desc @@ 1.9 log @libpcap: updated to 1.10.5 Summary for 1.10.5 libpcap release Source code: Spell WirelessHART details properly. Mark pcap_vasprintf() as printf-like. Finalize moving of bpf_filter.c. Remove an unneeded argument from gen_mcode6(). Don't do some Berkeley YACC workarounds with YACC releases not requiring them. Use correct data types rather than int in some cases. Squelch compiler warning in grammar.c. Fix findalldevtest compilation if IPv6 isn't enabled. Rename helper routines for pcap modules to have names beginning with pcapint_, to avoid namespace collisions for code linking statically with libpcap. Avoid casting hack for the Windows cleanup-on-exit routine. Use %zu format for one case of printing a size_t. Fix some Coverity errors. Fix availabilities of some functions to match reality. pcap: make the seconds and microseconds/nanoseconds fields unsigned. Remove the unused pcap-rpcap-int.h header file. Thread safety: Make some static variables thread-local. Packet filtering: Improve reporting of some invalid filter expressions. Return an error from pcap_compile() if the scanner fails to initialize. Optimizer fix from Archit Shah to recompute dominators after moving code. Optimizer fix from Archit Shah to mark value as unknown when store of that value is deleted. Linux: Properly return warnings. Don't use DLT_LINUX_SLL2 for anything other than the "any" device. Avoid 32-bit unsigned integer overflow in USB captures. Fix a file descriptor leak. Properly report warnings about unknown ARPHRD_ types. Fix DLT_CAN_SOCKETCAN handling of CAN FD. Add CAN XL support to DLT_CAN_SOCKETCAN. Clean up the code that sets the "real" ("original") length for isochronous USB transfers. Avoid unnecessary blocking on recvmsg() in the Bluetooth monitor and Bluetoth modules. Solaris: Handle BPF returning ESRCH for unknown devices. List the "any" device if it's supported. Report {non-existent zone}/{interface} errors appropriately. Allow attaching to links owned by a non-global zone. Fix AF_LINK handling on illumos. macOS: Redid the availability macros to be closer to what Apple's doing in recent SDKs, including tagging pcap-namedb.h routines. Fix the install name of the installed shared library to have a full path when building with CMake. Fix universal builds. Haiku: Convert the module to C. Address a few compiler warnings. Fix various build problems. Report non-existent devices correctly. Fix handling of packet statistics. Fix packet timestamping. Fix packet filtering with low snaplen. Improve connection status reporting. Add support for promiscuous mode. Detect DLTs and loopback capture support at run time. Report IEEE 802.11 as PCAP_IF_WIRELESS. Windows: Fix internal handling of "not supported" error codes from NPF. Work around a bug in Npcap 1.00 in case of driver version mismatch. Don't call WSACleanup() when handling a failed WSAStartup(). BSD, macOS, AIX, Solaris 11, Linux: Add a new error PCAP_ERROR_CAPTURE_NOTSUP, for use if a capture mechanism is not present, in the hopes that, for example, attempts to capture on Windows Services for Linux 1, in which the NT kernel attempts to simulate Linux system calls but does not support packet sockets, can get an error that better indicates the underlying problem. AirPcap: Format an error message if we run out of memory. nflog: Fix count of dropped packets. Make sure we don't overflow when rounding up the TLV length. rpcap: Handle routines removed in at least some OpenSSL libraries. CVE-2023-7256: Clean up sock_initaddress() and its callers to avoid double frees in some cases. Don't define SOCKET ourselves; instead, define PCAP_SOCKET as int on UN*Xes and as SOCKET on Windows. CVE-2024-8006: Fix pcap_findalldevs_ex() not to crash if passed a file:// URL with a path to a directory that cannot be opened. Savefiles: Handle DLT_/LINKTYPE_ mapping better, to handle some OpenBSD-specific link types better. Treat if_tsoffset as signed in pcapng files, as the spec says. Don't try to fix the "real" length for isochronous USB transfers if the number of USB descriptors is too large. Reject pcap files where one of the reserved fields in the "link-layer type plus other stuff" is non-zero. Building and testing: Add a configure option to help debugging (--enable-instrument-functions). Improved tests and error reporting for uses of pkg-config, and improve help message. Fix Haiku build. With CMake, install headers in CMAKE_INSTALL_INCLUDEDIR rather than just include. Build libpcap.a before building test programs. Print address family numerically, as well as symbolically, in findalldevstest. Fail with suggestions, rather than failing over to no capture support, if no capture mechanism was found. Don't indent comments in Make, as that may cause them not to be recognized as comments. Don't check for libssl if we aren't going to use it. Better handle enabling and disabling of sanitizers. CMakeLists.txt: Print "Symlinking: /some/path to ..." conditionally. Evaluate CMAKE_INSTALL_PREFIX at install time. cmake: Update the minimum required version to 2.8.12 (except Windows). cmake: suppress CMP0042 OLD deprecated warning. Makefile.in: Add the releasecheck target. Cirrus CI: Add the "make releasecheck" command in the Linux task. Makefile.in: Add the whitespacecheck target. Cirrus CI: Run the "make whitespacecheck" command in the Linux task. Autoconf: Update config.{guess,sub}, timestamps 2024-01-01. Autoconf: Update the install-sh script to the 2020-11-14.01 version. Compile with '-Wnull-pointer-subtraction', '-Wunused-but-set-parameter', and '-Wunused-but-set-variable' in devel mode if supported. Don't ignore spaces between CMAKE_C_FLAGS and DPDK_C_FLAGS with CMake. Use noreturn and __format__ with XL C 7.0 and later. Check for the same -W flags in autotools and CMake. Autoconf: Add autogen.sh, remove configure and config.h.in and put these generated files in the release tarball. Autoconf: Get the size of a time_t. Fix propagation of cc_werr_cflags() output. Makefile.in(s): Fix the depend target. mkdep: Exit with a non-zero status if a command fails. Fix HCI_CHANNEL_MONITOR detection with musl libc. Extend "make shellcheck" onto mkdep too. Add initial support for building with TinyCC. Address all known compiler warnings specific to illumos, Linux, NetBSD, Solaris and Sun C; in CI expect warnings specific to TinyCC only. Documentation: Update and fix pcap-filter man page. Add a README.haiku.md file. Document pcap-config better. Man page formatting and prose fixes. Rename doc/README.Win32.md to doc/README.windows.md. Update pcap-savefile man page to match the Internet-Draft for pcap. Fix CMake issues for target used by other projects. Explain "any" device better in pcap_open_live(3PCAP). Update INSTALL.md. Note in man pages that errbuf arguments must point to an error buffer. Note that if pcap_findalldevs() fails it sets *alldevsp to NULL; there's no devices list to free. Explain "other addresses" in pcap_findalldevs(3PCAP). Document pcap_lookupnet(3PCAP) a bit better. @ text @$NetBSD: patch-configure,v 1.8 2023/01/16 08:17:30 adam Exp $ Ensure consistent manpage locations. Correctly detect Mac OS X Leopard. --- configure.orig 2024-08-30 19:34:14.000000000 +0000 +++ configure @@@@ -9721,10 +9721,6 @@@@ fi # and daemons in section 8). Individual cases can override this. # DYEXT="none" -MAN_DEVICES=4 -MAN_FILE_FORMATS=5 -MAN_MISC_INFO=7 -MAN_ADMIN_COMMANDS=8 case "$host_os" in aix*) @@@@ -9844,7 +9840,7 @@@@ fi V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64" ;; - darwin9.*) + darwin9*) # # Leopard. Build libraries for 32-bit PowerPC, # 64-bit PowerPC, 32-bit x86, and x86-64, with @@@@ -10217,6 +10213,10 @@@@ esac +MAN_FILE_FORMATS=5 +MAN_MISC_INFO=7 +MAN_ADMIN_COMMANDS=8 + # Check whether --enable-shared was given. if test ${enable_shared+y} then : @ 1.8 log @libpcap: updated to 1.10.3 Thursday, January 12, 2023 / The Tcpdump Group Summary for 1.10.3 libpcap release Source code: Sort the PUBHDR variable in Makefile.in in "ls" order. Fix typo in comment in pflog.h. Remove two no-longer-present files from .gitignore. Update code and comments for handling failure to set promiscuous mode based on new information. Building and testing: install: Fixed not to install the non-public pcap-util.h header. pcap-config: add a --version flag. Makefile.in: Add some missing files in the distclean target. Saturday, December 31, 2022 / The Tcpdump Group Summary for 1.10.2 libpcap release Source code: Use __builtin_unreachable() in PCAP_UNREACHABLE. Use AS_HELP_STRING macro instead of AC_HELP_STRING in the configure scripts, to avoid deprecation warnings. Change availability tags in pcap.h to make it easier to arrange for it to be used in Darwin releases. Use AS_HELP_STRING for --enable-remote. Fix some formatting string issues found by cppcheck. Various small code and comment cleanups. Use PCAP_ERROR (defined as -1) rather than explicit -1 for functions the documentation says return PCAP_ERROR. Remove unused code from the filter compiler. Use _declspec(deprecated(msg)) rather than __pragma(deprecated) for Windows deprecation warnings, so the message that was specified shows up. diag-control.h: define PCAP_DO_PRAGMA() iff we're going to use it. Use "%d" to print some signed ints. Use the Wayback Machine for a removed document in a comment. Add some const qualifiers. RDMA: Use PRIu64 to print a uint64_t. "Dead" pcap_ts from pcap_open_dead() and ..._with_tstamp_precision(): Don't crash if pcap_breakloop() is called. Savefiles: Fix pcap_dispatch() to return number of packets processed, rather than 0, even at EOF. If we get an error writing the packet header, don't write the packet data. Put PFLOG UID and PID values in the header into host byte order when reading a LINKTYPE_PFLOG file. Put CAN ID field in CAN pseudo-headers for LINUX_SLL2, as we do for LINUX_SLL. Fix inorrectly-computed "real" length for isochronous USB transfers when reading savefiles. Don't crash if pcap_can_set_rfmon() is called. Fix pcap_offline_read() loop. Capture: Never process more than INT_MAX packets in a pcap_dispatch() call, to avoid integer overflow. Improve error messages for "no such device" and "permission denied" errors. SITA: Fix a typo in a variable name. Packet filtering: Get PFLOG header length from the length value in the header. Support all the direction, reason, and action types supported by all systems that support PFLOG. Don't require PFLOG support on the target machine in order to support PFLOG filtering. Expand abbreviations into "proto X" properly. gencode.c: Update a comment about the VLAN TPID test. Add the minimum and maximum matching DLTs to an error message. Linux: Fix memory leak in capture device open. Fix detection of CAN/CAN FD packets in direction check. Fix double-free crashes on errors such as running on a kernel with CONFIG_PACKET_MMAP not configured. Use DLT_CAN_SOCKETCAN for CANbus interfaces. Make sure the CANFD_FDF can be relied on to indicate whether a CANbus packet is a CAN frame or a CAN FD frame Improve error message for "out of memory" errors for kernel filters. Fix pcap_findalldevs() to find usbmon devices. Fix handling of VLAN tagged packets if the link-layer type is changed from DLT_LINUX_SLL to DLT_LINUX_SLL2. Always turn on PACKET_AUXDATA. We require 2.6.27 or later, so PACKET_RESERVE is available. Make sure there's reserved space for a DLT_LINUX_SLL2 header when capturing. Correctly compute the "real" length for isochronous USB transfers. Don't have an eventfd descriptor open in non-blocking mode, so as not to waste descriptors. netfilter: Squelch a narrowing warning (To be look at before 2038). BPF capture (*BSD, macOS, AIX, Solaris 11): Fix case where a device open might fail, rather than falling back to a smaller buffer size, when the initial buffer size is too big. Use an unsigned device number to iterate over BPF devices, to squelch a compiler warning. NetBSD: Fix handling of LINKTYPE_HDLC/DLT_HDLC. rpcap: Fix unaligned accesses in rpcapd. Fix code to process port number. Clean up findalldevs code in rpcapd. Clean up bufferizing code. Fix a file descriptor/handle leak in pcap_findalldevs_ex() (Coverity CID 1507240). Improve error messages for host and port resolution errors. Fix connect code not to fail if both IPv4 and IPv6 addresses are tried. Improve connect failure error message. Provide an error message for a bad authentication reply size. For link-layer types with host-endian fields in the header, fix those fields if capturing from a server with a different byte order. Suppress temporarily the warnings with "enable remote packet capture". Windows: Add support for NdisMediumIP. Don't require applications using pcap to be built with VS 2015 or later. Use the correct string for the DLL VersionInfo. Remove unnecessary DllMain() function. Correctly handle ERROR_INVALID_FUNCTION from PacketGetTimestampModes() (indicate that WinPcap or an older version of Npcap is probably installed). Fix use-after-free in some cases when a pcap_t is closed. Make sure an error is returned by pcap_create_interface() if PacketOpenAdapter() fails. Return an error if the driver reports 0 timestamp modes supported. Close the ADAPTER handle for some errors in pcap_create_interface(). Get rid of old umaintained VS project files. Fix deprecation warning for pcap_handle(). Npcap is now at npcap.com, not npcap.org. Make sure "no such device" and "no permission to open device" errors show up in pcap_activate(), not pcap_create() (fixes, among other things, tcpdump -i ). npcap: squelch deprecation warnings for kernel dump mode. Haiku: Implement pcap_lib_version(), as now required. Handle negative or too-large snaplen values. Fix various build issues and warnings. Building and testing: Update configure-time universal build checks for macOS. Update config.guess and config.sub. If we look for an SSL library with pkg-config in configure script, try pkg-config first. If we have pkg-config and Homebrew, try to set pkg-config up to find Homebrew packages. Handle some Autoconf/make errors better. Use "git archive" for the "make releasetar" process. Remove the release candidate rcX targets. Fix compiling on Solaris 9/SPARC and 11/AMD64. Address assorted compiler warnings. Fix cross-building on Linux for Windows with mingw32 for Win64 Properly set installation directory on Windows when not compiling with MSVC. Fix configure script checks for compiler flags. Give more details if check for usable (F)Lex fails. Fix compiling with GCC 4.6.4. Don't use add_compile_options() with CMake, as we currently don't require 2.8.12, where it first appeared. Don't provide -L/usr/lib for pkg-config --libs in pkg-config. Fix error message for inadequate Bison/Berkeley YACC. configure: correctly do some DPDK checks. Only use pkg-config when checking for DPDK. Allow the path in which DPDK is installed to be specified. Use pkg-config first when checking for libibverbs. CMake: fix check for libibverbs with Sun's C compiler. Have CMake warn if no capture mechanism can be found. Don't do stuff requiring 3.19 or later on earlier CMakes. Squelch some CMake warnings. Fix diag-control.h to handle compiling with clang-cl. Cleanup various leftover cruft in the configure script. Fix building without protochain support. Check for a usable YACC (or Bison) and {F}lex in CMake, as we do in autotools. Only check for a C++ compiler on Haiku, as that's the only platform with C++ code, and make sure they generate code for the same instruction set bit-width (both 32-bit or both 64-bit) On Solaris, check the target bit-width and set PKG_CONFIG_PATH appropriately, to handle the mess that is the D-Bus library package. Fix generation of pcap-config and libpcap.pc files. pcap-config: don't assume the system library directory is /usr/lib. pcap-config: add a --static-pcap-only flag. Cirrus CI: Use the same configuration as for the main branch. Add four libpcap test files. Update Npcap SDK to 1.13. Makefile.in: Use TEST_DIST, like for tcpdump. Remove awk code from mkdep. Cirrus CI: Add the libssl-dev package in the Linux task. Cirrus CI: Add the openssl@@3 brew package in the macOS task. Get "make shellcheck" to pass again. CMake: Build valgrindtest only if Autoconf would. CMake: use ${CMAKE_INSTALL_SBINDIR} rather than just sbin. CMake: use NUL: as the null device on Windows. autoconf: fix typo in test of macOS version. Makefile.in: Add two missing files in EXTRA_DIST. autotools, cmake: provide an rpath option if necessary. configure: get rid of the attempt to auto-run PKG_PROG_PKG_CONFIG. configure: use PKG_CHECK_MODULES to run pkg-config. Documentation: Add README.solaris.md. Add SCTP to pcap-filter(7). Note that = and == are the same operator in filters. Update INSTALL.md, README.md, and README.solaris.md. Update and clean up CONTRIBUTING.md. Trim documentation of support for now-dead UN*Xe and older versions of other UN*Xes. Move the "how to allocate a LINKTYPE_/DLT_ value" documentation to the web site. Clean up man pages. Move README.capture-module to the web site. Improve some protocol details in pcap-filter(7). Refine "relop" notes in pcap-filter(7). In pcap-filter(7) "domain" is an id. Discuss backward compatibility in pcap-filter(7). Other improvements to pcap-filter(7). Document pcap_breakloop(3PCAP) interaction with threads better. Document PCAP_ERROR_NOT_ACTIVATED for more routines. @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.7 2019/10/14 20:10:19 triaxx Exp $ d6 1 a6 1 --- configure.orig 2023-01-12 22:04:47.000000000 +0000 d8 1 a8 1 @@@@ -10034,10 +10034,6 @@@@ fi d19 1 a19 1 @@@@ -10156,7 +10152,7 @@@@ fi d28 1 a28 1 @@@@ -10525,6 +10521,10 @@@@ esac d37 2 a38 2 if test "${enable_shared+set}" = set; then : enableval=$enable_shared; @ 1.7 log @libpcap: update to 1.9.1 pkgsrc changes: --------------- * add patch to disable bpf_aux_data on NetBSD (defined in /usr/include/net/bpf.h). upstream changes: ----------------- Summary for 1.9.1 libpcap release Mention pcap_get_required_select_timeout() in the main pcap man page Fix pcap-usb-linux.c build on systems with musl Fix assorted man page and other documentation issues Plug assorted memory leaks Documentation changes to use https: Changes to how time stamp calculations are done Lots of tweaks to make newer compilers happier and warning-free and to fix instances of C undefined behavior Warn if AC_PROG_CC_C99 can't enable C99 support Rename pcap_set_protocol() to pcap_set_protocol_linux(). Align pcap_t private data on an 8-byte boundary. Fix various error messages Use 64-bit clean API in dag_findalldevs() Fix cleaning up after some errors Work around some ethtool ioctl bugs in newer Linux kernels (GitHub issue #689) Add backwards compatibility sections to some man pages (GitHub issue #745) Fix autotool configuration on AIX and macOS Don't export bpf_filter_with_aux_data() or struct bpf_aux_data; they're internal-only and subject to change Fix pcapng block size checking On macOS, don't build rpcapd or test programs any fatter than they need to be Fix reading of capture statistics for Linux USB Fix packet size values for Linux USB packets (GitHub issue #808) Check only VID in VLAN test in filterss (GitHub issue #461) Fix pcap_list_datalinks on 802.11 devices on macOS Fix overflows with very large snapshot length in pcap file Improve parsing of rpcapd configuration file (GitHub issue #767) Handle systems without strlcpy() or strlcat() better Fix crashes and other errors with invalid filter expressions Fix use of uninitialized file descriptor in remote capture Fix some CMake issues Fix some divide-by-zero issues with the filter compiler Work around a GNU libc bug in pcap_nametonetaddr() Add support for DLT_LINUX_SLL2 Fix handling of the packet-count argument for Myricom SNF devices Fix --disable-rdma in configure script (GitHub issue #782) Fix compilation of TurboCap support (GitHub issue #764) Constify first argument to pcap_findalldevs_ex() Fix a number of issues when running rpcapd as an inetd-style daemon Fix CMake issues with D-Bus libraries In rpcapd, clean up termination of a capture session Redo remote capture protocol negotiation In rpcapd, report the same error for "invalid user name" and "invalid password", to make brute-forcing harder For remote captures, add an error code for "the server requires TLS" Fix pcap_dump_fopen() on Windows to avoid clashes between {Win,N}Pcap and application C runtimes Fix exporting of functions from Windows DLLs (GitHub issue #810) Fix building as part of Npcap Allow rpcapd to rebind more rapidly Fix building shared libpcap library on midipix (midipix.org) Fix hack to detect UTF-16LE adapter names on Windows not to go past the end of the string Fix handling of "wireless WAN" (mobile phone network modems) on Windows with WinPcap/Npcap (GitHub issue #824) Have pcap_dump_open_append() create the dump file if it doesn't exists (GitHub issue #247) Fix the maxmum snapshot length for DLT_USBPCAP Use -fPIC when building for 64-bit SPARC on Linux (GitHub issue #837) Fix CMake 64-bit library installation directory on some Linux distributions Boost the TPACKET_V3 timeout to the maximum if a timeout of 0 was specified Five CVE-2019-15161, CVE-2019-15162, CVE-2019-15163, CVE-2019-15164, CVE-2019-15165 Fixes for CVE-2018-16301, errors in pcapng reading. PCAPNG reader applies some sanity checks before doing malloc(). @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.6 2019/07/04 07:17:25 adam Exp $ d6 1 a6 1 --- configure.orig 2019-09-30 16:08:23.000000000 +0000 d8 1 a8 1 @@@@ -8178,10 +8178,6 @@@@ fi d19 1 a19 1 @@@@ -8300,7 +8296,7 @@@@ fi d28 3 a30 3 @@@@ -8567,6 +8563,10 @@@@ $as_echo "#define HAVE_SOLARIS 1" >>conf ;; esac @ 1.6 log @libpcap: updated to 1.9.0 Summary for 1.9.0 libpcap release Added testing system to libpcap, independent of tcpdump Changes to how pcap_t is activated Adding support for Large stream buffers on Endace DAG cards Changes to BSD 3-clause license to 2-clause licence Additions to TCP header parsing, per RFC3168 Add CMake build process (extensive number of changes) Assign a value for OpenBSD DLT_OPENFLOW. Support setting non-blocking mode before activating. Extensive build support for Windows VS2010 and MINGW (many many changes, over many months) Added RPCAPD support when --enable-remote (default no) Add the rpcap daemon source and build instructions. Put back the greasy "save the capture filter string so we can tweak it" hack, that keeps libpcap from capturing rpcap traffic. Fixes for captures on MacOS, utun0 fixes so that non-AF_INET addresses, are not ==AF_INET6 addresses. Add a linktype for IBM SDLC frames containing SNA PDUs. pcap_compile() in 1.8.0 and later is newly thread-safe. bound snaplen for linux tpacket_v2 to ~64k Make VLAN filter handle both metadata and inline tags D-Bus captures can now be up to 128MB in size Added LORATAP DLT value Added DLT_VSOCK for http://qemu-project.org/Features/VirtioVsock probe_devices() fixes not to overrun buffer for name of device Add linux-specific pcap_set_protocol_linux() to allow specifying a specific capture protocol. RDMA sniffing support for pcap Add Nordic Semiconductor Bluetooth LE sniffer link-layer header type. fixes for reading /etc/ethers Make it possible to build on Windows without packet.dll. Add tests for large file support on UN*X. Solaris fixes to work with 2.8.6 configuration test now looks for header files, not capture devices present Fix to work with Berkeley YACC. fixes for DragonBSD compilation of pcap-netmap.c Clean up the ether_hostton() stuff. Add an option to disable Linux memory-mapped capture support. Add DAG API support checks. Add Septel, Myricom SNF, and Riverbed TurboCap checks. Add checks for Linux USB, Linux Bluetooth, D-Bus, and RDMA sniffing support. Add a check for hardware time stamping on Linux. Don't bother supporting pre-2005 Visual Studio. Increased minimum autoconf version requirement to 2.64 Add DLT value 273 for XRA-31 sniffer Clean up handing of signal interrupts in pcap_read_nocb_remote(). Use the XPG 4.2 versions of the networking APIs in Solaris. Fix, and better explain, the "IPv6 means IPv6, not IPv4" option setting. Explicitly warn that negative packet buffer timeouts should not be used. rpcapd: Add support inetd-likes, including xinetd.conf, and systemd units Rename DLT_IEEE802_15_4 to DLT_IEEE802_15_4_WITHFCS. Add DISPLAYPORT AUX link type Remove the sunos4 kernel modules and all references to them. Add more interface flags to pcap_findalldevs(). @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.5 2016/02/11 05:55:19 jklos Exp $ d6 1 a6 1 --- configure.orig 2018-06-24 17:54:20.000000000 +0000 d8 2 a9 2 @@@@ -7974,9 +7974,6 @@@@ fi # Individual cases can override this. d12 1 d19 2 a20 2 @@@@ -8074,7 +8071,7 @@@@ fi LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64" d26 3 a28 3 # Leopard. Build for 32-bit PowerPC, 64-bit # PowerPC, x86, and x86-64, with 32-bit PowerPC @@@@ -8271,6 +8268,10 @@@@ $as_echo "#define HAVE_SOLARIS 1" >>conf @ 1.5 log @Fix configure to match properly for darwin9 so that PowerPC code is generated properly on Leopard systems. @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.4 2015/03/11 21:05:09 tnn Exp $ d3 2 a4 1 Ensure consistent manual page locations. d6 1 a6 1 --- configure.orig 2015-04-22 20:19:15.000000000 +0000 d8 1 a8 1 @@@@ -6879,8 +6879,6 @@@@ fi d14 1 d18 1 a18 1 @@@@ -6978,7 +6976,7 @@@@ fi d27 3 a29 3 @@@@ -7155,6 +7153,9 @@@@ fi test "x$enable_shared" = "xno" && DYEXT="none" d33 1 d35 3 a37 12 if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 @@@@ -8147,7 +8148,7 @@@@ else fi - if test "x$ac_lbl_bluetooth_available" == "xno" ; then + if test "x$ac_lbl_bluetooth_available" = "xno" ; then if test "x$enable_bluetooth" = "xyes" ; then as_fn_error $? "Bluetooth sniffing is not supported; install bluez-lib devel to enable it" "$LINENO" 5 else @ 1.4 log @Thursday Feb. 12, 2015 guy@@alum.mit.edu/mcr@@sandelman.ca Summary for 1.7.2 libpcap release Support for filtering Geneve encapsulated packets. Wednesday Nov. 12, 2014 guy@@alum.mit.edu/mcr@@sandelman.ca Summary for 1.7.0 libpcap release Fix handling of zones for BPF on Solaris new DLT for ZWAVE clarifications for read timeouts. added bpf_filter1() with extensions some fixes to compilation without stdint.h EBUSY can now be returned by SNFv3 code. Monday Aug. 12, 2014 guy@@alum.mit.edu Summary for 1.6.2 libpcap release Don't crash on filters testing a non-existent link-layer type field. Fix sending in non-blocking mode on Linux with memory-mapped capture. Fix timestamps when reading pcap-ng files on big-endian machines. Saturday Jul. 19, 2014 mcr@@sandelman.ca Summary for 1.6.1 libpcap release some fixes for the any device changes for how --enable-XXX (--enable-sniffing, --enable-can) works Wednesday Jul. 2, 2014 mcr@@sandelman.ca Summary for 1.6.0 libpcap release Don't support D-Bus sniffing on OS X fixes for byte order issues with NFLOG captures Handle using cooked mode for DLT_NETLINK in activate_new(). on platforms where you can not capture on down interfaces, do not list them but: do list interfaces which are down, if you can capture on them! Wednesday December 18, 2013 guy@@alum.mit.edu Summary for 1.5.3 libpcap release Don't let packets that don't match the current filter get to the application when TPACKET_V3 is used. (GitHub issue #331) Fix handling of pcap_loop()/pcap_dispatch() with a packet count of 0 on some platforms (including Linux with TPACKET_V3). (GitHub issue #333) Work around TPACKET_V3 deficiency that causes packets to be lost when a timeout of 0 is specified. (GitHub issue #335) Man page formatting fixes. Wednesday December 4, 2013 guy@@alum.mit.edu Summary for 1.5.2 libpcap release Fix libpcap to work when compiled with TPACKET_V3 support and running on a kernel without TPACKET_V3 support. (GitHub issue #329) Wednesday November 20, 2013 guy@@alum.mit.edu Summary for 1.5.1 libpcap release Report an error, rather than crashing, if an IPv6 address is used for link-layer filtering. (Wireshark bug 9376) Wednesday October 30, 2013 guy@@alum.mit.edu Summary for 1.5.0 libpcap release TPACKET_V3 support added for Linux Point users to the the-tcpdump-group repository on GitHub rather than the mcr repository Checks added for malloc()/realloc()/etc. failures Fixed build on Solaris 11 Support filtering filtering E1 SS7 traffic on MTP2 layer Annex A Use "ln -s" to link man pages by default Add support for getting nanosecond-resolution time stamps when capturing and reading capture files Many changes to autoconf to deal better with non-GCC compilers added many new DLT types @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- configure.orig 2015-03-09 19:22:07.000000000 +0000 d7 1 a7 1 @@@@ -6857,8 +6857,6 @@@@ fi d16 10 a25 1 @@@@ -7133,6 +7131,9 @@@@ fi d35 1 a35 1 @@@@ -8125,7 +8126,7 @@@@ else @ 1.3 log @PR#47943: recent update to libpcap breaks tcpdump, nmap and wireshark on Solaris Remove bogus removal of dlpisubs.c, and force the configure script to avoid any getifaddrs implementation on SunOS which would result in it not being included. Fixes build on SunOS. Thanks to Jörn Clausen for testing on Solaris 10. Bump PKGREVISION. Approved during freeze by wiz. @ text @d1 1 a1 1 $NetBSD: patch-configure,v 1.2 2013/06/15 21:01:22 adam Exp $ d5 1 a5 1 --- configure.orig 2013-03-25 14:51:40.000000000 +0000 d7 1 a7 1 @@@@ -9986,8 +9985,6 @@@@ fi d16 1 a16 1 @@@@ -10255,6 +10252,9 @@@@ fi d26 9 @ 1.2 log @Summary for 1.4.0 libpcap release Add netfilter/nfqueue interface. If we don't have support for IPv6 address resolution, support, in filter expressions, what IPv6 stuff we can. Checks added for malloc()/realloc()/etc. failures. Fix pcap-config to include -lpthread if canusb support is present Try to fix "pcap_parse not defined" problems when --without-flex and --without-bison are used when you have Flex and Bison Fix some issues with the pcap_loop man page. Fix pcap_getnonblock() and pcap_setnonblock() to fill in the supplied error message buffer Fix typo that, it appeared, would cause pcap-libdlpi.c not to compile (perhaps systems with libdlpi also have BPF and use that instead) Catch attempts to call pcap_compile() on a non-activated pcap_t Fix crash on Linux with CAN-USB support without usbfs Fix addition of VLAN tags for Linux cooked captures Check for both EOPNOTSUPP and EINVAL after SIOCETHTOOL ioctl, so that the driver can report either one if it doesn't support SIOCETHTOOL Add DLT_INFINIBAND and DLT_SCTP Describe "proto XXX" and "protochain XXX" in the pcap-filter man page Handle either directories, or symlinks to directories, that correspond to interfaces in /sys/class/net Fix handling of VLAN tag insertion to check, on Linux 3.x kernels, for VLAN tag valid flag Clean up some man pages Support libnl3 as well as libnl1 and libnl2 on Linux @ text @d1 3 a3 1 $NetBSD$ a6 8 @@@@ -8835,7 +8835,6 @@@@ echo "${ECHO_T}$ac_cv_lbl_have_siocglifc # # Needed for common functions used by pcap-[dlpi,libdlpi].c # - SSRC="dlpisubs.c" ;; *) @ 1.1 log @Update libpcap to 1.3.0. Main pkgsrc change is support for Solaris 11/illumos. Summary for 1.3.0 libpcap release Handle DLT_PFSYNC in {FreeBSD, other *BSD+Mac OS X, other}. Linux: Don't fail if netfilter isn't enabled in the kernel. Add new link-layer type for NFC Forum LLCP. Put the CANUSB stuff into EXTRA_DIST, so it shows up in the release tarball. Add LINKTYPE_NG40/DLT_NG40. Add DLT_MPEG_2_TS/LINKTYPE_MPEG_2_TS for MPEG-2 transport streams. [PATCH] Fix AIX-3.5 crash with read failure during stress AIX fixes. Introduce --disable-shared configure option. Added initial support for canusb devices. Include the pcap(3PCAP) additions as 1.2.1 changes. many updates to documentation: pcap.3pcap.in Improve 'inbound'/'outbound' capture filters under Linux. Note the cleanup of handling of new DLT_/LINKTYPE_ values. On Lion, don't build for PPC. For mac80211 devices we need to clean up monitor mode on exit. Summary for 1.2.1 libpcap release Update README file. Fix typoes in README.linux file. Clean up some compiler warnings. Fix Linux compile problems and tests for ethtool.h. Treat Debian/kFreeBSD and GNU/Hurd as systems with GNU toolchains. Support 802.1 QinQ as a form of VLAN in filters. Treat "carp" as equivalent to "vrrp" in filters. Fix code generated for "ip6 protochain". Add some new link-layer header types. Support capturing NetFilter log messages on Linux. Clean up some error messages. Turn off monitor mode on exit for mac80211 interfaces on Linux. Fix problems turning monitor mode on for non-mac80211 interfaces on Linux. Properly fail if /sys/class/net or /proc/net/dev exist but can't be opened. Fail if pcap_activate() is called on an already-activated pcap_t, and add a test program for that. Fix filtering in pcap-ng files. Don't build for PowerPC on Mac OS X Lion. Simplify handling of new DLT_/LINKTYPE_ values. Expand pcap(3PCAP) man page. Summary for 1.2 libpcap release All of the changes listed below for 1.1.1 and 1.1.2. Changes to error handling for pcap_findalldevs(). Fix the calculation of the frame size in memory-mapped captures. Add a link-layer header type for STANAG 5066 D_PDUs. Add a link-layer type for a variant of 3GPP TS 27.010. Noted real nature of LINKTYPE_ARCNET. Add a link-layer type for DVB-CI. Fix configure-script discovery of VLAN acceleration support. see http://netoptimizer.blogspot.com/2010/09/tcpdump-vs-vlan-tags.html Linux, HP-UX, AIX, NetBSD and OpenBSD compilation/conflict fixes. Protect against including AIX 5.x's having been included. Add DLT_DBUS, for raw D-Bus messages. Treat either EPERM or EACCES as "no soup for you". Changes to permissions on DLPI systems. Add DLT_IEEE802_15_4_NOFCS for 802.15.4 interfaces. @ text @d3 1 a3 4 * Fix sys/bufmod.h and linking issues on Solaris. * Use standard manpage layout on all platforms. --- configure.orig 2012-03-29 12:57:32.000000000 +0000 d5 1 a5 42 @@@@ -5225,6 +5225,20 @@@@ dlpi) # Also, due to the bug above applications that link to libpcap with # libdlpi will have to add "-L/lib" option to "configure". # + for ac_header in sys/bufmod.h sys/dlpi_ext.h +do : + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + cat >>confdefs.h <<_ACEOF +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +fi + +done + SSRC="dlpisubs.c" + saved_ldflags=$LDFLAGS LDFLAGS="$LIBS -L/lib" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlpi_walk in -ldlpi" >&5 @@@@ -5763,19 +5777,6 @@@@ else case "$V_PCAP" in dlpi|libdlpi) - for ac_header in sys/bufmod.h sys/dlpi_ext.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - # # This might be Solaris 8 or later, with # SIOCGLIFCONF, or it might be some other OS @@@@ -5820,7 +5821,6 @@@@ $as_echo "$ac_cv_lbl_have_siocglifconf" d13 1 a13 1 @@@@ -6688,8 +6688,6 @@@@ fi d22 3 a24 3 @@@@ -6916,6 +6914,9 @@@@ $as_echo "#define HAVE_SOLARIS 1" >>conf ;; esac @