svn commit: r240214 - head/sys/kern

Gleb Smirnoff glebius at FreeBSD.org
Fri Sep 7 21:06:55 UTC 2012


Author: glebius
Date: Fri Sep  7 21:06:54 2012
New Revision: 240214
URL: http://svn.freebsd.org/changeset/base/240214

Log:
  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:
  head/sys/kern/uipc_usrreq.c

Modified: head/sys/kern/uipc_usrreq.c
==============================================================================
--- head/sys/kern/uipc_usrreq.c	Fri Sep  7 20:57:36 2012	(r240213)
+++ head/sys/kern/uipc_usrreq.c	Fri Sep  7 21:06:54 2012	(r240214)
@@ -306,6 +306,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-head mailing list