Added support for PPI.
This commit is contained in:
parent
92e7060fb8
commit
cf5ea4eeec
|
@ -33,7 +33,7 @@
|
|||
|
||||
#ifndef lint
|
||||
static const char rcsid[] _U_ =
|
||||
"@(#) $Header: /tcpdump/master/libpcap/pcap-win32.c,v 1.32 2007-02-19 18:35:06 gianluca Exp $ (LBL)";
|
||||
"@(#) $Header: /tcpdump/master/libpcap/pcap-win32.c,v 1.33 2007-06-14 22:08:38 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;
|
||||
|
|
Reference in New Issue