svn commit: r241993 - stable/9/sys/kern

Gleb Smirnoff glebius at FreeBSD.org
Wed Oct 24 10:14:22 UTC 2012


Author: glebius
Date: Wed Oct 24 10:14:21 2012
New Revision: 241993
URL: http://svn.freebsd.org/changeset/base/241993

Log:
  Merge r240214 from head:
    Supply the pr_ctloutput method for local datagram sockets,
    so that setsockopt() and getsockopt() work on them.
  
    This makes 'tools/regression/sockets/unix_cmsg -t dgram'
    more successful.

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	Wed Oct 24 09:53:34 2012	(r241992)
+++ stable/9/sys/kern/uipc_usrreq.c	Wed Oct 24 10:14:21 2012	(r241993)
@@ -305,6 +305,7 @@ static struct protosw localsw[] = {
 	.pr_type =		SOCK_DGRAM,
 	.pr_domain =		&localdomain,
 	.pr_flags =		PR_ATOMIC|PR_ADDR|PR_RIGHTS,
+	.pr_ctloutput =		&uipc_ctloutput,
 	.pr_usrreqs =		&uipc_usrreqs_dgram
 },
 {


More information about the svn-src-stable-9 mailing list