summaryrefslogtreecommitdiff
path: root/pcap_io.h
diff options
context:
space:
mode:
Diffstat (limited to 'pcap_io.h')
-rw-r--r--pcap_io.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/pcap_io.h b/pcap_io.h
index 529cde0..c3fc951 100644
--- a/pcap_io.h
+++ b/pcap_io.h
@@ -161,8 +161,8 @@ static inline int pcap_devtype_to_linktype(const char *ifname)
case ARPHRD_IPGRE:
case ARPHRD_IP6GRE:
case ARPHRD_ETHER: return LINKTYPE_EN10MB;
+ case ARPHRD_IEEE80211_RADIOTAP: return LINKTYPE_IEEE802_11_RADIOTAP;
case ARPHRD_IEEE80211_PRISM:
- case ARPHRD_IEEE80211_RADIOTAP:
case ARPHRD_IEEE80211: return LINKTYPE_IEEE802_11;
case ARPHRD_NETLINK: return LINKTYPE_NETLINK;
case ARPHRD_EETHER: return LINKTYPE_EN3MB;
@@ -650,6 +650,7 @@ static const bool pcap_supported_linktypes[LINKTYPE_MAX] __maybe_unused = {
[LINKTYPE_ATM_CLIP] = true,
[LINKTYPE_C_HDLC] = true,
[LINKTYPE_IEEE802_11] = true,
+ [LINKTYPE_IEEE802_11_RADIOTAP] = true,
[LINKTYPE_FRELAY] = true,
[LINKTYPE_ECONET] = true,
[LINKTYPE_ARCNET_LINUX] = true,