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.
This commit is contained in:
Gleb Smirnoff 2012-09-07 21:06:54 +00:00
parent ecbb462c38
commit aaf6343576
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240214

View File

@ -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
},
{