correctly init v_ralen and v_maxra
[unix-history] / usr / src / sys / kern / uipc_proto.c
CommitLineData
f406ae69 1/*-
ec54f0cc
KB
2 * Copyright (c) 1982, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
da7c5cc6 4 *
f406ae69 5 * %sccs.include.redist.c%
5b519e94 6 *
ec54f0cc 7 * @(#)uipc_proto.c 8.1 (Berkeley) %G%
da7c5cc6 8 */
07d8f161 9
38a01dbe
KB
10#include <sys/param.h>
11#include <sys/socket.h>
12#include <sys/protosw.h>
13#include <sys/domain.h>
14#include <sys/mbuf.h>
07d8f161 15
d0e67d5f 16/*
a5eafe8a 17 * Definitions of protocols supported in the UNIX domain.
d0e67d5f
BJ
18 */
19
2d7cf659
KS
20int uipc_usrreq(), raw_usrreq();
21void raw_init(),raw_input(),raw_ctlinput();
261a8548 22extern struct domain unixdomain; /* or at least forward */
8f4851aa 23
a5eafe8a 24struct protosw unixsw[] = {
430b56ec 25{ SOCK_STREAM, &unixdomain, 0, PR_CONNREQUIRED|PR_WANTRCVD|PR_RIGHTS,
07d8f161 26 0, 0, 0, 0,
a5eafe8a 27 uipc_usrreq,
07d8f161 28 0, 0, 0, 0,
cc15ab5d 29},
261a8548 30{ SOCK_DGRAM, &unixdomain, 0, PR_ATOMIC|PR_ADDR|PR_RIGHTS,
07d8f161 31 0, 0, 0, 0,
a5eafe8a 32 uipc_usrreq,
cc15ab5d
BJ
33 0, 0, 0, 0,
34},
8f4851aa 35{ 0, 0, 0, 0,
0649e349 36 raw_input, 0, raw_ctlinput, 0,
8f4851aa
BJ
37 raw_usrreq,
38 raw_init, 0, 0, 0,
8f4851aa 39}
d0e67d5f 40};
cc15ab5d 41
261a8548
MK
42int unp_externalize(), unp_dispose();
43
a5eafe8a 44struct domain unixdomain =
261a8548
MK
45 { AF_UNIX, "unix", 0, unp_externalize, unp_dispose,
46 unixsw, &unixsw[sizeof(unixsw)/sizeof(unixsw[0])] };