Hello community, here is the log from the commit of package libpcap for openSUSE:Factory checked in at 2018-10-02 19:43:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libpcap (Old) and /work/SRC/openSUSE:Factory/.libpcap.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libpcap" Tue Oct 2 19:43:17 2018 rev:56 rq:637759 version:1.9.0 Changes: -------- --- /work/SRC/openSUSE:Factory/libpcap/libpcap.changes 2018-03-07 10:28:56.282900491 +0100 +++ /work/SRC/openSUSE:Factory/.libpcap.new/libpcap.changes 2018-10-02 19:43:20.618081184 +0200 @@ -1,0 +2,27 @@ +Mon Sep 24 17:46:26 UTC 2018 - [email protected] + +- 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) + +------------------------------------------------------------------- Old: ---- disable-remote.diff libpcap-1.8.1.tar.gz libpcap-1.8.1.tar.gz.sig New: ---- Check-only-VID-in-VLAN-test-issue-461.patch libpcap-1.9.0.tar.gz libpcap-1.9.0.tar.gz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libpcap.spec ++++++ --- /var/tmp/diff_new_pack.ruxxzw/_old 2018-10-02 19:43:21.210080585 +0200 +++ /var/tmp/diff_new_pack.ruxxzw/_new 2018-10-02 19:43:21.214080580 +0200 @@ -17,7 +17,7 @@ Name: libpcap -Version: 1.8.1 +Version: 1.9.0 Release: 0 Summary: A Library for Network Sniffers License: BSD-3-Clause @@ -31,7 +31,8 @@ Patch2: libpcap-1.0.0-ppp.patch Patch3: libpcap-1.0.0-s390.patch Patch5: libpcap-no-old-socket.patch -Patch6: disable-remote.diff +Patch6: Check-only-VID-in-VLAN-test-issue-461.patch +BuildRequires: autoconf >= 2.64 BuildRequires: automake BuildRequires: bison BuildRequires: bluez-devel @@ -113,7 +114,7 @@ %files -n libpcap1 %defattr(-, root, root) -%doc CHANGES CREDITS LICENSE README README.linux TODO +%doc CHANGES CREDITS LICENSE README.md doc/README.linux.md TODO %{_libdir}/*.so.* %{_mandir}/man7/* @@ -127,5 +128,6 @@ %{_includedir}/* %{_bindir}/pcap-config %{_libdir}/*.so +%{_libdir}/pkgconfig/%{name}.pc %changelog ++++++ Check-only-VID-in-VLAN-test-issue-461.patch ++++++ From: Michal Kubecek <[email protected]> Date: Mon, 24 Sep 2018 18:19:04 +0200 Subject: Check only VID in VLAN test (issue #461) Patch-mailine: libpcap-1.9.1? Git-commit: b525a0863466ba863630c0450926044230b447e8 References: https://github.com/the-tcpdump-group/libpcap/issues/461 The SKF_AD_VLAN_TAG value in metadata contains the whole TCI so that if we want to use it for "vlan <id>" test, we need to apply 0xfff mask to compare only VID. Rather than adding another 'and' instruction, use existing one we already have for the "not offloaded" case so that when patching block like e.g. (010) ldh [14] (011) and #0xfff (012) jeq #0xb jt 13 jf 14 we jump to (011) instead of (012). Fixes: 04660eb1e561 ("Use BPF extensions in compiled filters") --- gencode.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- a/gencode.c +++ b/gencode.c @@ -8234,12 +8234,15 @@ gen_vlan_patch_vid_test(compiler_state_t *cstate, struct block *b_vid) sappend(s, s2); sjeq->s.jt = s2; - /* jump to the test in b_vid (bypass loading VID from packet data) */ + /* Jump to the test in b_vid. We need to jump one instruction before + * the end of the b_vid block so that we only skip loading the TCI + * from packet data and not the 'and' instruction extractging VID. + */ cnt = 0; for (s2 = b_vid->stmts; s2; s2 = s2->next) cnt++; s2 = new_stmt(cstate, JMP(BPF_JA)); - s2->s.k = cnt; + s2->s.k = cnt - 1; sappend(s, s2); /* insert our statements at the beginning of b_vid */ ++++++ libpcap-1.8.1.tar.gz -> libpcap-1.9.0.tar.gz ++++++ ++++ 70790 lines of diff (skipped)
