]> The Tcpdump Group git mirrors - libpcap/commitdiff
Add support for loopback devices on AIX (under the assumption that they
authorguy <guy>
Fri, 28 Mar 2003 08:08:11 +0000 (08:08 +0000)
committerguy <guy>
Fri, 28 Mar 2003 08:08:11 +0000 (08:08 +0000)
have a DLT_NULL-style link-layer header).

pcap-bpf.c

index dd129bd88ed0fd23ccad2da8b0a1b78277d4c083..b35084d9cd698ec4cc0900093d029810a2b35c30 100644 (file)
@@ -20,7 +20,7 @@
  */
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/libpcap/pcap-bpf.c,v 1.58 2003-02-25 21:58:48 fenner Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/pcap-bpf.c,v 1.59 2003-03-28 08:08:11 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -534,6 +534,10 @@ pcap_open_live(const char *device, int snaplen, int promisc, int to_ms,
                v = DLT_IEEE802;
                break;
 
+       case IFT_LOOP:
+               v = DLT_NULL;
+               break;
+
        default:
                /*
                 * We don't know what to map this to yet.