diff --git a/SOURCES/0001-bpf-make-sure-sll-header-size-if-accounted-for.patch b/SOURCES/0001-bpf-make-sure-sll-header-size-if-accounted-for.patch index 25a8562..9b2d0d7 100644 --- a/SOURCES/0001-bpf-make-sure-sll-header-size-if-accounted-for.patch +++ b/SOURCES/0001-bpf-make-sure-sll-header-size-if-accounted-for.patch @@ -23,15 +23,6 @@ index a5b8953..f7f2aae 100644 return 0; } -@@ -4316,7 +4316,7 @@ static int pcap_handle_packet_mmap( - /* get required packet info from ring header */ - pcaphdr.ts.tv_sec = tp_sec; - pcaphdr.ts.tv_usec = tp_usec; -- pcaphdr.caplen = tp_snaplen; -+ pcaphdr.caplen = snaplen; - pcaphdr.len = tp_len; - - /* if required build in place the sll header*/ @@ -4329,7 +4329,7 @@ static int pcap_handle_packet_mmap( #if defined(HAVE_TPACKET2) || defined(HAVE_TPACKET3) if (tp_vlan_tci_valid && diff --git a/SPECS/libpcap.spec b/SPECS/libpcap.spec index 7867da5..bd4dbbf 100644 --- a/SPECS/libpcap.spec +++ b/SPECS/libpcap.spec @@ -1,7 +1,7 @@ Name: libpcap Epoch: 14 Version: 1.5.3 -Release: 12%{?dist} +Release: 13%{?dist} Summary: A system-independent interface for user-level packet capture Group: Development/Libraries License: BSD with advertising @@ -97,6 +97,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libpcap.a %{_mandir}/man5/pcap*.5* %changelog +* Wed Mar 02 2022 Michal Ruprich - 14:1.5.3-13 +- Resolves: #2027937 - libpcap 1.5.3 with distro patch applied writes pcap file with broken pkthdr + * Wed Jul 24 2019 Michal Ruprich - 14:1.5.3-12 - Resolves: #1596834 - Re-enable TPACKET_V3 to fix silent packet drops