Date: Tue, 30 Jun 2009 19:44:23 +0000 (UTC) From: Rui Paulo <rpaulo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r195210 - projects/mesh11s/sys/net80211 Message-ID: <200906301944.n5UJiNZX090642@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rpaulo Date: Tue Jun 30 19:44:23 2009 New Revision: 195210 URL: http://svn.freebsd.org/changeset/base/195210 Log: Add some stats to mesh_forward(). Sponsored by: The FreeBSD Foundation Modified: projects/mesh11s/sys/net80211/ieee80211_mesh.c Modified: projects/mesh11s/sys/net80211/ieee80211_mesh.c ============================================================================== --- projects/mesh11s/sys/net80211/ieee80211_mesh.c Tue Jun 30 19:39:17 2009 (r195209) +++ projects/mesh11s/sys/net80211/ieee80211_mesh.c Tue Jun 30 19:44:23 2009 (r195210) @@ -351,14 +351,18 @@ mesh_forward(struct ieee80211vap *vap, s } mcopy = m_dup(m, M_DONTWAIT); if (mcopy == NULL) { - /* XXX stat+msg? */ + IEEE80211_NOTE_FRAME(vap, IEEE80211_MSG_MESH, wh, + "%s", "frame not fwd'd, cannot dup"); + vap->iv_stats.is_mesh_fwd_nobuf++; ifp->if_oerrors++; return; } mcopy = m_pullup(mcopy, ieee80211_hdrspace(ic, wh) + sizeof(struct ieee80211_meshcntl)); if (mcopy == NULL) { - /* XXX stat+msg? */ + IEEE80211_NOTE_FRAME(vap, IEEE80211_MSG_MESH, wh, + "%s", "frame not fwd'd, too short"); + vap->iv_stats.is_mesh_fwd_tooshort++; ifp->if_oerrors++; m_freem(mcopy); return; @@ -380,7 +384,9 @@ mesh_forward(struct ieee80211vap *vap, s } else { ni = ieee80211_hwmp_find_txnode(vap, whcopy->i_addr3); if (ni == NULL) { - /* XXX stat+msg? */ + IEEE80211_NOTE_FRAME(vap, IEEE80211_MSG_MESH, wh, + "%s", "frame not fwd'd, no path"); + vap->iv_stats.is_mesh_fwd_nopath++; m_freem(mcopy); return; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906301944.n5UJiNZX090642>