pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/net/libpcap



Module Name:    pkgsrc
Committed By:   adam
Date:           Sun Sep  1 09:47:09 UTC 2024

Modified Files:
        pkgsrc/net/libpcap: Makefile distinfo
        pkgsrc/net/libpcap/patches: patch-Makefile.in patch-configure
            patch-fad-getad.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.70 -r1.71 pkgsrc/net/libpcap/Makefile
cvs rdiff -u -r1.41 -r1.42 pkgsrc/net/libpcap/distinfo
cvs rdiff -u -r1.4 -r1.5 pkgsrc/net/libpcap/patches/patch-Makefile.in
cvs rdiff -u -r1.8 -r1.9 pkgsrc/net/libpcap/patches/patch-configure
cvs rdiff -u -r1.1 -r1.2 pkgsrc/net/libpcap/patches/patch-fad-getad.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/libpcap/Makefile
diff -u pkgsrc/net/libpcap/Makefile:1.70 pkgsrc/net/libpcap/Makefile:1.71
--- pkgsrc/net/libpcap/Makefile:1.70    Sat Mar 16 19:41:01 2024
+++ pkgsrc/net/libpcap/Makefile Sun Sep  1 09:47:09 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.70 2024/03/16 19:41:01 nia Exp $
+# $NetBSD: Makefile,v 1.71 2024/09/01 09:47:09 adam Exp $
 
-DISTNAME=      libpcap-1.10.4
+DISTNAME=      libpcap-1.10.5
 CATEGORIES=    net
 MASTER_SITES=  https://www.tcpdump.org/release/
 

Index: pkgsrc/net/libpcap/distinfo
diff -u pkgsrc/net/libpcap/distinfo:1.41 pkgsrc/net/libpcap/distinfo:1.42
--- pkgsrc/net/libpcap/distinfo:1.41    Tue Apr 18 07:59:11 2023
+++ pkgsrc/net/libpcap/distinfo Sun Sep  1 09:47:09 2024
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.41 2023/04/18 07:59:11 adam Exp $
+$NetBSD: distinfo,v 1.42 2024/09/01 09:47:09 adam Exp $
 
-BLAKE2s (libpcap-1.10.4.tar.gz) = d94485a67ccebfb8bb43c60eef3d8dfef9fa0bcee224869b8312904c76a9f94f
-SHA512 (libpcap-1.10.4.tar.gz) = 1f6d6ddd07dae7c557054cb246437ecdaf39d579592a5a6bdf1144eea6cb5a779ac4ca647cfed11ec1b0bb18efc63b845444e497070bacefaaed19a5787ae5e1
-Size (libpcap-1.10.4.tar.gz) = 952153 bytes
-SHA1 (patch-Makefile.in) = 8b4374d5b6824fb6a6569ede19239f01fdc14051
-SHA1 (patch-configure) = a7ac49249f7086b46d0bd3b3b5d8901f9946e0c1
-SHA1 (patch-fad-getad.c) = f7a29d558e1f3c54a143d0977deffb2be3f494ef
+BLAKE2s (libpcap-1.10.5.tar.gz) = 238a01f12196e62d233a5016e832a5dcf00b7032f12a64a234b3b2f12fc95f28
+SHA512 (libpcap-1.10.5.tar.gz) = e599a31f2f1c03bdf386defa613ea9f08f80459c87068c2dd36c55c1bd678e2622cdce6333f0a776f16812df7bd4d6747820d1c35c7a2f1d7ad4a2ffb45dbe24
+Size (libpcap-1.10.5.tar.gz) = 974772 bytes
+SHA1 (patch-Makefile.in) = f7604ba12b15452aadfa21b5b8ed50f24c497567
+SHA1 (patch-configure) = 04e2918dda48d0c37df08a12ca25dcf9dc5302ee
+SHA1 (patch-fad-getad.c) = 5f2f137f4249d2d4be36efabc5e9456f943f86e2

