summaryrefslogtreecommitdiff
path: root/print-sll.c
diff options
context:
space:
mode:
authorSeonah Moon <seonah1.moon@samsung.com>2019-10-07 10:58:05 +0900
committerSeonah Moon <seonah1.moon@samsung.com>2019-10-07 10:58:18 +0900
commit9ceaf0d786e9465506271e8450248a57719e4eb1 (patch)
treec933215271ff7ec5c6b574198aa193e7c377f579 /print-sll.c
parent68b0938829a42f1f5dbb099d79df2cae08bf9d73 (diff)
downloadtcpdump-9ceaf0d786e9465506271e8450248a57719e4eb1.tar.gz
tcpdump-9ceaf0d786e9465506271e8450248a57719e4eb1.tar.bz2
tcpdump-9ceaf0d786e9465506271e8450248a57719e4eb1.zip
Imported Upstream version 4.9.3upstream/4.9.3upstream
Change-Id: I3cc0d412048588389bb26e10136fe244bd6b09ed
Diffstat (limited to 'print-sll.c')
-rw-r--r--print-sll.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/print-sll.c b/print-sll.c
index 6148569..9bc5d20 100644
--- a/print-sll.c
+++ b/print-sll.c
@@ -198,6 +198,7 @@ sll_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char
u_int caplen = h->caplen;
u_int length = h->len;
register const struct sll_header *sllp;
+ u_short hatype;
u_short ether_type;
int llc_hdrlen;
u_int hdrlen;
@@ -225,6 +226,16 @@ sll_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char
p += SLL_HDR_LEN;
hdrlen = SLL_HDR_LEN;
+ hatype = EXTRACT_16BITS(&sllp->sll_hatype);
+ switch (hatype) {
+
+ case 803:
+ /*
+ * This is an packet with a radiotap header;
+ * just dissect the payload as such.
+ */
+ return (SLL_HDR_LEN + ieee802_11_radio_print(ndo, p, length, caplen));
+ }
ether_type = EXTRACT_16BITS(&sllp->sll_protocol);
recurse: