Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/uipc_socket.c
Show First 20 Lines • Show All 686 Lines • ▼ Show 20 Lines | if (connstatus) { | ||||
TAILQ_INSERT_TAIL(&head->sol_incomp, so, so_list); | TAILQ_INSERT_TAIL(&head->sol_incomp, so, so_list); | ||||
so->so_qstate = SQ_INCOMP; | so->so_qstate = SQ_INCOMP; | ||||
head->sol_incqlen++; | head->sol_incqlen++; | ||||
SOLISTEN_UNLOCK(head); | SOLISTEN_UNLOCK(head); | ||||
} | } | ||||
return (so); | return (so); | ||||
} | } | ||||
#ifdef SCTP | #if defined(SCTP) || defined(SCTP_SUPPORT) | ||||
/* | /* | ||||
* Socket part of sctp_peeloff(). Detach a new socket from an | * Socket part of sctp_peeloff(). Detach a new socket from an | ||||
* association. The new socket is returned with a reference. | * association. The new socket is returned with a reference. | ||||
*/ | */ | ||||
struct socket * | struct socket * | ||||
sopeeloff(struct socket *head) | sopeeloff(struct socket *head) | ||||
{ | { | ||||
struct socket *so; | struct socket *so; | ||||
▲ Show 20 Lines • Show All 3,549 Lines • Show Last 20 Lines |