diff options
author | 2008-10-21 19:39:43 +0000 | |
---|---|---|
committer | 2008-10-21 19:39:43 +0000 | |
commit | e398d03d1b86dd8a53a694f83660213a0acddd95 (patch) | |
tree | 211ec8c253a579d4a7c40ca844429623efb9ddfd | |
parent | add rcs id (diff) | |
download | wireguard-openbsd-e398d03d1b86dd8a53a694f83660213a0acddd95.tar.xz wireguard-openbsd-e398d03d1b86dd8a53a694f83660213a0acddd95.zip |
Don't bounce transmitted packets up to the BPF listeners twice.
ok jsg@
-rw-r--r-- | sys/dev/pci/if_jme.c | 9 |
1 files changed, 2 insertions, 7 deletions
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 <yongari@FreeBSD.org> * 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 |