From 90f8f6d8837d80a3e894a919317b4d645691af8a Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Sun, 26 Apr 2009 21:21:48 +0000 Subject: [PATCH] o add missing 802.3 bpf tap o add 802.11 bpf tap to output path now that it's removed from ieee80211_encap --- sys/net80211/ieee80211_wds.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/net80211/ieee80211_wds.c b/sys/net80211/ieee80211_wds.c index 27b995a00567..2c24e40d4398 100644 --- a/sys/net80211/ieee80211_wds.c +++ b/sys/net80211/ieee80211_wds.c @@ -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 */