Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/sctp_usrreq.c
Show All 12 Lines | |||||
} | } | ||||
cru2x(inp->sctp_socket->so_cred, &xuc); | cru2x(inp->sctp_socket->so_cred, &xuc); | ||||
SCTP_INP_WUNLOCK(inp); | SCTP_INP_WUNLOCK(inp); | ||||
error = SYSCTL_OUT(req, &xuc, sizeof(struct xucred)); | error = SYSCTL_OUT(req, &xuc, sizeof(struct xucred)); | ||||
out: | out: | ||||
return (error); | return (error); | ||||
} | } | ||||
SYSCTL_PROC(_net_inet_sctp, OID_AUTO, getcred, CTLTYPE_OPAQUE | CTLFLAG_RW, | SYSCTL_PROC(_net_inet_sctp, OID_AUTO, getcred, | ||||
0, 0, sctp_getcred, "S,ucred", "Get the ucred of a SCTP connection"); | CTLTYPE_OPAQUE | CTLFLAG_RW | CTLFLAG_NEEDGIANT, | ||||
0, 0, sctp_getcred, "S,ucred", | |||||
"Get the ucred of a SCTP connection"); | |||||
#ifdef INET | #ifdef INET | ||||
static void | static void | ||||
sctp_abort(struct socket *so) | sctp_abort(struct socket *so) | ||||
{ | { | ||||
struct sctp_inpcb *inp; | struct sctp_inpcb *inp; | ||||
uint32_t flags; | uint32_t flags; | ||||
Show All 12 Lines |