Index: pkgsrc/net/libpcap/patches/patch-Makefile.in
diff -u pkgsrc/net/libpcap/patches/patch-Makefile.in:1.4 pkgsrc/net/libpcap/patches/patch-Makefile.in:1.5
--- pkgsrc/net/libpcap/patches/patch-Makefile.in:1.4    Mon Jan 16 08:17:30 2023
+++ pkgsrc/net/libpcap/patches/patch-Makefile.in        Sun Sep  1 09:47:09 2024
@@ -1,9 +1,9 @@
-$NetBSD: patch-Makefile.in,v 1.4 2023/01/16 08:17:30 adam Exp $
+$NetBSD: patch-Makefile.in,v 1.5 2024/09/01 09:47:09 adam Exp $
 
 Add libtoolization.
 Fix manpage installation.
 
---- Makefile.in.orig   2023-01-12 22:04:47.000000000 +0000
+--- Makefile.in.orig   2024-08-30 19:34:14.000000000 +0000
 +++ Makefile.in
 @@ -46,7 +46,7 @@ VPATH = @srcdir@
  #
@@ -14,7 +14,7 @@ Fix manpage installation.
  AR = @AR@
  LN_S = @LN_S@
  MKDEP = @MKDEP@
-@@ -83,7 +83,8 @@ BISON_BYACC = @BISON_BYACC@
+@@ -82,7 +82,8 @@ BISON_BYACC = @BISON_BYACC@
  # Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
  # Also, gcc does not remove the .o before forking 'as', which can be a
  # problem if you don't own the file but can write to the directory.
@@ -24,29 +24,29 @@ Fix manpage installation.
        @rm -f $@
        $(CC) $(FULL_CFLAGS) -c $(srcdir)/$*.c
  
-@@ -96,7 +97,7 @@ COMMON_C_SRC =       pcap.c gencode.c optimize
+@@ -94,7 +95,7 @@ COMMON_C_SRC =       pcap.c gencode.c optimize
                savefile.c sf-pcap.c sf-pcapng.c pcap-common.c \
-               pcap-usb-linux-common.c bpf_image.c bpf_filter.c bpf_dump.c
+               bpf_image.c bpf_filter.c bpf_dump.c
  GENERATED_C_SRC = scanner.c grammar.c
 -LIBOBJS = @LIBOBJS@
 +LIBOBJS = @LTLIBOBJS@
  
- SRC = $(PLATFORM_C_SRC) $(PLATFORM_CXX_SRC) \
+ SRC = $(PLATFORM_C_SRC) \
        $(MODULE_C_SRC) $(REMOTE_C_SRC) $(COMMON_C_SRC) \
