svn commit: r191542 - head/sys/net80211

Sam Leffler sam at FreeBSD.org
Sun Apr 26 21:21:58 UTC 2009


Author: sam
Date: Sun Apr 26 21:21:48 2009
New Revision: 191542
URL: http://svn.freebsd.org/changeset/base/191542

Log:
  o add missing 802.3 bpf tap
  o add 802.11 bpf tap to output path now that it's removed from ieee80211_encap

Modified:
  head/sys/net80211/ieee80211_wds.c

Modified: head/sys/net80211/ieee80211_wds.c
==============================================================================
--- head/sys/net80211/ieee80211_wds.c	Sun Apr 26 21:21:07 2009	(r191541)
+++ head/sys/net80211/ieee80211_wds.c	Sun Apr 26 21:21:48 2009	(r191542)
@@ -277,6 +277,9 @@ ieee80211_dwds_mcast(struct ieee80211vap
 			ieee80211_free_node(ni);
 			continue;
 		}
+
+		BPF_MTAP(ifp, m);		/* 802.3 tx */
+
 		/*
 		 * Encapsulate the packet in prep for transmission.
 		 */
@@ -289,6 +292,9 @@ ieee80211_dwds_mcast(struct ieee80211vap
 		mcopy->m_flags |= M_MCAST;
 		mcopy->m_pkthdr.rcvif = (void *) ni;
 
+		if (bpf_peers_present(vap->iv_rawbpf))
+			bpf_mtap(vap->iv_rawbpf, m);
+
 		err = parent->if_transmit(parent, mcopy);
 		if (err) {
 			/* NB: IFQ_HANDOFF reclaims mbuf */


More information about the svn-src-head mailing list