summaryrefslogtreecommitdiff
path: root/proto_80211_mac_hdr.c
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-04-20 14:51:40 +0300
committerTobias Klauser <tklauser@distanz.ch>2015-04-21 15:23:17 +0200
commit9278bb65e810156ed1074e693fce14e7ecf145e8 (patch)
tree33c1e1d99f10074207c36cb0190c42c9e4f47092 /proto_80211_mac_hdr.c
parent42ca7e42aa76ee52499ae82370d11d044e811f35 (diff)
netsniff-ng: Dump basic radiotap header info
Print the basic radiotap header information in the 80211_mac_hdr dissector. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> [tklauser: removed printing of binary representation of flags] Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'proto_80211_mac_hdr.c')
-rw-r--r--proto_80211_mac_hdr.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/proto_80211_mac_hdr.c b/proto_80211_mac_hdr.c
index 9bd6ee1..0705eec 100644
--- a/proto_80211_mac_hdr.c
+++ b/proto_80211_mac_hdr.c
@@ -3155,6 +3155,11 @@ static void ieee80211(struct pkt_buff *pkt)
rtap = (struct ieee80211_radiotap_header *)pkt_pull(pkt,
sizeof(*rtap));
+ tprintf(" [ Radiotap ");
+ tprintf("Version (%u), ", rtap->version);
+ tprintf("Length (%u), ", le16_to_cpu(rtap->len));
+ tprintf("Flags (0x%08x) ]\n", le32_to_cpu(rtap->present));
+
pkt_pull(pkt, le16_to_cpu(rtap->len) - sizeof(*rtap));
}