-@@ -105,9 +106,9 @@ SRC =      $(PLATFORM_C_SRC) $(PLATFORM_CXX_S
+@@ -102,9 +103,9 @@ SRC =      $(PLATFORM_C_SRC) \
+ 
  # We would like to say "OBJ = $(SRC:.c=.o)" but Ultrix's make cannot
- # hack the extra indirection, and we have to handle PLATFORM_CXX_SRC
- # differently from the defines for C source
--OBJ = $(PLATFORM_C_SRC:.c=.o) $(PLATFORM_CXX_SRC:.cpp=.o) \
+ # hack the extra indirection
+-OBJ = $(PLATFORM_C_SRC:.c=.o) \
 -      $(MODULE_C_SRC:.c=.o) $(REMOTE_C_SRC:.c=.o) $(COMMON_C_SRC:.c=.o) \
 -      $(GENERATED_C_SRC:.c=.o) \
-+OBJ = $(PLATFORM_C_SRC:.c=.lo) $(PLATFORM_CXX_SRC:.cpp=.lo) \
++OBJ = $(PLATFORM_C_SRC:.c=.lo) \
 +      $(MODULE_C_SRC:.c=.lo) $(REMOTE_C_SRC:.c=.lo) $(COMMON_C_SRC:.c=.lo) \
 +      $(GENERATED_C_SRC:.c=.lo) \
        $(LIBOBJS)
  
  PUBHDR = \
-@@ -429,12 +430,10 @@ RELEASE_FILES = $(COMMON_C_SRC) $(HDR) $
+@@ -426,12 +427,10 @@ RELEASE_FILES = $(COMMON_C_SRC) $(HDR) $
        $(MAN3PCAP_NOEXPAND) $(MANFILE) $(MANMISC) $(EXTRA_DIST) \
        $(TEST_DIST)
  
@@ -62,7 +62,7 @@ Fix manpage installation.
  
  shared: libpcap.$(DYEXT)
  
-@@ -521,7 +520,7 @@ scanner.h: scanner.c
+@@ -518,7 +517,7 @@ scanner.h: scanner.c
                $(MAKE) $(MAKEFLAGS) scanner.c; \
        fi
  
@@ -71,7 +71,7 @@ Fix manpage installation.
        $(CC) $(FULL_CFLAGS) -c scanner.c
  
  #
-@@ -552,25 +551,25 @@ grammar.h: grammar.c
+@@ -549,25 +548,25 @@ grammar.h: grammar.c
                $(MAKE) $(MAKEFLAGS) grammar.c; \
        fi
  
@@ -104,7 +104,7 @@ Fix manpage installation.
        $(CC) $(FULL_CFLAGS) -o $@ -c $(srcdir)/missing/strtok_r.c
  
  #
-@@ -615,7 +614,7 @@ testprogs: FORCE
+@@ -612,7 +611,7 @@ testprogs: FORCE libpcap.a
  
  FORCE:
  
@@ -113,7 +113,7 @@ Fix manpage installation.
        [ -d $(DESTDIR)$(libdir) ] || \
            (mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir))
        [ -d $(DESTDIR)$(includedir) ] || \
-@@ -630,62 +629,60 @@ install: install-shared install-archive 
+@@ -627,62 +626,60 @@ install: install-shared install-archive
            (mkdir -p $(DESTDIR)$(mandir)/man@MAN_FILE_FORMATS@; chmod 755 $(DESTDIR)$(mandir)/man@MAN_FILE_FORMATS@)
        [ -d $(DESTDIR)$(mandir)/man@MAN_MISC_INFO@ ] || \
            (mkdir -p $(DESTDIR)$(mandir)/man@MAN_MISC_INFO@; chmod 755 $(DESTDIR)$(mandir)/man@MAN_MISC_INFO@)
@@ -216,22 +216,18 @@ Fix manpage installation.
        for i in $(MANFILE); do \
                $(INSTALL_DATA) `echo $$i | sed 's/.manfile.in/.manfile/'` \
                    $(DESTDIR)$(mandir)/man@MAN_FILE_FORMATS@/`echo $$i | sed 's/.manfile.in/.@MAN_FILE_FORMATS@/'`; done
-@@ -727,15 +724,15 @@ install-shared-shareda: libpcap.shareda
- install-shared-none:
- 
- install-archive: install-archive-$(DYEXT)
+@@ -728,11 +725,11 @@ install-archive: install-archive-$(DYEXT
+ # Most platforms have separate suffixes for shared and
+ # archive libraries, so we install both.
+ #
 -install-archive-so install-archive-dylib install-archive-sl install-archive-none: libpcap.a
 +install-archive-so install-archive-dylib install-archive-sl install-archive-none: libpcap.la
-       #
-       # Most platforms have separate suffixes for shared and
-       # archive libraries, so we install both.
-       #
        [ -d $(DESTDIR)$(libdir) ] || \
            (mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir))
 -      $(INSTALL_DATA) libpcap.a $(DESTDIR)$(libdir)/libpcap.a
 -      $(RANLIB) $(DESTDIR)$(libdir)/libpcap.a
 +      $(INSTALL_DATA) libpcap.la $(DESTDIR)$(libdir)/libpcap.la
 +      $(RANLIB) $(DESTDIR)$(libdir)/libpcap.la
- install-archive-shareda:
-       #
-       # AIX, however, doesn't, so we don't install the archive
+ #
+ # AIX, however, doesn't, so we don't install the archive
+ # library on AIX.

