o add missing 802.3 bpf tap

o add 802.11 bpf tap to output path now that it's removed from ieee80211_encap
This commit is contained in:
sam 2009-04-26 21:21:48 +00:00
parent 7ecbe20bd8
commit 76742bacd9

View File

@ -277,6 +277,9 @@ ieee80211_dwds_mcast(struct ieee80211vap *vap0, struct mbuf *m)
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 *vap0, struct mbuf *m)
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 */