Update to new upstream release, libpcap-1.2.0

This commit is contained in:
Michal Sekletar 2011-12-02 07:24:06 +01:00
parent 1fe2be8921
commit 07fdab966d
5 changed files with 26 additions and 60 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
libpcap-1.1.1.tar.gz
/libpcap-1.2.0.tar.gz

View File

@ -1,61 +1,61 @@
diff -up libpcap/pcap-config.in.multilib libpcap/pcap-config.in
--- libpcap/pcap-config.in.multilib 2009-07-03 06:01:12.000000000 +0200
+++ libpcap/pcap-config.in 2009-07-09 15:55:48.000000000 +0200
@@ -29,16 +29,6 @@ do
--- libpcap/pcap-config.in.multilib 2011-11-23 14:28:54.580396515 +0100
+++ libpcap/pcap-config.in 2011-11-23 14:36:47.408268484 +0100
@@ -36,16 +36,6 @@ do
esac
shift
done
-if [ "@V_RPATH_OPT@" != "" ]
-if [ "$V_RPATH_OPT" != "" ]
-then
- #
- # If libdir isn't /usr/lib, add it to the run-time linker path.
- #
- if [ "@libdir@" != "/usr/lib" ]
- if [ "$libdir" != "/usr/lib" ]
- then
- RPATH=@V_RPATH_OPT@@libdir@
- RPATH=$V_RPATH_OPT$libdir
- fi
-fi
if [ "$static" = 1 ]
then
#
@@ -47,16 +37,16 @@ then
@@ -54,16 +44,16 @@ then
#
if [ "$show_cflags" = 1 -a "$show_libs" = 1 ]
then
- echo "-I@includedir@ -L@libdir@ -lpcap @LIBS@"
- echo "-I$includedir -L$libdir -lpcap $LIBS"
+ echo "-lpcap @LIBS@"
elif [ "$show_cflags" = 1 -a "$show_additional_libs" = 1 ]
then
- echo "-I@includedir@ -L@libdir@ @LIBS@"
- echo "-I$includedir -L$libdir $LIBS"
+ echo "@LIBS@"
elif [ "$show_cflags" = 1 ]
then
- echo "-I@includedir@"
- echo "-I$includedir"
+ echo ""
elif [ "$show_libs" = 1 ]
then
- echo "-L@libdir@ -lpcap @LIBS@"
- echo "-L$libdir -lpcap $LIBS"
+ echo "-lpcap @LIBS@"
elif [ "$show_additional_libs" = 1 ]
then
echo "@LIBS@"
@@ -68,15 +58,15 @@ else
echo "$LIBS"
@@ -75,15 +65,15 @@ else
#
if [ "$show_cflags" = 1 -a "$show_libs" = 1 ]
then
- echo "-I@includedir@ -L@libdir@ $RPATH -lpcap"
- echo "-I$includedir -L$libdir $RPATH -lpcap"
+ echo "-lpcap"
elif [ "$show_cflags" = 1 -a "$show_additional_libs" = 1 ]
then
- echo "-I@includedir@"
- echo "-I$includedir"
+ echo ""
elif [ "$show_cflags" = 1 ]
then
- echo "-I@includedir@"
- echo "-I$includedir"
+ echo ""
elif [ "$show_libs" = 1 ]
then
- echo "-L@libdir@ $RPATH -lpcap"
- echo "-L$libdir $RPATH -lpcap"
+ echo "-lpcap"
fi
fi

View File

@ -1,36 +0,0 @@
commit 02096148c9c407502697cfefbc0aed50eb820bbd
Author: andy-1 <andy-1@sourceforge.net>
Date: Tue Apr 27 23:33:23 2010 -0700
Ignore /sys/net/dev files if we get ENODEV for them, not just ENXIO.
Both of them are indications that there's no such interface, so the file
probably corresponds to something other than a device.
Reviewed-By: Guy Harris <guy@alum.mit.edu>
diff --git a/CREDITS b/CREDITS
index 0d23783..6efc188 100644
--- a/CREDITS
+++ b/CREDITS
@@ -15,6 +15,7 @@ Additional people who have contributed patches:
Alexey Kuznetsov <kuznet at ms2 dot inr dot ac dot ru>
Alon Bar-Lev <alonbl at sourceforge dot net>
Andrew Brown <atatat at atatdot dot net>
+ <andy-1 at sourceforge dot net>
Antti Kantee <pooka at netbsd dot org>
Arien Vijn <arienvijn at sourceforge dot net>
Arkadiusz Miskiewicz <misiek at pld dot org dot pl>
diff --git a/pcap-linux.c b/pcap-linux.c
index af12543..de3239a 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -1883,7 +1883,7 @@ scan_sys_class_net(pcap_if_t **devlistp, char *errbuf)
*/
strncpy(ifrflags.ifr_name, name, sizeof(ifrflags.ifr_name));
if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifrflags) < 0) {
- if (errno == ENXIO)
+ if (errno == ENXIO || errno == ENODEV)
continue;
(void)snprintf(errbuf, PCAP_ERRBUF_SIZE,
"SIOCGIFFLAGS: %.*s: %s",

View File

@ -1,7 +1,7 @@
Name: libpcap
Epoch: 14
Version: 1.1.1
Release: 4%{?dist}
Version: 1.2.0
Release: 1%{?dist}
Summary: A system-independent interface for user-level packet capture
Group: Development/Libraries
License: BSD with advertising
@ -13,8 +13,7 @@ Source: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
Patch1: libpcap-man.patch
Patch2: libpcap-multilib.patch
Patch3: libpcap-s390.patch
Patch4: libpcap-nodev.patch
Patch5: libpcap-fragment.patch
Patch4: libpcap-fragment.patch
%description
Libpcap provides a portable framework for low-level network
@ -51,8 +50,7 @@ resources needed for developing libpcap applications.
%patch1 -p1 -b .man
%patch2 -p1 -b .multilib
%patch3 -p1 -b .s390
%patch4 -p1 -b .nodev
%patch5 -p1 -b .fragment
%patch4 -p1 -b .fragment
#sparc needs -fPIC
%ifarch %{sparc}
@ -94,6 +92,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man5/pcap*.5*
%changelog
* Fri Dec 02 2011 Michal Sekletar <msekleta@redhat.com> 14:1.2.0-1
- update to 1.2.0
* Tue Sep 06 2011 Michal Sekletar <msekleta@redhat.com> 14:1.1.1-4
- fix capture of fragmented ipv6 packets

View File

@ -1 +1 @@
1bca27d206970badae248cfa471bbb47 libpcap-1.1.1.tar.gz
dfb8aa690b7a29821bfa183025436569 libpcap-1.2.0.tar.gz