svn commit: r193287 - head/sys/net80211
Sam Leffler
sam at FreeBSD.org
Tue Jun 2 00:04:11 UTC 2009
Author: sam
Date: Tue Jun 2 00:04:10 2009
New Revision: 193287
URL: http://svn.freebsd.org/changeset/base/193287
Log:
count packets
Modified:
head/sys/net80211/ieee80211_monitor.c
Modified: head/sys/net80211/ieee80211_monitor.c
==============================================================================
--- head/sys/net80211/ieee80211_monitor.c Mon Jun 1 23:53:15 2009 (r193286)
+++ head/sys/net80211/ieee80211_monitor.c Tue Jun 2 00:04:10 2009 (r193287)
@@ -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);
More information about the svn-src-head
mailing list