summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2015-08-23 10:01:28 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2015-08-23 10:01:28 +0000
commit458736aa1abd8594826e97f0f2a8ec8b8f3185fc (patch)
tree8fe6ff073957b262de257f1149dace17f471b680
parent4b5cf25c036f84c65a19a2d30665e47c14124759 (diff)
bpf+srp is blowing up, so its being backed out. bpf will need the big lock.
-rw-r--r--sys/net/if.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index f86ff78db91..946fd0460d0 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.360 2015/08/18 08:48:36 mpi Exp $ */
+/* $OpenBSD: if.c,v 1.361 2015/08/23 10:01:27 dlg Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -487,8 +487,10 @@ if_input(struct ifnet *ifp, struct mbuf_list *ml)
#if NBPFILTER > 0
if_bpf = ifp->if_bpf;
if (if_bpf) {
+ KERNEL_LOCK();
MBUF_LIST_FOREACH(ml, m)
bpf_mtap_ether(if_bpf, m, BPF_DIRECTION_IN);
+ KERNEL_UNLOCK();
}
#endif