Christian S.J. Peron wrote:
[snip]
Log:
Fix the following bpf(4) race condition which can result in a panic:
[snip]
This change causes panics in kernels that don't have device bpf present.
The attached patch fixes this.
--
Benno Rice
[EMAIL PROTECTED]
Index: bpf.h
===================================================================
RCS file: /home/ncvs/src/sys/net/bpf.h,v
retrieving revision 1.41
diff -u -r1.41 bpf.h
--- bpf.h 2 Jun 2006 19:59:32 -0000 1.41
+++ bpf.h 3 Jun 2006 04:31:10 -0000
@@ -630,7 +630,11 @@
bpf_peers_present(struct bpf_if *bpf)
{
+#if defined(DEV_BPF) || defined(NETGRAPH_BPF)
return !LIST_EMPTY(&bpf->bif_dlist);
+#else
+ return (0);
+#endif
}
#define BPF_TAP(_ifp,_pkt,_pktlen) do { \
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"