107 Commits

Author SHA256 Message Date
Ana Guerrero
7af190a092 Accepting request 1203533 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1203533
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=66
2024-09-26 16:52:29 +00:00
abbfc3ef1f - enable rdma support (bsc#1230894)
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=84
2024-09-25 11:08:08 +00:00
2b3660fae8 Accepting request 1198327 from Base:System
- Update to 1.10.5:
  * Security fixes:
    - [bsc#1230020, CVE-2023-7256] double free via addrinfo in sock_initaddress()
    - [bsc#1230034, CVE-2024-8006] null pointer derefence in pcap_findalldevs_ex()
  * Thread safety: Make some static variables thread-local
  * Packet filtering:
    - Return an error from pcap_compile() if the scanner fails to initialize.
    - Optimizer fix from Archit Shah to recompute dominators after moving
      code; (although the resulting filter isn't empty).
    - Optimizer fix from Archit Shah to mark value as unknown when store
      of that value is deleted.
  * Linux:
    - 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.
    - 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.
  * Haiku:
    - 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. (forwarded request 1198278 from pmonrealgonzalez)

OBS-URL: https://build.opensuse.org/request/show/1198327
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=65
2024-09-04 11:22:00 +00:00
f47b71d1e7 - Update to 1.10.5:
* Security fixes:
    - [bsc#1230020, CVE-2023-7256] double free via addrinfo in sock_initaddress()
    - [bsc#1230034, CVE-2024-8006] null pointer derefence in pcap_findalldevs_ex()
  * Thread safety: Make some static variables thread-local
  * Packet filtering:
    - Return an error from pcap_compile() if the scanner fails to initialize.
    - Optimizer fix from Archit Shah to recompute dominators after moving
      code; (although the resulting filter isn't empty).
    - Optimizer fix from Archit Shah to mark value as unknown when store
      of that value is deleted.
  * Linux:
    - 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.
    - 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.
  * Haiku:
    - 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.

OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=82
2024-09-02 14:57:41 +00:00
ac9447cf8b Accepting request 1154033 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1154033
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=64
2024-03-03 19:19:02 +00:00
a4a224f007 Accepting request 1153565 from home:pgajdos:l
- Use %patch -P N instead of deprecated %patchN.

OBS-URL: https://build.opensuse.org/request/show/1153565
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=80
2024-03-01 13:23:30 +00:00
f8e3fabd0c Accepting request 1078230 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1078230
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=63
2023-04-11 11:50:43 +00:00
a353d3d48f Accepting request 1077994 from home:AndreasStieger:branches:Base:System
libpcap 1.10.4

OBS-URL: https://build.opensuse.org/request/show/1077994
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=78
2023-04-10 07:44:18 +00:00
819dbb1de4 Accepting request 1059311 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1059311
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=62
2023-01-25 16:42:17 +00:00
a3fa52c2e2 Accepting request 1059303 from home:dirkmueller:Factory
- update to 1.10.3:
  * 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.

OBS-URL: https://build.opensuse.org/request/show/1059303
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=76
2023-01-18 09:49:35 +00:00
51e0b9c121 Accepting request 1045995 from home:AndreasStieger:branches:Base:System
libpcap 1.10.2

OBS-URL: https://build.opensuse.org/request/show/1045995
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=75
2023-01-02 09:01:20 +00:00
faaab524f4 Accepting request 899483 from Base:System
OBS-URL: https://build.opensuse.org/request/show/899483
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=61
2021-06-15 14:36:59 +00:00
86a859a5f2 Accepting request 899469 from home:polslinux:branches:Base:System
- Update to 1.10.1
  * Fix "type XXX subtype YYY" giving a parse error
  * Add PCAP_AVAILABLE_1_11.
  * Rename struct bpf_aux_data to avoid NetBSD compile errors
  * Fix cross-builds with older kernels lacking BPF_MOD and BPF_XOR
  * Fix Bison detection for minor version 0.
  * Fix parallel build with FreeBSD make.
  * Get DLT_MATCHING_MAX right in gencode.c on NetBSD.
  * Define timeradd() and timersub() if necessary.
  * Fix Cygwin/MSYS target directories.
  * Fix symlinking with DESTDIR.
  * Fix generation of libpcap.pc with CMake when not building
    a shared library.
  * Support reading version 1.2, which some writers produce,
    and which is the same as 1.0 
  * Drop support for text-mode USB captures, as we require a 2.6.27
    or later kernel 
  * Bluetooth: fix non-blocking mode. Don't assume that all compilers
    used to build for Linux support the __atomic builtins

OBS-URL: https://build.opensuse.org/request/show/899469
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=73
2021-06-11 12:23:28 +00:00
Richard Brown
8edb182da9 Accepting request 873338 from Base:System
OBS-URL: https://build.opensuse.org/request/show/873338
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=60
2021-02-22 13:22:59 +00:00
7cf26d5662 Accepting request 872631 from home:pmonrealgonzalez:branches:Base:System
- Update to 1.10.0
  * Require, and assume, some level of C99 support in the C compiler
  * Add support for capturing on DPDK devices
  * rpcap: support rpcap-over-TLS
  * Fix some memory leaks, including in pcap_compile()
  * Linux: handle systems without AF_INET or AF_UNIX socket support
  * Catch invalid IPv4 addresses in filters
  * Show special Linux BPF offsets symbolically in bpf_image()
      and bpf_dump()
  * Linux: get rid of Wireless Extensions for turning monitor mode on
  * Linux: proper memory sync for PACKET_MMAP
  * Linux: drop support for libnl 1 and 2.
  * Linux: Require PF_PACKET support, and kernel 2.6.27 or later
  * Add DLT_LINUX_SLL2
  * Add a new filter "ifindex" for DLT_LINUX_SLL2 files and live
      Linux captures
  * optimizer: add a hack to try to catch certain optimizer loops
  * Probe CONFIGURATION descriptor of connected USB devices
  * Linux: return error on interface going away, but not if it just
      went down
  * Linux: set socket protocol only after packet ring configured,
      reducing bogus packet drop reports
  * Linux: get ifdrop stats from sysfs.
  * Fix various security issues reported by Charles Smith at
      Tangible Security
  * Fix various security issues reported by Include Security
  * rpcapd: on UN*X, don't tell the client why authentication failed
  * Linux: when adjusting BPF programs, do not subtract the
      SLL[2]_HDR_LEN if the location is negative (special
      metadata offset)

OBS-URL: https://build.opensuse.org/request/show/872631
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=71
2021-02-18 09:53:12 +00:00
955597c647 Accepting request 848232 from Base:System
- Fulfill the feature requirement of jsc#SLE-15153

- Update to 1.9.1 [bsc#1153332]
   * 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.
   * 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
   * Add backwards compatibility sections to some man pages
   * 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
   * Fix reading of capture statistics for Linux USB
   * Fix packet size values for Linux USB packets
   * Check only VID in VLAN test in filterss
   * 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
   * 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
   * Fix compilation of TurboCap support
   * 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 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
   * Have pcap_dump_open_append() create the dump file if it doesn't exists
   * Fix the maxmum snapshot length for DLT_USBPCAP
   * Use -fPIC when building for 64-bit SPARC on Linux
   * 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
   * PCAPNG reader applies some sanity checks before doing malloc().
- Drop patch fixed upstream:
   * Check-only-VID-in-VLAN-test-issue-461.patch
- Rebase patch:
   * libpcap-1.0.0-ppp.patch
- Use FAT LTO objects in order to provide proper static library.
- update to 1.9.0
  * add testing system to libpcap, independent of tcpdump
  * changes to how pcap_t is activated
  * update included copies of BSD 4-clause license to 3-clause
  * additions to TCP header parsing, per RFC3168
  * support setting non-blocking mode before activating
  * fixes so that non-AF_INET addresses, are not ==AF_INET6 addresses
  * 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
    (bsc#874131 bsc#993691 fate#321405)
  * D-Bus captures can now be up to 128MB in size
  * add DLT_LORATAP and DLT_VSOCK
  * allow specifying a specific capture protocol
  * RDMA sniffing support for pcap
  * increase minimum autoconf version requirement to 2.64
  * rpcapd: support for xinetd.conf and systemd units
  * provide pkgconfig file
- add BuildRequires for autoconf >= 2.64
- package (newly added) pkgconfig file
- Check-only-VID-in-VLAN-test-issue-461.patch:
  fix "vlan <id>" test to check only VID, not complete TCI
- drop disable-remote.diff (superseded by upstream changes)
- Fix SRPM group
- Added a patch (disable-remote.diff) to fix applications to FTBFS
  if they define HAVE_REMOTE (deb#843384). Patch taken from Debian.
- Restore section setting $pic
- Do not put conditions about the provides for < 11.0
- Dropped patches not required after review
  * libpcap-1.0.0-pcap-bpf.patch
  * libpcap-1.5.2-filter-fix.patch
- Reference of the pull request for the rest of the patches
  * https://github.com/the-tcpdump-group/libpcap/issues/196
- Changed libpcap-1.0.0-s390.patch to the git formatted one
- Formatted the specs file using spec-cleaner.
- Allow bluetooth monitoring support unconditionally.
- update to 1.8.1
  * Clean up the name-to-DLT mapping table.
  * Add some newer DLT_ values:
  IPMI_HPM_2,ZWAVE_R1_R2,ZWAVE_R3,WATTSTOPPER_DLM,ISO_14443,RDS
  * 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.
  * 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.
  * 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().
  * Have rpcap_remoteact_getsock() return a SOCKET and supply an "is active" flag.
  * Clean up {DAG, Septel, Myricom SNF}-only builds.
  * 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.
  * Recognize 802.1ad nested VLAN tag in vlan filter.
- dropped libpcap-ocloexec.patch, never upstreamed.
- refreshed libpcap-1.0.0-ppp.patch
- libpcap-no-old-socket.patch: never fallback to the obsolete
  SOCK_PACKET (kernel < 2.2) interface, this still happens
  for example, when you update the kernel, run iftop and 
  the old kernel af_packet module wasn't loaded, program fails
  and the kernel prints "iftop uses obsolete (PF_INET,SOCK_PACKET)"
- remove dependency on libusb-devel, only libusb-1.0 is used for
  build.
- split a -devel-static subpackage that contains the static
  libraries and all the extra dependencies which are not needed
  for dynamic linking.
- libpcap 1.7.3:
  * work around a Linux bonding driver bug.
- update to 1.7.2
  * Support for filtering Geneve encapsulated packets.
  * 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.
- refreshed libpcap-ocloexec.patch
- No longer perform gpg validation; osc source_validator does it
  implicit:
  + Drop gpg-offline BuildRequires.
  + No longer execute gpg_verify.
- libpcap 1.6.2:
  * 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.
- libpcap 1.6.1:
  * some fixes for the any device
  * changes for how --enable-XXX works
- includes changes from 1.6.0:
  * fixes for byte order issues with NFLOG captures
  * Handle using cooked mode for DLT_NETLINK in activate_new().
    removing libpcap-netlink.patch, upstream, [bnc#863823]
  * 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!
- libpcap does not build with bluez 5.21, disable bluetooth
  ( bluetooth/mgmt.h moved to kernel )
- added support for netlink (bnc#863823)
  * libpcap-netlink.patch
- update to 1.5.3
  * 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.
- refreshed libpcap-1.5.2-filter-fix.patch
- update to 1.5.2
  Version 1.5.0 revised for non-code related edits Version,
  1.5.1 revised for for interop against Linux 3.1.0
  * 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
  * Support filtering filtering E1 SS7 traffic on MTP2 layer Annex A
  * Use "ln -s" to link man pages by default
  * Added pcap_open_dead_with_tstamp_precision API interface.
  * Many changes to autoconf to deal better with non-GCC compilers
    added many new DLT types 
- require pkg-config for devel library support detection
- add support for D-Bus capture
- modified patches for upstream changes:
  * libpcap-ocloexec.patch
  * libpcap-1.0.0-filter-fix.patch to libpcap-1.5.2-filter-fix.patch
- update to 1.4.0:
  * add netfilter/nfqueue interface
  * support IPv6 filter expressions when no IPv6 address resolution
    availavle
  * 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
- packaging changes:
  * build with libnl
  * refresh libpcap-ocloexec.patch for upstream changes
  * verify source signatures
- BuildRequire libusb-devel for "usb sniffing" 
- Added libpcap-ocloexec.patch:
  Use O_CLOEXEC in all internal fds so they do not
  leak on fork()..execve() 
- remove some patches
  - libpcap-1.0.0-fcode.patch -- not needed, if this emitted a warning,
    it was a compiler bug
  - libpcap-1.0.0-mac_syntax.patch -- already handled by MAC rule
  - libpcap-1.0.0-man.patch -- tcpdump is man 1, not 8
  - libpcap-1.1.1-scanif.patch -- misapplied, this was fixed upstream
    already
  - libpcap-1.2.1-netfilter-dont-fail-on-EPROTONOSUPPORT.patch
- update to 1.3.0
  - 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.
- make it work also on kernels without netfilter (bnc#746356)
- update to libpcap-1.2.1 
  - 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.
  - 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.
  - Simplify handling of new DLT_/LINKTYPE_ values.
  - Expand pcap(3PCAP) man page.
- drop libpcap-fix-calculation-of-frame-size.patch (upstream)
- Add libpcap-devel to baselibs
- Remove redundant tags/sections
- add libpcap-fix-calculation-of-frame-size.patch (bnc#694779)
- clean up specfile
- fix bug#674278: pcap_findalldevs error with bonding device
  libpcap-1.1.1-scanif.patch
- update to libpcap-1.1.1
 - notable changes :
  - Add SocketCAN capture support
  - Add Myricom SNF API support
  - Update Endace DAG and ERF support
  - Support monitor mode on mac80211 devices on Linux
  - Fix USB memory-mapped capturing on Linux
  - On Linux, scan /sys/class/net for devices if we have it
  - Add limited support for reading pcap-ng files
 - see /usr/share/doc/packages/libpcap1/CHANGES for
   full list of changes
- drop fix-any-interface-handling.patch (fixed upstream)
- drop fix-usb-nic.patch (fixed upstream)
- large PIC model is required on SPARC
- add baselibs.conf as a source
- enable parallel building
- updated patches to apply with fuzz=0
- move pcap-filter and pcap-linktype out from -devel subpackage
  (bnc#550372)
- don't obsolete an old libpcap (0.9.x) package on openSUSE 11.0 or
  older (bnc#507083)
- add fix-usb-nic.patch (bnc#455774) 
- fix-any-interface-handling.patch (bnc#463182) 
- updated to 1.0.0
  * Compile with IPv6 support by default
  * Compile with large file support on by default
  * Add pcap-config script, which deals with -I/-L flags
    for compiling
  * DLT: Add IPMB
  * DLT: Add LAPD
  * DLT: Add AX25 (AX.25 w/KISS header)
  * DLT: Add JUNIPER_ST
  * 802.15.4 support
  * Variable length 802.11 header support
  * X2E data type support
  * SITA ACN Interface support - see README.sita
  * Support for zerocopy BPF on platforms that support it
  * Better support for dealing with VLAN tagging/stripping on Linux
  * Fix dynamic library support on OSX
  * Return PCAP_ERROR_IFACE_NOT_UP if the interface isn't 'UP', so
    applications can print better diagnostic information
  * Return PCAP_ERROR_PERM_DENIED if we don't have permission to open
    a device, so applications can tell the user they need to go play
    with permissions
  * On Linux, ignore ENETDOWN so we can continue to capture packets
    if the interface goes down and comes back up again.
  * On Linux, support new tpacket frame headers (2.6.27+)
  * On Mac OS X, add scripts for changing permissions on /dev/pbf* and
    launchd plist
  * On Solaris, support 'passive mode' on systems that support it
  * Fixes to autoconf and general build environment
  * Man page reorganization + cleanup
  * Autogenerate VERSION numbers better
- dropped obsoleted shared.patch
- obsolete old -XXbit packages (bnc#437293)
- adjust buildrequires
- updated to CVS-20080503
  * support for USB and Bluetooth capture
- renamed libpcap package to libpcap0
- added ppp.patch and s390.patch (small issues)
- added baselibs.conf file to build xxbit packages
  for multilib support
- update to 0.9.8
  * Change build process to put public libpcap headers into pcap subdir
  * DLT: Add value for IPMI IPMB packets
  * DLT: Add value for u10 Networks boards
  * Require <net/pfvar.h> for pf definitions - allows reading of pflog
    formatted libpcap files on an OS other than where the file was generated
- added pcap-bpf.patch
  * add two structs needed for tahi testsuite
- updated to 0.9.7
  * added flags/configuration for cloning bpf device.
  * added DLT_MTP2_WITH_PHDR support (PPI)
  * introduced support for the DAG ERF type TYPE_COLOR_MC_HDLC_POS
  * added basic BPF filtering support for DLT_MTP2_WITH_PHDR
  * add support for DLT_JUNIPER_ISM
  * allocate DLT_ for 802.15.4 without any header munging
  * header for 802.16 MAC Common Part Sublayer plus a radiotap radio header
- branch -devel subpackage
- updated to 0.9.6
  * added Bluetooth support
  * added USB capturing support
  * added support for the binary USB sniffing interface
  * added additional filter operations for 802.11 frame types
  * added support for filtering on MTP2 frame types
  * added LINKTYPE_ for IEEE 802.15.4, with address fields padded
  * added LINKTYPE_ value corresponding to DLT_IEEE802_16_MAC_CPS
  * added DLT for IEEE 802.16 (WiMAX) MAC Common Part Sublayer
  * added DLT for Bluetooth HCI UART transport layer
  * fixed discarding of unread packets when changing filters
  * fixed a bug in pcap_open_live()
- Use correct version for naming the shared library (#270226)
- add flex and bison BuildRequires
- implemented socket timeout (socket-timeout.diff) [#234034]
- update to 0.9.5
  * Support for LAPD frames with vISDN
  * Support for ERF on channelized T1/E1 cards via DAG API
  * Better failure detection on PacketGetAdapterNames()
  * Fixes for MPLS packet generation (link layer)
  * OP_PACKET now matches the beginning of the packet, instead of beginning+link-layer
  * Fix allocation of buffer for list of link-layer types
  * Add support for DLT_JUNIPER_VP
  * Don't double-count received packets on Linux systems
- converted neededforbuild to BuildRequires
- update to 0.9.4
- Reverse the -fno-strict-aliasing work around
- Compile with -fno-strict-aliasing to work around compiler bug for now.
- do not package all of libdir (debuginfo)
- update to 0.9.3
- added return value to non-void functions 
- fixed file list
- add DLT_PPP_WITHDIRECTION from libpcap cvs to handle PPP filters
  in a compatible way
  Thanks to Hannes Gredler <hannes@juniper.net> for implementing it
- updated to version 0.8.3
- updated to version 0.8.1
  * the include file include/net/bpf.h renamed to include/pcap-bpf
- fixed config (LIBOBJS issue)
- Use autoreconf.
- update to version 0.7.2
  * support frame relay
  * support for ARPHRD_RAWHDLC
  * support eg (Octane/O2xxx/O3xxx Gigabit) devices
  * add new reserved DLT types
- security fix (get spurious packets before kernel filter kicks in)             
- update to 0.7.1                                                               
  * pcap_stats() has been documented as to what its counters mean on            
    each platform                                                               
  * Added pcap_findalldevs() call to get list of interfaces in                  
    a MI way 
- fixed Makefile.in to created shared library
- use %{_lib}
- update to 0.6.2 - it should handle isdn without patch
- Compile with -fpic so that it can be included in a shared library.
- new version 0.5.2
- Group sorted
- buildroot added
- moved man page to %{_mandir}
- ran old prepare_spec on spec file to switch to new prepare_spec.
- fixed call of Check at the end of %install section
- new package: libpcap
  now an extra package, because many network tools use it (so far
  it was included in .srpm packages that needed it, like tcpdump)

OBS-URL: https://build.opensuse.org/request/show/848232
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=59
2020-11-15 14:21:52 +00:00
0736f241a7 Accepting request 848181 from home:pmonrealgonzalez:branches:Base:System
- Update to 1.9.1 [bsc#1153332]

OBS-URL: https://build.opensuse.org/request/show/848181
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=69
2020-11-12 16:28:14 +00:00
a2871c30a8 Accepting request 734984 from Base:System
OBS-URL: https://build.opensuse.org/request/show/734984
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=58
2019-10-11 13:10:57 +00:00
Tomáš Chvátal
85d0e358f8 Accepting request 734758 from home:pmonrealgonzalez:branches:Base:System
- Update to 1.9.1
   * 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.
   * 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
   * Add backwards compatibility sections to some man pages
   * 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
   * Fix reading of capture statistics for Linux USB
   * Fix packet size values for Linux USB packets
   * Check only VID in VLAN test in filterss
   * 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
   * Handle systems without strlcpy() or strlcat() better

OBS-URL: https://build.opensuse.org/request/show/734758
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=67
2019-10-04 12:00:54 +00:00
81aa2fafb1 Accepting request 720465 from Base:System
OBS-URL: https://build.opensuse.org/request/show/720465
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=57
2019-09-05 10:01:43 +00:00
Tomáš Chvátal
dd7a159018 Accepting request 720459 from home:marxin:static
Use FAT LTO objects in order to provide proper static library.

OBS-URL: https://build.opensuse.org/request/show/720459
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=65
2019-08-02 07:32:13 +00:00
00d4fd7f3d Accepting request 637759 from Base:System
OBS-URL: https://build.opensuse.org/request/show/637759
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=56
2018-10-02 17:43:17 +00:00
Tomáš Chvátal
6b1b397e74 Accepting request 637756 from home:mkubecek:branches:Base:System
- update to 1.9.0

OBS-URL: https://build.opensuse.org/request/show/637756
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=63
2018-09-24 19:10:18 +00:00
dc277500e5 Accepting request 581748 from Base:System
OBS-URL: https://build.opensuse.org/request/show/581748
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=55
2018-03-07 09:28:54 +00:00
Tomáš Chvátal
9e1f4cd1ae Accepting request 581732 from home:jengelh:branches:Base:System
- Fix SRPM group

OBS-URL: https://build.opensuse.org/request/show/581732
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=61
2018-03-01 15:44:34 +00:00
0bd4e4aa7b Accepting request 523893 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/523893
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=54
2017-09-18 17:52:46 +00:00
Tomáš Chvátal
79358d2d00 Accepting request 523827 from home:adra:branches:Base:System
Added a patch (disable-remote.diff) to fix applications to FTBFS if they define HAVE_REMOTE (deb#843384)

OBS-URL: https://build.opensuse.org/request/show/523827
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=59
2017-09-13 07:48:52 +00:00
874bd4991c Accepting request 485091 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/485091
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=53
2017-04-11 07:29:08 +00:00
6e4acd5d62 Accepting request 482305 from home:jengelh:branches:Base:System
- Restore section setting $pic

OBS-URL: https://build.opensuse.org/request/show/482305
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=57
2017-04-04 11:09:13 +00:00
4fcb4c5732 Accepting request 478864 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/478864
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=52
2017-03-21 21:42:17 +00:00
e0a34a68c6 Accepting request 457407 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/457407
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=51
2017-03-05 16:53:40 +00:00
Tomáš Chvátal
37aa4a6b52 - Do not put conditions about the provides for < 11.0
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=54
2017-03-01 10:13:10 +00:00
Tomáš Chvátal
4448b34e2e Accepting request 457393 from home:pmonrealgonzalez:branches:Base:System
- Dropped patches not required after review
  * libpcap-1.0.0-pcap-bpf.patch
  * libpcap-1.5.2-filter-fix.patch
- Reference of the pull request for the rest of the patches
  * https://github.com/the-tcpdump-group/libpcap/issues/196
- Changed libpcap-1.0.0-s390.patch to the git formatted one

OBS-URL: https://build.opensuse.org/request/show/457393
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=53
2017-02-15 11:20:18 +00:00
Tomáš Chvátal
abe8eda15a Accepting request 454184 from home:pmonrealgonzalez:branches:Base:System
- Formatted the specs file using spec-cleaner.

- Allow bluetooth monitoring support unconditionally.

- update to 1.8.1
  * Clean up the name-to-DLT mapping table.
  * Add some newer DLT_ values:
  IPMI_HPM_2,ZWAVE_R1_R2,ZWAVE_R3,WATTSTOPPER_DLM,ISO_14443,RDS
  * 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.
  * 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.
  * 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().
  * Have rpcap_remoteact_getsock() return a SOCKET and supply an "is active" flag.
  * Clean up {DAG, Septel, Myricom SNF}-only builds.
  * 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.
  * Recognize 802.1ad nested VLAN tag in vlan filter.
- dropped libpcap-ocloexec.patch, never upstreamed.
- refreshed libpcap-1.0.0-ppp.patch

OBS-URL: https://build.opensuse.org/request/show/454184
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=52
2017-02-02 16:03:40 +00:00
a62634260e Accepting request 390474 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/390474
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=50
2016-04-22 14:17:21 +00:00
06013bf785 Accepting request 390357 from home:elvigia:branches:Base:System
- libpcap-no-old-socket.patch: never fallback to the obsolete
  SOCK_PACKET (kernel < 2.2) interface, this still happens
  for example, when you update the kernel, run iftop and 
  the old kernel af_packet module wasn't loaded, program fails
  and the kernel prints "iftop uses obsolete (PF_INET,SOCK_PACKET)"

OBS-URL: https://build.opensuse.org/request/show/390357
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=50
2016-04-17 20:16:22 +00:00
b0a6f7ea09 Accepting request 313588 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/313588
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=49
2015-06-30 08:15:06 +00:00
e7c807bcf7 Accepting request 312890 from home:elvigia:branches:Base:System
- remove dependency on libusb-devel, only libusb-1.0 is used for
  build.
- split a -devel-static subpackage that contains the static
  libraries and all the extra dependencies which are not needed
  for dynamic linking.

OBS-URL: https://build.opensuse.org/request/show/312890
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=48
2015-06-24 16:18:28 +00:00
Stephan Kulow
2c2f284837 Accepting request 304095 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/304095
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=48
2015-04-28 18:42:57 +00:00
Stephan Kulow
3e71c7912a Accepting request 304088 from home:AndreasStieger:branches:Base:System
libpcap 1.7.3

OBS-URL: https://build.opensuse.org/request/show/304088
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=46
2015-04-26 19:26:18 +00:00
02e90611c4 Accepting request 290620 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/290620
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=47
2015-03-16 05:53:26 +00:00
Vítězslav Čížek
9fcabd3e22 Accepting request 290619 from home:vitezslav_cizek:branches:Base:System
- update to 1.7.2
  * Support for filtering Geneve encapsulated packets.
  * 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.
- refreshed libpcap-ocloexec.patch

OBS-URL: https://build.opensuse.org/request/show/290619
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=44
2015-03-13 12:25:03 +00:00
575f7a0693 Accepting request 261586 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/261586
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=46
2014-11-24 10:11:09 +00:00
Vítězslav Čížek
427e9ab662 Accepting request 261550 from home:dimstar:gpg2
OBS-URL: https://build.opensuse.org/request/show/261550
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=42
2014-11-14 12:21:57 +00:00
Stephan Kulow
49bd140b94 Accepting request 247480 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/247480
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=45
2014-09-09 16:59:43 +00:00
8c7bcca024 Accepting request 247451 from home:AndreasStieger:branches:Base:System
libpcap 1.6.2

OBS-URL: https://build.opensuse.org/request/show/247451
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=40
2014-09-04 08:40:38 +00:00
Stephan Kulow
4fecf33b1a Accepting request 245596 from Base:System
1

OBS-URL: https://build.opensuse.org/request/show/245596
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=43
2014-08-25 09:02:59 +00:00
d8d363959b Accepting request 245010 from home:AndreasStieger:branches:Base:System
libpcap 1.6.1

OBS-URL: https://build.opensuse.org/request/show/245010
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=38
2014-08-21 13:11:40 +00:00
Stephan Kulow
33231c5b43 Accepting request 222427 from Base:System
- added support for netlink (bnc#863823)
  * libpcap-netlink.patch

- update to 1.5.3
  * 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.
- refreshed libpcap-1.5.2-filter-fix.patch (forwarded request 222227 from vitezslav_cizek)

OBS-URL: https://build.opensuse.org/request/show/222427
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpcap?expand=0&rev=42
2014-02-17 08:56:27 +00:00
6ef0670f31 Accepting request 222227 from home:vitezslav_cizek:branches:Base:System
- added support for netlink (bnc#863823)
  * libpcap-netlink.patch

- update to 1.5.3
  * 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.
- refreshed libpcap-1.5.2-filter-fix.patch

OBS-URL: https://build.opensuse.org/request/show/222227
OBS-URL: https://build.opensuse.org/package/show/Base:System/libpcap?expand=0&rev=36
2014-02-15 10:08:40 +00:00