Add PR_CONNREQUIRED for SOCK_STREAM sockets using SCTP.

This is required to signal connetion setup on non-blocking sockets
via becoming writable. This still allows for implicit connection
setup.

MFC after:	1 week
This commit is contained in:
Michael Tuexen 2016-05-30 18:24:23 +00:00
parent 2fed5061db
commit 3d48d25be7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301000
2 changed files with 2 additions and 2 deletions

View File

@ -176,7 +176,7 @@ struct protosw inetsw[] = {
.pr_type = SOCK_STREAM,
.pr_domain = &inetdomain,
.pr_protocol = IPPROTO_SCTP,
.pr_flags = PR_WANTRCVD,
.pr_flags = PR_CONNREQUIRED|PR_WANTRCVD,
.pr_input = sctp_input,
.pr_ctlinput = sctp_ctlinput,
.pr_ctloutput = sctp_ctloutput,

View File

@ -207,7 +207,7 @@ struct protosw inet6sw[] = {
.pr_type = SOCK_STREAM,
.pr_domain = &inet6domain,
.pr_protocol = IPPROTO_SCTP,
.pr_flags = PR_WANTRCVD,
.pr_flags = PR_CONNREQUIRED|PR_WANTRCVD,
.pr_input = sctp6_input,
.pr_ctlinput = sctp6_ctlinput,
.pr_ctloutput = sctp_ctloutput,