]> The Tcpdump Group git mirrors - libpcap/commitdiff
Added support for PPI.
authorgianluca <gianluca>
Thu, 14 Jun 2007 22:07:14 +0000 (22:07 +0000)
committergianluca <gianluca>
Thu, 14 Jun 2007 22:07:14 +0000 (22:07 +0000)
pcap-win32.c

index 8f58f6438c4f36245bc138aa76b7c2e0cd8becea..1b4ce903fce5b1464e2eb749292f3daf913223ba 100644 (file)
@@ -33,7 +33,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/libpcap/pcap-win32.c,v 1.25.2.6 2007-02-19 18:33:37 gianluca Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/pcap-win32.c,v 1.25.2.7 2007-06-14 22:07:14 gianluca Exp $ (LBL)";
 #endif
 
 #include <pcap-int.h>
@@ -495,6 +495,10 @@ pcap_open_live(const char *device, int snaplen, int promisc, int to_ms,
                p->linktype = DLT_IEEE802_11_RADIO;
                break;
 
+       case NdisMediumPpi:
+               p->linktype = DLT_PPI;
+               break;
+
        default:
                p->linktype = DLT_EN10MB;                       /*an unknown adapter is assumed to be ethernet*/
                break;