aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/un.h
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1998-05-15 20:11:40 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1998-05-15 20:11:40 +0000
commit98271db4d5d00999e63492d6550727afc907e54c (patch)
treebc0add632f758bedefe2376aa377106fc29c7c20 /sys/sys/un.h
parenteb92a3476660337bff6b68d001390e77d47b208b (diff)
downloadsrc-98271db4d5d00999e63492d6550727afc907e54c.tar.gz
src-98271db4d5d00999e63492d6550727afc907e54c.zip
Convert socket structures to be type-stable and add a version number.
Define a parameter which indicates the maximum number of sockets in a system, and use this to size the zone allocators used for sockets and for certain PCBs. Convert PF_LOCAL PCB structures to be type-stable and add a version number. Define an external format for infomation about socket structures and use it in several places. Define a mechanism to get all PF_LOCAL and PF_INET PCB lists through sysctl(3) without blocking network interrupts for an unreasonable length of time. This probably still has some bugs and/or race conditions, but it seems to work well enough on my machines. It is now possible for `netstat' to get almost all of its information via the sysctl(3) interface rather than reading kmem (changes to follow).
Notes
Notes: svn path=/head/; revision=36079
Diffstat (limited to 'sys/sys/un.h')
-rw-r--r--sys/sys/un.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/sys/un.h b/sys/sys/un.h
index 3d7d7ede9131..d0c0af9e4e04 100644
--- a/sys/sys/un.h
+++ b/sys/sys/un.h
@@ -31,16 +31,12 @@
* SUCH DAMAGE.
*
* @(#)un.h 8.3 (Berkeley) 2/19/95
- * $Id: un.h,v 1.12 1997/04/27 20:01:29 wollman Exp $
+ * $Id: un.h,v 1.13 1997/08/16 19:16:15 wollman Exp $
*/
#ifndef _SYS_UN_H_
#define _SYS_UN_H_
-#ifdef KERNEL
-#include <sys/unpcb.h>
-#endif /* KERNEL */
-
/*
* Definitions for UNIX IPC domain.
*/
@@ -59,6 +55,7 @@ int uipc_usrreq __P((struct socket *so, int req, struct mbuf *m,
int unp_connect2 __P((struct socket *so, struct socket *so2));
void unp_dispose __P((struct mbuf *m));
int unp_externalize __P((struct mbuf *rights));
+void unp_init __P((void));
extern struct pr_usrreqs uipc_usrreqs;
#else /* !KERNEL */