diff options
author | sam <sam@FreeBSD.org> | 2005-07-22 17:12:05 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-07-22 17:12:05 +0000 |
commit | 0303ee7475fd3127b90ef41175e21092ecb32c80 (patch) | |
tree | cee5495be2e25a7a77439c1549b4c6134d7e7e49 /sys/net80211 | |
parent | 130e2c110174c2440782585b024d1ad5acd1f71b (diff) | |
download | FreeBSD-src-0303ee7475fd3127b90ef41175e21092ecb32c80.zip FreeBSD-src-0303ee7475fd3127b90ef41175e21092ecb32c80.tar.gz |
add diag msgs for frames discarded because the direction field is wrong
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_input.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_input.c b/sys/net80211/ieee80211_input.c index afd9e0e..f804519c 100644 --- a/sys/net80211/ieee80211_input.c +++ b/sys/net80211/ieee80211_input.c @@ -297,6 +297,8 @@ ieee80211_input(struct ieee80211com *ic, struct mbuf *m, switch (ic->ic_opmode) { case IEEE80211_M_STA: if (dir != IEEE80211_FC1_DIR_FROMDS) { + IEEE80211_DISCARD(ic, IEEE80211_MSG_INPUT, + wh, "data", "%s", "unknown dir 0x%x", dir); ic->ic_stats.is_rx_wrongdir++; goto out; } @@ -318,6 +320,8 @@ ieee80211_input(struct ieee80211com *ic, struct mbuf *m, case IEEE80211_M_IBSS: case IEEE80211_M_AHDEMO: if (dir != IEEE80211_FC1_DIR_NODS) { + IEEE80211_DISCARD(ic, IEEE80211_MSG_INPUT, + wh, "data", "%s", "unknown dir 0x%x", dir); ic->ic_stats.is_rx_wrongdir++; goto out; } @@ -325,6 +329,8 @@ ieee80211_input(struct ieee80211com *ic, struct mbuf *m, break; case IEEE80211_M_HOSTAP: if (dir != IEEE80211_FC1_DIR_TODS) { + IEEE80211_DISCARD(ic, IEEE80211_MSG_INPUT, + wh, "data", "%s", "unknown dir 0x%x", dir); ic->ic_stats.is_rx_wrongdir++; goto out; } @@ -477,6 +483,8 @@ ieee80211_input(struct ieee80211com *ic, struct mbuf *m, case IEEE80211_FC0_TYPE_MGT: IEEE80211_NODE_STAT(ni, rx_mgmt); if (dir != IEEE80211_FC1_DIR_NODS) { + IEEE80211_DISCARD(ic, IEEE80211_MSG_INPUT, + wh, "data", "%s", "unknown dir 0x%x", dir); ic->ic_stats.is_rx_wrongdir++; goto err; } |