summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2004-02-24 21:43:57 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2004-02-24 21:43:57 +0000
commit4d6522e360a3bd08408dd444cb266f97602c8aea (patch)
treebcb1adbc419ce7ff0afccfd5f82e3242e84c8a1d /sys/kern
parentbfb169d07fee20a3444af8c5040902105d60c553 (diff)
sysctl knob for bpf tunables. some tips from canacar@
ok canacar@ deraadt@ mcbride@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/uipc_domain.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/kern/uipc_domain.c b/sys/kern/uipc_domain.c
index 285d37dc70b..74d52f8a2e8 100644
--- a/sys/kern/uipc_domain.c
+++ b/sys/kern/uipc_domain.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_domain.c,v 1.15 2003/06/02 23:28:06 millert Exp $ */
+/* $OpenBSD: uipc_domain.c,v 1.16 2004/02/24 21:43:55 tedu Exp $ */
/* $NetBSD: uipc_domain.c,v 1.14 1996/02/09 19:00:44 christos Exp $ */
/*
@@ -45,6 +45,8 @@
#include <sys/sysctl.h>
#include <sys/timeout.h>
+#include "bpfilter.h"
+
struct domain *domains;
void pffasttimo(void *);
@@ -207,6 +209,11 @@ net_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
for (dp = domains; dp; dp = dp->dom_next)
if (dp->dom_family == family)
goto found;
+#if NBPFILTER > 0
+ if (family == PF_BPF)
+ return (bpf_sysctl(name + 1, namelen - 1, oldp, oldlenp,
+ newp, newlen));
+#endif
return (ENOPROTOOPT);
found:
switch (family) {