Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Sep 2012 21:06:54 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r240214 - head/sys/kern
Message-ID:  <201209072106.q87L6tWp063351@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 },
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209072106.q87L6tWp063351>