Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jun 2009 00:04:10 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r193287 - head/sys/net80211
Message-ID:  <200906020004.n5204AYY096634@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906020004.n5204AYY096634>