]> The Tcpdump Group git mirrors - libpcap/commitdiff
From Don Ebright: handle logical interfaces on HP-UX 10.20 and 11.x.
authorguy <guy>
Fri, 8 Apr 2005 02:04:41 +0000 (02:04 +0000)
committerguy <guy>
Fri, 8 Apr 2005 02:04:41 +0000 (02:04 +0000)
fad-gifc.c

index 6c3fcbf50596bfb2079b8cf0745640b0489df3bc..4892a345783480feb286513f3483ae1dbfca40f0 100644 (file)
@@ -34,7 +34,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/libpcap/fad-gifc.c,v 1.8 2005-01-29 10:34:04 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/fad-gifc.c,v 1.9 2005-04-08 02:04:41 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -255,7 +255,7 @@ pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf)
        struct ifconf ifc;
        char *buf = NULL;
        unsigned buf_size;
-#ifdef HAVE_SOLARIS
+#if defined (HAVE_SOLARIS) || defined (HAVE_HPUX10_20)
        char *p, *q;
 #endif
        struct ifreq ifrflags, ifrnetmask, ifrbroadaddr, ifrdstaddr;
@@ -474,7 +474,7 @@ pcap_findalldevs(pcap_if_t **alldevsp, char *errbuf)
                        dstaddr_size = 0;
                }
 
-#ifdef HAVE_SOLARIS
+#if defined (HAVE_SOLARIS) || defined (HAVE_HPUX10_20)
                /*
                 * If this entry has a colon followed by a number at
                 * the end, it's a logical interface.  Those are just