Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/uipc_usrreq.c
Show First 20 Lines • Show All 1,464 Lines • ▼ Show 20 Lines | |||||
static int | static int | ||||
uipc_ctloutput(struct socket *so, struct sockopt *sopt) | uipc_ctloutput(struct socket *so, struct sockopt *sopt) | ||||
{ | { | ||||
struct unpcb *unp; | struct unpcb *unp; | ||||
struct xucred xu; | struct xucred xu; | ||||
int error, optval; | int error, optval; | ||||
if (sopt->sopt_level != 0) | if (sopt->sopt_level != SOL_LOCAL) | ||||
return (EINVAL); | return (EINVAL); | ||||
unp = sotounpcb(so); | unp = sotounpcb(so); | ||||
KASSERT(unp != NULL, ("uipc_ctloutput: unp == NULL")); | KASSERT(unp != NULL, ("uipc_ctloutput: unp == NULL")); | ||||
error = 0; | error = 0; | ||||
switch (sopt->sopt_dir) { | switch (sopt->sopt_dir) { | ||||
case SOPT_GET: | case SOPT_GET: | ||||
switch (sopt->sopt_name) { | switch (sopt->sopt_name) { | ||||
▲ Show 20 Lines • Show All 1,492 Lines • Show Last 20 Lines |