Name: libpcap Epoch: 14 Version: 1.5.3 Release: 11%{?dist} Summary: A system-independent interface for user-level packet capture Group: Development/Libraries License: BSD with advertising URL: http://www.tcpdump.org BuildRequires: glibc-kernheaders >= 2.2.0 bison flex bluez-libs-devel git Source: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz Patch1: libpcap-man.patch Patch2: libpcap-multilib.patch Patch3: libpcap-s390.patch Patch4: 0001-NFLOG-don-t-crash-trying-to-filter-at-link-layer.patch Patch5: 0001-pcap-linux-don-t-use-TPACKETV3-for-memory-mmapped-ca.patch Patch6: 0001-Make-sure-the-userland-filtering-happens-correctly-o.patch Patch7: 0001-bpf-increase-snaplen-if-doing-cooked-mode-userspace-.patch Patch8: 0001-linktype-add-netlink-link-dlt-type.patch Patch9: 0001-Handle-using-cooked-mode-for-DLT_NETLINK-in-activate.patch Patch10: 0001-Introduce-bpf_filter1-function.patch Patch11: 0002-Use-BPF-extensions-in-compiled-filters.patch Patch12: 0003-More-descriptive-name-for-bpf_filter1.patch Patch13: 0004-Get-rid-of-unused-variable.patch Patch14: 0005-Move-the-socket-ops-out-of-gencode.c.patch Patch15: 0001-Add-names-for-DLT_NETLINK.patch Patch16: 0001-Fix-link-type-for-nlmon.patch Patch17: 0001-bpf-make-sure-sll-header-size-if-accounted-for.patch Patch18: 0006-Bound-tpacketv2-to-64k.patch Patch19: 0007-Add-support-for-AF_VSOCK.patch Patch20: 0008-Vlan-tpid-handling.patch %description Libpcap provides a portable framework for low-level network monitoring. Libpcap can provide network statistics collection, security monitoring and network debugging. Since almost every system vendor provides a different interface for packet capture, the libpcap authors created this system-independent API to ease in porting and to alleviate the need for several system-dependent packet capture modules in each application. Install libpcap if you need to do low-level network traffic monitoring on your network. %package devel Summary: Libraries and header files for the libpcap library Group: Development/Libraries Requires: %{name} = %{epoch}:%{version}-%{release} %description devel Libpcap provides a portable framework for low-level network monitoring. Libpcap can provide network statistics collection, security monitoring and network debugging. Since almost every system vendor provides a different interface for packet capture, the libpcap authors created this system-independent API to ease in porting and to alleviate the need for several system-dependent packet capture modules in each application. This package provides the libraries, include files, and other resources needed for developing libpcap applications. %prep %autosetup -S git #sparc needs -fPIC %ifarch %{sparc} sed -i -e 's|-fpic|-fPIC|g' configure %endif %build export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %configure make %{?_smp_mflags} %install make DESTDIR=$RPM_BUILD_ROOT install rm -f $RPM_BUILD_ROOT%{_libdir}/libpcap.a %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc LICENSE README CHANGES CREDITS %{_libdir}/libpcap.so.* %{_mandir}/man7/pcap*.7* %files devel %defattr(-,root,root) %{_bindir}/pcap-config %{_includedir}/pcap*.h %{_includedir}/pcap %{_libdir}/libpcap.so %{_mandir}/man1/pcap-config.1* %{_mandir}/man3/pcap*.3* %{_mandir}/man5/pcap*.5* %changelog * Tue Oct 17 2017 Michal Ruprich - 14:1.5.3-11 - Resolves: #1427251 - tcpdump incorrectly shows 0x8100 tag for 802.1ad frames * Tue Aug 15 2017 Martin Sehnoutka - 14:1.5.3-10 - Add support for AF_VSOCK * Mon May 29 2017 Martin Sehnoutka - 14:1.5.3-9 - Bound packet size to 64k * Tue Sep 15 2015 Michal Sekletar - 14:1.5.3-8 - make sure that sll header size is accounted for (#1176612) * Wed Jul 08 2015 Michal Sekletar - 14:1.5.3-7 - make sure that netlink monitor interfaces are also properly recognized by tcpdump (#1031974) * Tue Jun 16 2015 Michal Sekletar - 14:1.5.3-6 - libpcap now correctly recognizes Netlink datalink type (#1031974) - fix vlan tagged packet filtering (#1079525) * Tue Mar 31 2015 Michal Sekletar - 14:1.5.3-5 - display also first packet when capturing in cooked mode (#1176612) - make sure that userland bpf filter interpreter is given snaplen such that size of cooked header is account for * Tue Dec 2 2014 Michal Sekletar - 14:1.5.3-4 - disable TPACKET_V3 memory mapped packet capture on AF_PACKET socket, use TPACKET_V2 instead (#1085096) * Thu Feb 13 2014 Michal Sekletar - 14:1.5.3-3 - don't crash when trying to filter on interface with NFLOG link layer type (#1062511) * Fri Jan 24 2014 Daniel Mach - 14:1.5.3-2 - Mass rebuild 2014-01-24 * Wed Jan 15 2014 Michal Sekletar - 14:1.5.3-1 - update to 1.5.3 * Fri Dec 27 2013 Daniel Mach - 14:1.5.0-2.20131108git459712e - Mass rebuild 2013-12-27 * Fri Nov 08 2013 Michal Sekletar - 14:1.5.0-1.20131108git459712e - update to snapshot 20131108git459712e (#1026856) * Thu Jun 06 2013 Michal Sekletar - 14:1.4.0-1 - update to 1.4.0 * Tue Mar 26 2013 Michal Sekletar - 14:1.3.0-4 - remove unused variable from pcap-config to prevent multilib conflicts - specfile cleanup * Thu Feb 14 2013 Fedora Release Engineering - 14:1.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Jul 19 2012 Fedora Release Engineering - 14:1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed Jun 13 2012 Michal Sekletar 14:1.3.0-1 - Update to 1.3.0 * Thu Jan 05 2012 Jan Synáček 14:1.2.1-2 - Rebuilt for GCC 4.7 * Tue Jan 03 2012 Jan Synáček 14:1.2.1-1 - Update to 1.2.1 - Drop unnecessary -fragment patch * Fri Dec 02 2011 Michal Sekletar 14:1.2.0-1 - update to 1.2.0 * Tue Sep 06 2011 Michal Sekletar 14:1.1.1-4 - fix capture of fragmented ipv6 packets * Fri Apr 22 2011 Miroslav Lichvar 14:1.1.1-3 - ignore /sys/net/dev files on ENODEV (#693943) - drop ppp patch - compile with -fno-strict-aliasing * Tue Feb 08 2011 Fedora Release Engineering - 14:1.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Apr 06 2010 Miroslav Lichvar 14:1.1.1-1 - update to 1.1.1 * Wed Dec 16 2009 Miroslav Lichvar 14:1.0.0-5.20091201git117cb5 - update to snapshot 20091201git117cb5 * Sat Oct 17 2009 Dennis Gilmore 14:1.0.0-4.20090922gite154e2 - use -fPIC on sparc arches * Wed Sep 23 2009 Miroslav Lichvar 14:1.0.0-3.20090922gite154e2 - update to snapshot 20090922gite154e2 - drop old soname * Fri Jul 24 2009 Fedora Release Engineering - 14:1.0.0-2.20090716git6de2de - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Jul 22 2009 Miroslav Lichvar 14:1.0.0-1.20090716git6de2de - update to 1.0.0, git snapshot 20090716git6de2de * Wed Feb 25 2009 Fedora Release Engineering - 14:0.9.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Jun 27 2008 Miroslav Lichvar 14:0.9.8-3 - use CFLAGS when linking (#445682) * Tue Feb 19 2008 Fedora Release Engineering - 14:0.9.8-2 - Autorebuild for GCC 4.3 * Wed Oct 24 2007 Miroslav Lichvar 14:0.9.8-1 - update to 0.9.8 * Wed Aug 22 2007 Miroslav Lichvar 14:0.9.7-3 - update license tag * Wed Jul 25 2007 Jesse Keating - 14:0.9.7-2 - Rebuild for RH #249435 * Tue Jul 24 2007 Miroslav Lichvar 14:0.9.7-1 - update to 0.9.7 * Tue Jun 19 2007 Miroslav Lichvar 14:0.9.6-1 - update to 0.9.6 * Tue Nov 28 2006 Miroslav Lichvar 14:0.9.5-1 - split from tcpdump package (#193657) - update to 0.9.5 - don't package static library - maintain soname