libpcap/libpcap-1.0.0-s390.patch
Marcus Meissner 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

26 lines
824 B
Diff

From b9fa92532328daad84766753422e8a21fd474e6f Mon Sep 17 00:00:00 2001
From: Michal Sekletar <msekleta@redhat.com>
Date: Mon, 29 Sep 2014 08:37:25 +0200
Subject: [PATCH 3/4] pcap-linux: apparently ctc interfaces on s390 has
ethernet DLT
---
pcap-linux.c | 4 ++++
1 file changed, 4 insertions(+)
Index: libpcap-1.10.5/pcap-linux.c
===================================================================
--- libpcap-1.10.5.orig/pcap-linux.c
+++ libpcap-1.10.5/pcap-linux.c
@@ -2530,6 +2530,10 @@ setup_socket(pcap_t *handle, int is_any_
handle->linktype = DLT_LINUX_SLL;
}
+ /* Hack to make things work on s390 ctc interfaces */
+ if (strncmp("ctc", device, 3) == 0)
+ handle->linktype = DLT_EN10MB;
+
handlep->ifindex = iface_get_id(sock_fd, device,
handle->errbuf);
if (handlep->ifindex == -1) {