From dcdc75212ea93ef49c35e9da7312d35913163115 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Tue, 21 Oct 2008 19:39:44 +0000 Subject: Don't bounce transmitted packets up to the BPF listeners twice. ok jsg@ --- sys/dev/pci/if_jme.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/if_jme.c b/sys/dev/pci/if_jme.c index 2ad652a8a0d..b9805950387 100644 --- a/sys/dev/pci/if_jme.c +++ b/sys/dev/pci/if_jme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_jme.c,v 1.9 2008/10/20 19:40:54 brad Exp $ */ +/* $OpenBSD: if_jme.c,v 1.10 2008/10/21 19:39:43 brad Exp $ */ /*- * Copyright (c) 2008, Pyun YongHyeon * All rights reserved. @@ -1217,11 +1217,6 @@ jme_start(struct ifnet *ifp) if (m_head == NULL) break; -#if NBPFILTER > 0 - if (ifp->if_bpf != NULL) - bpf_mtap(ifp->if_bpf, m_head, BPF_DIRECTION_OUT); -#endif - /* * Pack the data into the transmit ring. If we * don't have room, set the OACTIVE flag and wait @@ -1237,11 +1232,11 @@ jme_start(struct ifnet *ifp) } enq++; +#if NBPFILTER > 0 /* * If there's a BPF listener, bounce a copy of this frame * to him. */ -#if NBPFILTER > 0 if (ifp->if_bpf != NULL) bpf_mtap(ifp->if_bpf, m_head, BPF_DIRECTION_OUT); #endif -- cgit v1.2.3