summaryrefslogtreecommitdiff
path: root/grammar.y.in
diff options
context:
space:
mode:
authorGokul Sivakumar <gokulkumar792@gmail.com>2021-07-28 22:16:18 +0530
committerGokul Sivakumar <gokulkumar792@gmail.com>2021-07-28 23:15:11 +0530
commitdb222b77441a6a828c2d69475027295f06d9a937 (patch)
tree1fd7efb4fc9f98e601f9662f97566202bb2c1604 /grammar.y.in
parenta4e7bf58bc36ee9ffa6849741ce0936ead02e106 (diff)
downloadlibpcap-db222b77441a6a828c2d69475027295f06d9a937.tar.gz
IEEE 802.11: add support to filter Block Ack Req & Block Ack control frames
As per the IEEE 802.11-2016 std, section 9.2.4.1.3, Table 9-1, the control frame Block Ack Request has the subtype 0b1000 and frame Block Ack has the subtype 0b1001. Add this two control frame subtypes in ieee80211.h so that the 802.11 frames can be filtered using "bar" or "ba" in addition to the other ctl frame subtypes.
Diffstat (limited to 'grammar.y.in')
-rw-r--r--grammar.y.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/grammar.y.in b/grammar.y.in
index 2fbd8615..2f2c8613 100644
--- a/grammar.y.in
+++ b/grammar.y.in
@@ -171,6 +171,8 @@ static const struct tok ieee80211_mgt_subtypes[] = {
{ 0, NULL }
};
static const struct tok ieee80211_ctl_subtypes[] = {
+ { IEEE80211_FC0_SUBTYPE_BAR, "bar" },
+ { IEEE80211_FC0_SUBTYPE_BA, "ba" },
{ IEEE80211_FC0_SUBTYPE_PS_POLL, "ps-poll" },
{ IEEE80211_FC0_SUBTYPE_RTS, "rts" },
{ IEEE80211_FC0_SUBTYPE_CTS, "cts" },