summaryrefslogtreecommitdiffstats
path: root/sys/dev/sr/if_sr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/sr/if_sr.c')
-rw-r--r--sys/dev/sr/if_sr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/sr/if_sr.c b/sys/dev/sr/if_sr.c
index 0552b5a..18b5511 100644
--- a/sys/dev/sr/if_sr.c
+++ b/sys/dev/sr/if_sr.c
@@ -868,8 +868,7 @@ top_srstart:
#endif
#ifndef NETGRAPH
- if (ifp->if_bpf)
- bpf_mtap(ifp, mtx);
+ BPF_MTAP(ifp, mtx);
#else /* NETGRAPH */
sc->outbytes += len;
#endif /* NETGRAPH */
@@ -2126,8 +2125,7 @@ sr_get_packets(struct sr_softc *sc)
sr_copy_rxbuf(m, sc, len); /* copy from DPRAM */
#ifndef NETGRAPH
- if (ifp->if_bpf)
- bpf_mtap(ifp, m);
+ BPF_MTAP(ifp, m);
#if BUGGY > 3
{
OpenPOWER on IntegriCloud