From 13471c2b320ab936acd5f8edac945a6b159280ad Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Tue, 2 Jun 2009 00:04:10 +0000 Subject: [PATCH] count packets --- sys/net80211/ieee80211_monitor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/net80211/ieee80211_monitor.c b/sys/net80211/ieee80211_monitor.c index 3f2c847e26bd..e32408172fea 100644 --- a/sys/net80211/ieee80211_monitor.c +++ b/sys/net80211/ieee80211_monitor.c @@ -127,6 +127,9 @@ static int monitor_input(struct ieee80211_node *ni, struct mbuf *m, int rssi, int nf) { struct ieee80211vap *vap = ni->ni_vap; + struct ifnet *ifp = vap->iv_ifp; + + ifp->if_ipackets++; if (ieee80211_radiotap_active_vap(vap)) ieee80211_radiotap_rx(vap, m);