summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_domain.c
diff options
context:
space:
mode:
authorJoerg Goltermann <gollo@cvs.openbsd.org>2008-09-16 15:48:14 +0000
committerJoerg Goltermann <gollo@cvs.openbsd.org>2008-09-16 15:48:14 +0000
commit1f2d6a5fa47ce5770dfea60d2353c1571104bb74 (patch)
tree1c83a7b4dc133b0026c420abf1a851b9bf3eac42 /sys/kern/uipc_domain.c
parent51fd863ee46944659e499e71c2c3f710bf1277a0 (diff)
netstat statistics for pflow(4) via pseudo family
ok cluadio@ henning@
Diffstat (limited to 'sys/kern/uipc_domain.c')
-rw-r--r--sys/kern/uipc_domain.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/kern/uipc_domain.c b/sys/kern/uipc_domain.c
index c991d601566..b7ad9e7e5a7 100644
--- a/sys/kern/uipc_domain.c
+++ b/sys/kern/uipc_domain.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_domain.c,v 1.27 2008/04/23 10:55:14 norby Exp $ */
+/* $OpenBSD: uipc_domain.c,v 1.28 2008/09/16 15:48:12 gollo Exp $ */
/* $NetBSD: uipc_domain.c,v 1.14 1996/02/09 19:00:44 christos Exp $ */
/*
@@ -47,6 +47,7 @@
#include "bluetooth.h"
#include "bpfilter.h"
+#include "pflow.h"
struct domain *domains;
@@ -202,6 +203,11 @@ net_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
return (bpf_sysctl(name + 1, namelen - 1, oldp, oldlenp,
newp, newlen));
#endif
+#if NPFLOW > 0
+ if (family == PF_PFLOW)
+ return (pflow_sysctl(name + 1, namelen - 1, oldp, oldlenp,
+ newp, newlen));
+#endif
dp = pffinddomain(family);
if (dp == NULL)
return (ENOPROTOOPT);