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