diff options
author | wollman <wollman@FreeBSD.org> | 1997-02-24 20:30:58 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1997-02-24 20:30:58 +0000 |
commit | a6e3c2a3ced8d886e252170fd0fbc11aedf9a3e2 (patch) | |
tree | 7f9fda9e13141358225b618de039c262a753beaf /sys/kern/uipc_proto.c | |
parent | 139936b34a895520e9ee8b9a6d3f774754cdcc48 (diff) | |
download | FreeBSD-src-a6e3c2a3ced8d886e252170fd0fbc11aedf9a3e2.zip FreeBSD-src-a6e3c2a3ced8d886e252170fd0fbc11aedf9a3e2.tar.gz |
Create a new branch of the kernel MIB, kern.ipc, to store
all of the configurables and instrumentation related to
inter-process communication mechanisms. Some variables,
like mbuf statistics, are instrumented here for the first
time.
For mbuf statistics: also keep track of m_copym() and
m_pullup() failures, and provide for the user's inspection
the compiled-in values of MSIZE, MHLEN, MCLBYTES, and MINCLSIZE.
Diffstat (limited to 'sys/kern/uipc_proto.c')
-rw-r--r-- | sys/kern/uipc_proto.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/kern/uipc_proto.c b/sys/kern/uipc_proto.c index 35d0771..f652ce3 100644 --- a/sys/kern/uipc_proto.c +++ b/sys/kern/uipc_proto.c @@ -31,14 +31,16 @@ * SUCH DAMAGE. * * @(#)uipc_proto.c 8.1 (Berkeley) 6/10/93 - * $Id$ + * $Id: uipc_proto.c,v 1.9 1997/02/22 09:39:27 peter Exp $ */ #include <sys/param.h> -#include <sys/socket.h> -#include <sys/protosw.h> +#include <sys/kernel.h> #include <sys/domain.h> #include <sys/mbuf.h> +#include <sys/protosw.h> +#include <sys/socket.h> +#include <sys/sysctl.h> #include <sys/un.h> #include <net/raw_cb.h> @@ -68,3 +70,7 @@ static struct protosw localsw[] = { struct domain localdomain = { AF_LOCAL, "local", 0, unp_externalize, unp_dispose, localsw, &localsw[sizeof(localsw)/sizeof(localsw[0])] }; + +SYSCTL_NODE(_net, PF_LOCAL, local, CTLFLAG_RW, 0, "Local domain"); +SYSCTL_NODE(_net_local, SOCK_STREAM, stream, CTLFLAG_RW, 0, "SOCK_STREAM"); +SYSCTL_NODE(_net_local, SOCK_DGRAM, dgram, CTLFLAG_RW, 0, "SOCK_DGRAM"); |