Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet6/sctp6_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_inet6_sctp6, OID_AUTO, getcred, CTLTYPE_OPAQUE | CTLFLAG_RW, | SYSCTL_PROC(_net_inet6_sctp6, OID_AUTO, getcred, | ||||
0, 0, | CTLTYPE_OPAQUE | CTLFLAG_RW | CTLFLAG_NEEDGIANT, | ||||
sctp6_getcred, "S,ucred", "Get the ucred of a SCTP6 connection"); | 0, 0, sctp6_getcred, "S,ucred", | ||||
"Get the ucred of a SCTP6 connection"); | |||||
/* This is the same as the sctp_abort() could be made common */ | /* This is the same as the sctp_abort() could be made common */ | ||||
static void | static void | ||||
sctp6_abort(struct socket *so) | sctp6_abort(struct socket *so) | ||||
{ | { | ||||
struct sctp_inpcb *inp; | struct sctp_inpcb *inp; | ||||
uint32_t flags; | uint32_t flags; | ||||
Show All 12 Lines |