dect
/
libpcap
Archived
13
0
Fork 0

Added support for PPI.

This commit is contained in:
gianluca 2007-06-14 22:07:14 +00:00
parent 88cba4849d
commit 1fb816445e
1 changed files with 5 additions and 1 deletions

View 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;