svn commit: r260598 - stable/9/sys/kern
John Baldwin
jhb at FreeBSD.org
Mon Jan 13 18:57:31 UTC 2014
Author: jhb
Date: Mon Jan 13 18:57:30 2014
New Revision: 260598
URL: http://svnweb.freebsd.org/changeset/base/260598
Log:
MFC 243152,255478: Two SOCK_SEQPACKET fixes:
- Update comment.
- Provide pr_ctloutput method for AF_LOCAL/SOCK_SEQPACKET sockets.
Modified:
stable/9/sys/kern/uipc_usrreq.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/kern/uipc_usrreq.c
==============================================================================
--- stable/9/sys/kern/uipc_usrreq.c Mon Jan 13 17:14:10 2014 (r260597)
+++ stable/9/sys/kern/uipc_usrreq.c Mon Jan 13 18:57:30 2014 (r260598)
@@ -320,6 +320,7 @@ static struct protosw localsw[] = {
*/
.pr_flags = PR_ADDR|PR_ATOMIC|PR_CONNREQUIRED|PR_WANTRCVD|
PR_RIGHTS,
+ .pr_ctloutput = &uipc_ctloutput,
.pr_usrreqs = &uipc_usrreqs_seqpacket,
},
};
@@ -936,7 +937,8 @@ uipc_send(struct socket *so, int flags,
SOCKBUF_LOCK(&so2->so_rcv);
if (unp2->unp_flags & UNP_WANTCRED) {
/*
- * Credentials are passed only once on SOCK_STREAM.
+ * Credentials are passed only once on SOCK_STREAM
+ * and SOCK_SEQPACKET.
*/
unp2->unp_flags &= ~UNP_WANTCRED;
control = unp_addsockcred(td, control);
More information about the svn-src-stable-9
mailing list