summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_proto.c
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2011-07-06 06:31:39 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2011-07-06 06:31:39 +0000
commitc06c77b97201065f28ea4812b948f8c5fed08d0b (patch)
tree1cdbe31f849595a1ca6b77ab83cdda1d6f81c6dd /sys/kern/uipc_proto.c
parent2f77107f85bab09e308072c4ba9364a7d9965af6 (diff)
Implement SOCK_SEQPACKET for UNIX sockets.
ok claudio@
Diffstat (limited to 'sys/kern/uipc_proto.c')
-rw-r--r--sys/kern/uipc_proto.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/kern/uipc_proto.c b/sys/kern/uipc_proto.c
index 7619f070623..6c99536f6ed 100644
--- a/sys/kern/uipc_proto.c
+++ b/sys/kern/uipc_proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_proto.c,v 1.5 2011/04/05 19:54:36 jasper Exp $ */
+/* $OpenBSD: uipc_proto.c,v 1.6 2011/07/06 06:31:38 matthew Exp $ */
/* $NetBSD: uipc_proto.c,v 1.8 1996/02/13 21:10:47 christos Exp $ */
/*-
@@ -55,6 +55,11 @@ struct protosw unixsw[] = {
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,