Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
libpcap
libpcap-1.1.1-scanif.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libpcap-1.1.1-scanif.patch of Package libpcap
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.orig +++ pcap-linux.c @@ -2176,7 +2176,7 @@ scan_proc_net_dev(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",
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor