libpcap/libpcap-1.0.0-ppp.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

13 lines
409 B
Diff

Index: gencode.c
===================================================================
--- gencode.c.orig
+++ gencode.c
@@ -8204,6 +8204,7 @@ gen_inbound(compiler_state_t *cstate, in
*/
switch (cstate->linktype) {
case DLT_SLIP:
+ case DLT_PPP:
b0 = gen_relation_internal(cstate, BPF_JEQ,
gen_load_internal(cstate, Q_LINK, gen_loadi_internal(cstate, 0), 1),
gen_loadi_internal(cstate, 0),