dect
/
libpcap
Archived
13
0
Fork 0

Added support for DLT_IEEE802_11 and DLT_IEEE802_11_RADIO link layers in windows

This commit is contained in:
gianluca 2006-08-09 19:18:41 +00:00
parent 91dfa03535
commit 1bc7157652
1 changed files with 9 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.4 2006-02-22 17:09:32 gianluca Exp $ (LBL)";
"@(#) $Header: /tcpdump/master/libpcap/pcap-win32.c,v 1.25.2.5 2006-08-09 19:18:41 gianluca Exp $ (LBL)";
#endif
#include <pcap-int.h>
@ -487,6 +487,14 @@ pcap_open_live(const char *device, int snaplen, int promisc, int to_ms,
p->linktype = DLT_NULL;
break;
case NdisMediumBare80211:
p->linktype = DLT_IEEE802_11;
break;
case NdisMediumRadio80211:
p->linktype = DLT_IEEE802_11_RADIO;
break;
default:
p->linktype = DLT_EN10MB; /*an unknown adapter is assumed to be ethernet*/
break;