./net/libpcap, System-independent interface for user-level packet capture

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]

Branch: CURRENT, Version: 1.9.1, Package name: libpcap-1.9.1, Maintainer: pkgsrc-users

This is 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.

Required to build:

Master sites:

SHA1: 04d6e619defad5bb17af15f6d2304e79b649786c
RMD160: 127fab6927919bea9c0ffc0d57efb67e52d07fbe
Filesize: 841.043 KB

Version history: (Expand)

CVS history: (Expand)

   2020-01-26 18:32:28 by Roland Illig | Files touched by this commit (981)
Log message:
all: migrate homepages from http to https

pkglint -r --network --only "migrate"

As a side-effect of migrating the homepages, pkglint also fixed a few
indentations in unrelated lines. These and the new homepages have been
checked manually.
   2019-11-03 12:45:59 by Roland Illig | Files touched by this commit (255)
Log message:
net: align variable assignments

pkglint -Wall -F --only aligned --only indent -r

No manual corrections.
   2019-10-14 22:10:20 by =?UTF-8?B?RnLDqWTDqXJpYyBGYXViZXJ0ZWF1?= | Files touched by this commit (6) | Package updated
Log message:
libpcap: update to 1.9.1

pkgsrc changes:
* add patch to disable bpf_aux_data on NetBSD (defined in

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
    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
    Boost the TPACKET_V3 timeout to the maximum if a timeout of 0 was
    Five CVE-2019-15161, CVE-2019-15162, CVE-2019-15163, CVE-2019-15164, \ 
    Fixes for CVE-2018-16301, errors in pcapng reading.
    PCAPNG reader applies some sanity checks before doing malloc().
   2019-07-04 09:17:25 by Adam Ciarcinski | Files touched by this commit (8) | Package updated
Log message:
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().
   2017-07-24 09:23:28 by Darrin B. Jewell | Files touched by this commit (1)
Log message:
fixes the case where header files aren't in /usr/include (Darwin SDKs)
   2017-04-19 13:50:18 by David Sainty | Files touched by this commit (2)
Log message:
Remove dependencies on VERSION, which trigger unintended implicit rules against
version.c on case-insensitive file systems.

Fixes build on Darwin in its out-of-the-box case-insensitive configuration.
   2017-02-02 19:46:39 by Maya Rashish | Files touched by this commit (4) | Package updated
Log message:
libpcap: update to 1.8.1

Tuesday, Oct. 25, 2016 mcr@sandelman.ca
  Summary for 1.8.1 libpcap release
    Add a target in Makefile.in for Exuberant Ctags use: 'extags'.
    Rename configure.in to configure.ac: autoconf 2.59
    Clean up the name-to-DLT mapping table.
    Add some newer DLT_ values: \ 
    Clarify what the return values are for both success and failure.
    Many changes to build on windows
    Check for the "break the loop" condition in the inner loop for \ 
    Fix handling of packet count in the TPACKET_V3 inner loop: GitHub issue #493.
    Filter out duplicate looped back CAN frames.
    Fix the handling of loopback filters for IPv6 packets.
    Add a link-layer header type for RDS (IEC 62106) groups.
    Use different intermediate folders for x86 and x64 builds on Windows.
    On Linux, handle all CAN captures with pcap-linux.c, in cooked mode.
    Removes the need for the "host-endian" link-layer header type.
    Compile with '-Wused-but-marked-unused' in devel mode if supported
    Have separate DLTs for big-endian and host-endian SocketCAN headers.
    Reflect version.h being renamed to pcap_version.h.
    Require that version.h be generated: all build procedures we support \ 
generate version.h (autoconf, CMake, MSVC)!
    Properly check for sock_recv() errors.
    Re-impose some of Winsock's limitations on sock_recv().
    Replace sprintf() with pcap_snprintf().
    Fix signature of pcap_stats_ex_remote().
    Initial cmake support for remote packet capture.
    Have rpcap_remoteact_getsock() return a SOCKET and supply an "is \ 
active" flag.
    Clean up {DAG, Septel, Myricom SNF}-only builds.
    Do UTF-16-to-ASCII conversion into the right place.
    pcap_create_interface() needs the interface name on Linux.
    Clean up hardware time stamp support: the "any" device does not \ 
support any time stamp types.
    Add support for capturing on FreeBSD usbusN interfaces.
    Add a LINKTYPE/DLT_ value for FreeBSD USB.
    Go back to using PCAP_API on Windows.
    CMake support
    Add TurboCap support from WinPcap.
    Recognize 802.1ad nested VLAN tag in vlan filter.

Thursday Sep. 3, 2015 guy@alum.mit.edu
  Summary for 1.7.5 libpcap release
	Man page cleanups.
	Add some allocation failure checks.
	Fix a number of Linux/ucLinux configure/build issues.
	Fix some memory leaks.
	Recognize 802.1ad nested VLAN tag in vlan filter.
	Fix building Bluetooth Linux Monitor support with BlueZ 5.1+
   2016-03-08 13:53:34 by Adam Ciarcinski | Files touched by this commit (2)
Log message:
Disable univeral builds on Darwin