]> The Tcpdump Group git mirrors - libpcap/commitdiff
From Paolo Abeni:
authorguy <guy>
Fri, 13 Oct 2006 09:06:05 +0000 (09:06 +0000)
committerguy <guy>
Fri, 13 Oct 2006 09:06:05 +0000 (09:06 +0000)
avoid lookupnet to mess with ioctl for usb interface
and simply return an 0.0.0.0 net and a 0.0.0.0 netmask.

inet.c

diff --git a/inet.c b/inet.c
index 9c5f716ac0306d12372cfec57836fa79d9a1fcf5..fa1571b273182249ba4256e805ebcc6764018025 100644 (file)
--- a/inet.c
+++ b/inet.c
@@ -34,7 +34,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/libpcap/inet.c,v 1.70 2006-10-10 07:09:14 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/inet.c,v 1.71 2006-10-13 09:06:05 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -581,6 +581,9 @@ pcap_lookupnet(device, netp, maskp, errbuf)
 #endif
 #ifdef HAVE_SEPTEL_API
            || strstr(device, "septel") != NULL
+#endif
+#ifdef PCAP_SUPPORT_USB
+           || strstr(device, "usb") != NULL
 #endif
            ) {
                *netp = *maskp = 0;