summaryrefslogtreecommitdiffstats
path: root/sys/net80211
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2006-08-10 05:37:49 +0000
committersam <sam@FreeBSD.org>2006-08-10 05:37:49 +0000
commit1d4a6e38d2d7cf1e6ffe65c407d95d154c8c445e (patch)
treee585f0ba9504298f28ce200826244d73c4f64a40 /sys/net80211
parentbc546843d7858048c8c76953196a1dc6002131a0 (diff)
downloadFreeBSD-src-1d4a6e38d2d7cf1e6ffe65c407d95d154c8c445e.zip
FreeBSD-src-1d4a6e38d2d7cf1e6ffe65c407d95d154c8c445e.tar.gz
add per-sta ucast/mcast stats
MFC after: 1 week
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_output.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c
index c91e389..73e11fb 100644
--- a/sys/net80211/ieee80211_output.c
+++ b/sys/net80211/ieee80211_output.c
@@ -767,6 +767,10 @@ ieee80211_encap(struct ieee80211com *ic, struct mbuf *m,
}
IEEE80211_NODE_STAT(ni, tx_data);
+ if (IEEE80211_IS_MULTICAST(wh->i_addr1))
+ IEEE80211_NODE_STAT(ni, tx_mcast);
+ else
+ IEEE80211_NODE_STAT(ni, tx_ucast);
IEEE80211_NODE_STAT_ADD(ni, tx_bytes, datalen);
return m;
OpenPOWER on IntegriCloud