diff options
author | monthadar <monthadar@FreeBSD.org> | 2013-02-07 21:22:14 +0000 |
---|---|---|
committer | monthadar <monthadar@FreeBSD.org> | 2013-02-07 21:22:14 +0000 |
commit | 92c96a118c538a2e18779dc7a470f176aceeb5b1 (patch) | |
tree | a828495fb4ef719cbde963afa64c4906770be1d4 /sys/net80211 | |
parent | aeaacfbfb306ce87345043b9801b6c37972af99c (diff) | |
download | FreeBSD-src-92c96a118c538a2e18779dc7a470f176aceeb5b1.zip FreeBSD-src-92c96a118c538a2e18779dc7a470f176aceeb5b1.tar.gz |
Start accepting IEEE80211_ACTION_MESH_GANN frames;
* Add IEEE80211_ACTION_MESH_GANN Action frame verification in
ieee80211_parse_action;
Approved by: adrian (mentor)
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_input.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c index a9acad1..ebc4642 100644 --- a/sys/net80211/ieee80211_input.c +++ b/sys/net80211/ieee80211_input.c @@ -776,6 +776,10 @@ ieee80211_parse_action(struct ieee80211_node *ni, struct mbuf *m) /* verify something */ break; case IEEE80211_ACTION_MESH_GANN: + IEEE80211_VERIFY_LENGTH(efrm - frm, + sizeof(struct ieee80211_meshgann_ie), + return EINVAL); + break; case IEEE80211_ACTION_MESH_CC: case IEEE80211_ACTION_MESH_MCCA_SREQ: case IEEE80211_ACTION_MESH_MCCA_SREP: |