1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #include <sys/param.h>
- #include <sys/socket.h>
- #include <sys/protosw.h>
- #include <sys/domain.h>
- #include <sys/mbuf.h>
- #include <sys/unpcb.h>
- #include <sys/socketvar.h>
-
- #include <net/raw_cb.h>
- extern struct domain unixdomain;
- struct protosw unixsw[] = {
- { SOCK_STREAM, &unixdomain, PF_LOCAL, PR_CONNREQUIRED|PR_WANTRCVD|PR_RIGHTS,
- 0, 0, 0, 0,
- uipc_usrreq,
- 0, 0, 0, 0,
- },
- { SOCK_SEQPACKET,&unixdomain, PF_LOCAL, PR_ATOMIC|PR_CONNREQUIRED|PR_WANTRCVD|PR_RIGHTS,
- 0, 0, 0, 0,
- uipc_usrreq,
- 0, 0, 0, 0,
- },
- { SOCK_DGRAM, &unixdomain, PF_LOCAL, PR_ATOMIC|PR_ADDR|PR_RIGHTS,
- 0, 0, 0, 0,
- uipc_usrreq,
- 0, 0, 0, 0,
- },
- { 0, 0, 0, 0,
- raw_input, 0, raw_ctlinput, 0,
- raw_usrreq,
- raw_init, 0, 0, 0,
- }
- };
- struct domain unixdomain =
- { AF_LOCAL, "unix", 0, unp_externalize, unp_dispose,
- unixsw, &unixsw[nitems(unixsw)] };
|