diff options
author | sam <sam@FreeBSD.org> | 2006-06-02 23:14:40 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2006-06-02 23:14:40 +0000 |
commit | c35d17efe0d0b7b4ab064b041e890a7e341ab5ed (patch) | |
tree | 24469a0066d7f45b8c379dc7901a2dbfe0aab18d /sys/dev | |
parent | f018362c4adf765452a6cca57e43fb6f2f58b2ba (diff) | |
download | FreeBSD-src-c35d17efe0d0b7b4ab064b041e890a7e341ab5ed.zip FreeBSD-src-c35d17efe0d0b7b4ab064b041e890a7e341ab5ed.tar.gz |
add missed calls to bpf_peers_present
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ath/if_ath.c | 2 | ||||
-rw-r--r-- | sys/dev/awi/awi.c | 5 | ||||
-rw-r--r-- | sys/dev/gem/if_gem.c | 3 | ||||
-rw-r--r-- | sys/dev/ipw/if_ipw.c | 2 | ||||
-rw-r--r-- | sys/dev/iwi/if_iwi.c | 2 | ||||
-rw-r--r-- | sys/dev/lmc/if_lmc.h | 2 | ||||
-rw-r--r-- | sys/dev/ral/rt2661.c | 4 | ||||
-rw-r--r-- | sys/dev/usb/if_ural.c | 4 |
8 files changed, 11 insertions, 13 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 09d5976..aeee905 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -3635,7 +3635,7 @@ ath_tx_start(struct ath_softc *sc, struct ieee80211_node *ni, struct ath_buf *bf ieee80211_dump_pkt(mtod(m0, caddr_t), m0->m_len, sc->sc_hwmap[txrate].ieeerate, -1); - if (ic->ic_rawbpf) + if (bpf_peers_present(ic->ic_rawbpf)) bpf_mtap(ic->ic_rawbpf, m0); if (bpf_peers_present(sc->sc_drvbpf)) { u_int64_t tsf = ath_hal_gettsf64(ah); diff --git a/sys/dev/awi/awi.c b/sys/dev/awi/awi.c index 6dd75bf..6b14f46 100644 --- a/sys/dev/awi/awi.c +++ b/sys/dev/awi/awi.c @@ -796,8 +796,7 @@ awi_start(struct ifnet *ifp) } IFQ_DEQUEUE(&ifp->if_snd, m0); #if NBPFILTER > 0 - if (ifp->if_bpf) - bpf_mtap(ifp->if_bpf, m0); + BPF_MTAP(ifp, m0); #endif if ((ifp->if_flags & IFF_LINK0) || sc->sc_adhoc_ap) m0 = awi_ether_encap(sc, m0); @@ -839,7 +838,7 @@ awi_start(struct ifnet *ifp) ifp->if_opackets++; } #if NBPFILTER > 0 - if (ic->ic_rawbpf) + if (bpf_peers_present(ic->ic_rawbpf)) bpf_mtap(ic->ic_rawbpf, m0); #endif if (dowep) { diff --git a/sys/dev/gem/if_gem.c b/sys/dev/gem/if_gem.c index 4ffd71e..3efe0ed 100644 --- a/sys/dev/gem/if_gem.c +++ b/sys/dev/gem/if_gem.c @@ -1205,8 +1205,7 @@ gem_start_locked(ifp) bus_space_write_4(sc->sc_bustag, sc->sc_h, GEM_TX_KICK, sc->sc_txnext); - if (ifp->if_bpf != NULL) - bpf_mtap(ifp->if_bpf, m0); + BPF_MTAP(ifp, m0); } while (1); if (txmfail == -1 || sc->sc_txfree == 0) { diff --git a/sys/dev/ipw/if_ipw.c b/sys/dev/ipw/if_ipw.c index c7da03e..bdde37c 100644 --- a/sys/dev/ipw/if_ipw.c +++ b/sys/dev/ipw/if_ipw.c @@ -1495,7 +1495,7 @@ ipw_start(struct ifnet *ifp) continue; } - if (ic->ic_rawbpf != NULL) + if (bpf_peers_present(ic->ic_rawbpf)) bpf_mtap(ic->ic_rawbpf, m0); if (ipw_tx_start(ifp, m0, ni) != 0) { diff --git a/sys/dev/iwi/if_iwi.c b/sys/dev/iwi/if_iwi.c index 3079fb4..5ede5a8 100644 --- a/sys/dev/iwi/if_iwi.c +++ b/sys/dev/iwi/if_iwi.c @@ -1984,7 +1984,7 @@ iwi_start(struct ifnet *ifp) continue; } - if (ic->ic_rawbpf != NULL) + if (bpf_peers_present(ic->ic_rawbpf)) bpf_mtap(ic->ic_rawbpf, m0); if (iwi_tx_start(ifp, m0, ni, ac) != 0) { diff --git a/sys/dev/lmc/if_lmc.h b/sys/dev/lmc/if_lmc.h index 734b768..af901f7 100644 --- a/sys/dev/lmc/if_lmc.h +++ b/sys/dev/lmc/if_lmc.h @@ -1242,7 +1242,7 @@ struct softc # define DMA_LOAD(map, addr, size) bus_dmamap_load(ring->tag, map, addr, size, fbsd_dmamap_load, ring, 0) # if (NBPFILTER != 0) # if (__FreeBSD_version >= 500000) -# define LMC_BPF_MTAP(mbuf) if (sc->ifp->if_bpf) bpf_mtap(sc->ifp->if_bpf, mbuf) +# define LMC_BPF_MTAP(mbuf) BPF_MTAP(sc->ifp, mbuf) # else /* FreeBSD-4 */ # define LMC_BPF_MTAP(mbuf) if (sc->ifp->if_bpf) bpf_mtap(sc->ifp, mbuf) # endif diff --git a/sys/dev/ral/rt2661.c b/sys/dev/ral/rt2661.c index d40e906..408a6f2 100644 --- a/sys/dev/ral/rt2661.c +++ b/sys/dev/ral/rt2661.c @@ -1782,7 +1782,7 @@ rt2661_start(struct ifnet *ifp) ni = (struct ieee80211_node *)m0->m_pkthdr.rcvif; m0->m_pkthdr.rcvif = NULL; - if (ic->ic_rawbpf != NULL) + if (bpf_peers_present(ic->ic_rawbpf)) bpf_mtap(ic->ic_rawbpf, m0); if (rt2661_tx_mgt(sc, m0, ni) != 0) @@ -1836,7 +1836,7 @@ rt2661_start(struct ifnet *ifp) continue; } - if (ic->ic_rawbpf != NULL) + if (bpf_peers_present(ic->ic_rawbpf)) bpf_mtap(ic->ic_rawbpf, m0); if (rt2661_tx_data(sc, m0, ni, ac) != 0) { diff --git a/sys/dev/usb/if_ural.c b/sys/dev/usb/if_ural.c index 5a92e2c..1a4bdec 100644 --- a/sys/dev/usb/if_ural.c +++ b/sys/dev/usb/if_ural.c @@ -1355,7 +1355,7 @@ ural_start(struct ifnet *ifp) ni = (struct ieee80211_node *)m0->m_pkthdr.rcvif; m0->m_pkthdr.rcvif = NULL; - if (ic->ic_rawbpf != NULL) + if (bpf_peers_present(ic->ic_rawbpf)) bpf_mtap(ic->ic_rawbpf, m0); if (ural_tx_mgt(sc, m0, ni) != 0) @@ -1391,7 +1391,7 @@ ural_start(struct ifnet *ifp) continue; } - if (ic->ic_rawbpf != NULL) + if (bpf_peers_present(ic->ic_rawbpf)) bpf_mtap(ic->ic_rawbpf, m0); if (ural_tx_data(sc, m0, ni) != 0) { |