xref: /csrg-svn/sys/kern/uipc_proto.c (revision 9009)
1*9009Sroot /*	uipc_proto.c	4.27	82/11/02	*/
24825Swnj 
34787Swnj #include "../h/param.h"
44825Swnj #include "../h/socket.h"
54825Swnj #include "../h/protosw.h"
6*9009Sroot #include "../h/domain.h"
74825Swnj #include "../h/mbuf.h"
84825Swnj 
94787Swnj /*
10*9009Sroot  * Definitions of protocols supported in the UNIX domain.
114787Swnj  */
124787Swnj 
13*9009Sroot int	uipc_usrreq();
146585Ssam int	raw_init(),raw_usrreq(),raw_input(),raw_ctlinput();
155621Swnj 
16*9009Sroot struct protosw unixsw[] = {
17*9009Sroot { SOCK_STREAM,	PF_UNIX,	0,		PR_CONNREQUIRED|PR_WANTRCVD,
184825Swnj   0,		0,		0,		0,
19*9009Sroot   uipc_usrreq,
204825Swnj   0,		0,		0,		0,
214890Swnj },
225149Swnj { SOCK_DGRAM,	PF_UNIX,	0,		PR_ATOMIC|PR_ADDR,
234825Swnj   0,		0,		0,		0,
24*9009Sroot   uipc_usrreq,
254825Swnj   0,		0,		0,		0,
264890Swnj },
274787Swnj { 0,		0,		0,		0,
286585Ssam   raw_input,	0,		raw_ctlinput,	0,
295621Swnj   raw_usrreq,
305621Swnj   raw_init,	0,		0,		0,
314890Swnj }
324787Swnj };
334787Swnj 
34*9009Sroot struct domain unixdomain =
35*9009Sroot     { AF_UNIX, "unix", unixsw, &unixsw[sizeof(unixsw)/sizeof(unixsw[0])] };
36