summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2016-03-29 13:39:54 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2016-03-29 13:39:54 +0000
commitb02fb201875330364b210237c4cc192bc1d52ed2 (patch)
treecda3a3d4f01d049e8a9a853b22fc21581ec267be /sys/arch
parent7eab59b5befe6032a3aea3badbbfe4311e2d726a (diff)
make the ie(4)s bpf_mtap_ether outgoing packets like all the other drivers
ok mpi@ claudio@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc/dev/if_ie.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/sys/arch/sparc/dev/if_ie.c b/sys/arch/sparc/dev/if_ie.c
index 3dd9b9d18f7..0ab5e4c503a 100644
--- a/sys/arch/sparc/dev/if_ie.c
+++ b/sys/arch/sparc/dev/if_ie.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ie.c,v 1.62 2016/03/16 15:41:10 krw Exp $ */
+/* $OpenBSD: if_ie.c,v 1.63 2016/03/29 13:39:53 dlg Exp $ */
/* $NetBSD: if_ie.c,v 1.33 1997/07/29 17:55:38 fair Exp $ */
/*-
@@ -998,19 +998,6 @@ static __inline void
iexmit(sc)
struct ie_softc *sc;
{
-
-#if NBPFILTER > 0
- /*
- * If BPF is listening on this interface, let it see the packet before
- * we push it on the wire.
- */
- if (sc->sc_arpcom.ac_if.if_bpf)
- bpf_tap(sc->sc_arpcom.ac_if.if_bpf,
- sc->xmit_cbuffs[sc->xctail],
- SWAP(sc->xmit_buffs[sc->xctail]->ie_xmit_flags),
- BPF_DIRECTION_OUT);
-#endif
-
sc->xmit_buffs[sc->xctail]->ie_xmit_flags |= IE_XMIT_LAST;
sc->xmit_buffs[sc->xctail]->ie_xmit_next = SWAP(0xffff);
ST_24(sc->xmit_buffs[sc->xctail]->ie_xmit_buf,
@@ -1315,6 +1302,11 @@ iestart(ifp)
if (!m)
break;
+#if NBPFILTER > 0
+ if (ifp->if_bpf)
+ bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT);
+#endif
+
len = 0;
buffer = sc->xmit_cbuffs[sc->xchead];