From: gianluca Date: Wed, 9 Aug 2006 19:18:41 +0000 (+0000) Subject: Added support for DLT_IEEE802_11 and DLT_IEEE802_11_RADIO link layers in windows X-Git-Tag: libpcap-0.9.5~8 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/1bc715765210bd85ad996efc189e1f75ed5d74e3 Added support for DLT_IEEE802_11 and DLT_IEEE802_11_RADIO link layers in windows --- diff --git a/pcap-win32.c b/pcap-win32.c index 8ff5eb36..acd50d9d 100644 --- a/pcap-win32.c +++ b/pcap-win32.c @@ -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 @@ -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;