Hello community,

here is the log from the commit of package libpcap for openSUSE:Factory
checked in at Mon May 16 09:39:34 CEST 2011.



--------
--- libpcap/libpcap.changes     2010-04-06 11:03:48.000000000 +0200
+++ /mounts/work_src_done/STABLE/libpcap/libpcap.changes        2011-05-12 
09:08:16.000000000 +0200
@@ -1,0 +2,5 @@
+Mon Mar 14 14:19:41 CST 2011 - [email protected]
+- fix bug#674278: pcap_findalldevs error with bonding device
+  libpcap-1.1.1-scanif.patch
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


New:
----
  libpcap-1.1.1-scanif.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libpcap.spec ++++++
--- /var/tmp/diff_new_pack.PbGk9A/_old  2011-05-16 09:31:23.000000000 +0200
+++ /var/tmp/diff_new_pack.PbGk9A/_new  2011-05-16 09:31:23.000000000 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package libpcap (Version 1.1.1)
+# spec file for package libpcap
 #
-# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@
 
 Name:           libpcap
 Version:        1.1.1
-Release:        1
+Release:        7
 Group:          System/Libraries
 License:        BSD3c(or similar)
 Url:            http://www.tcpdump.org/
@@ -34,6 +34,7 @@
 Patch4:         libpcap-1.0.0-s390.patch
 Patch5:         libpcap-1.0.0-man.patch
 Patch6:         libpcap-1.0.0-mac_syntax.patch
+Patch7:         libpcap-1.1.1-scanif.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  bison
 BuildRequires:  bluez-devel
@@ -131,6 +132,7 @@
 %patch4
 %patch5
 %patch6
+%patch7
 
 %build
 %ifarch %sparc

++++++ libpcap-1.1.1-scanif.patch ++++++
pcap_findalldevs was failing when use bonding device.

In /sys/class/net, there are these for bonding:
drwxr-xr-x 4 root root 0 Apr 27 16:12 bond0
-rw-r--r-- 1 root root 4096 Apr 27 16:11 bonding_masters

When scan_sys_class_net encounters the bonding_masters file, the ioctl below 
fails with "no device".

This patch fixes it.
Index: pcap-linux.c
===================================================================
--- pcap-linux.c
+++ pcap-linux.c
@@ -1883,7 +1883,7 @@ scan_sys_class_net(pcap_if_t **devlistp,
                 */
                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",

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to