Deleted Added
full compact
34c34
< * $Id: uipc_domain.c,v 1.17 1997/04/27 20:00:42 wollman Exp $
---
> * $Id: uipc_domain.c,v 1.18 1997/09/16 11:43:36 bde Exp $
42a43
> #include <sys/socketvar.h>
43a45
> #include <vm/vm_zone.h>
87a90,104
> * Before we do any setup, make sure to initialize the
> * zone allocator we get struct sockets from. The obvious
> * maximum number of sockets is `maxfiles', but it is possible
> * to have a socket without an open file (e.g., a connection waiting
> * to be accept(2)ed). Rather than think up and define a
> * better value, we just use nmbclusters, since that's what people
> * are told to increase first when the network runs out of memory.
> * Perhaps we should have two pools, one of unlimited size
> * for use during socreate(), and one ZONE_INTERRUPT pool for
> * use in sonewconn().
> */
> socket_zone = zinit("socket", sizeof(struct socket), maxsockets,
> ZONE_INTERRUPT, 0);
>
> /*
97,102d113
< /* - not in our sources
< #ifdef ISDN
< ADDDOMAIN(isdn);
< #endif
< */
<
107,111d117
< #ifdef PRU_OLDSTYLE
< /* See comments in uipc_socket2.c. */
< if (pr->pr_usrreqs == 0 && pr->pr_ousrreq)
< pr->pr_usrreqs = &pru_oldstyle;
< #else
116d121
< #endif
154c159
< splx( *savesplp);
---
> splx(*savesplp);