Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > by-pkgid > de8bd345fe62a50235d08e169e6bec19 > files > 3

libpcap-1.0.0-7mdv2010.0.src.rpm

Index: inet.c
===================================================================
--- inet.c
+++ inet.c	2009-04-15 11:56:03.000000000 +0200
@@ -669,7 +669,7 @@
 	    || strstr(device, "bluetooth") != NULL
 #endif
 #ifdef PCAP_SUPPORT_USB
-	    || strstr(device, "usb") != NULL
+	    || strstr(device, "usbmon") != NULL
 #endif
 	    ) {
 		*netp = *maskp = 0;
Index: pcap-linux.c
===================================================================
--- pcap-linux.c
+++ pcap-linux.c	2009-04-15 11:56:03.000000000 +0200
@@ -322,7 +322,7 @@
 #endif
 
 #ifdef PCAP_SUPPORT_USB
-	if (strstr(device, "usb")) {
+	if (strstr(device, "usbmon")) {
 		return usb_create(device, ebuf);
 	}
 #endif
Index: pcap-usb-linux.c
===================================================================
--- pcap-usb-linux.c
+++ pcap-usb-linux.c	2009-04-15 11:56:03.000000000 +0200
@@ -61,7 +61,7 @@
 #include <sys/ioctl.h>
 #include <sys/mman.h>
 
-#define USB_IFACE "usb"
+#define USB_IFACE "usbmon"
 #define USB_TEXT_DIR "/sys/kernel/debug/usbmon"
 #define USB_BUS_DIR "/proc/bus/usb"
 #define USB_LINE_LEN 4096