Index: pkgsrc/net/libpcap/patches/patch-configure
diff -u pkgsrc/net/libpcap/patches/patch-configure:1.8 pkgsrc/net/libpcap/patches/patch-configure:1.9
--- pkgsrc/net/libpcap/patches/patch-configure:1.8      Mon Jan 16 08:17:30 2023
+++ pkgsrc/net/libpcap/patches/patch-configure  Sun Sep  1 09:47:09 2024
@@ -1,11 +1,11 @@
-$NetBSD: patch-configure,v 1.8 2023/01/16 08:17:30 adam Exp $
+$NetBSD: patch-configure,v 1.9 2024/09/01 09:47:09 adam Exp $
 
 Ensure consistent manpage locations.
 Correctly detect Mac OS X Leopard.
 
---- configure.orig     2023-01-12 22:04:47.000000000 +0000
+--- configure.orig     2024-08-30 19:34:14.000000000 +0000
 +++ configure
-@@ -10034,10 +10034,6 @@ fi
+@@ -9721,10 +9721,6 @@ fi
  # and daemons in section 8).  Individual cases can override this.
  #
  DYEXT="none"
@@ -16,7 +16,7 @@ Correctly detect Mac OS X Leopard.
  case "$host_os" in
  
  aix*)
-@@ -10156,7 +10152,7 @@ fi
+@@ -9844,7 +9840,7 @@ fi
                        V_PROG_LDFLAGS_FAT="-arch ppc -arch ppc64 -arch i386 -arch x86_64"
                        ;;
  
@@ -25,7 +25,7 @@ Correctly detect Mac OS X Leopard.
                        #
                        # Leopard.  Build libraries for 32-bit PowerPC,
                        # 64-bit PowerPC, 32-bit x86, and x86-64, with
-@@ -10525,6 +10521,10 @@ esac
+@@ -10217,6 +10213,10 @@ esac
  
  
  
@@ -34,5 +34,5 @@ Correctly detect Mac OS X Leopard.
 +MAN_ADMIN_COMMANDS=8
 +
  # Check whether --enable-shared was given.
- if test "${enable_shared+set}" = set; then :
-   enableval=$enable_shared;
+ if test ${enable_shared+y}
+ then :

Index: pkgsrc/net/libpcap/patches/patch-fad-getad.c
diff -u pkgsrc/net/libpcap/patches/patch-fad-getad.c:1.1 pkgsrc/net/libpcap/patches/patch-fad-getad.c:1.2
--- pkgsrc/net/libpcap/patches/patch-fad-getad.c:1.1    Thu Jul  4 07:17:25 2019
+++ pkgsrc/net/libpcap/patches/patch-fad-getad.c        Sun Sep  1 09:47:09 2024
@@ -1,10 +1,10 @@
-$NetBSD: patch-fad-getad.c,v 1.1 2019/07/04 07:17:25 adam Exp $
+$NetBSD: patch-fad-getad.c,v 1.2 2024/09/01 09:47:09 adam Exp $
 
 Re-order includes to avoid bpf_program re-definition.
 
---- fad-getad.c.orig   2014-11-13 08:58:52.000000000 +0000
+--- fad-getad.c.orig   2024-08-30 19:34:14.000000000 +0000
 +++ fad-getad.c
-@@ -49,12 +49,6 @@
+@@ -46,12 +46,6 @@
  #include <string.h>
  #include <ifaddrs.h>
  
@@ -17,9 +17,9 @@ Re-order includes to avoid bpf_program r
  /*
   * We don't do this on Solaris 11 and later, as it appears there aren't
   * any AF_PACKET addresses on interfaces, so we don't need this, and
-@@ -78,6 +72,12 @@
+@@ -75,6 +69,12 @@
  # endif /* HAVE_NETPACKET_PACKET_H */
- #endif /* (defined(linux) || defined(__Lynx__)) && defined(AF_PACKET) */
+ #endif /* (defined(__linux__) || defined(__Lynx__)) && defined(AF_PACKET) */
  
 +#include "pcap-int.h"
 +



Home | Main Index | Thread Index | Old Index