Lines Matching refs:sctp_ep
963 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_BOUNDALL) {
994 if (prison_check_ip4(stcb->sctp_ep->ip_inp.inp.inp_cred,
1016 if (prison_check_ip6(stcb->sctp_ep->ip_inp.inp.inp_cred,
1074 LIST_FOREACH(laddr, &stcb->sctp_ep->sctp_addr_list, sctp_nxt_addr) {
1522 SCTP_INP_RLOCK(locked_tcb->sctp_ep);
1525 SCTP_INP_RUNLOCK(locked_tcb->sctp_ep);
1543 SCTP_INP_RLOCK(locked_tcb->sctp_ep);
1546 SCTP_INP_RUNLOCK(locked_tcb->sctp_ep);
1853 if (inp != stcb->sctp_ep) {
2507 SCTP_INP_RLOCK(stcb->sctp_ep);
2508 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) {
2509 SCTP_INP_RUNLOCK(stcb->sctp_ep);
2513 for (i = 0; i < stcb->sctp_ep->num_vrfs; i++) {
2514 if (stcb->sctp_ep->m_vrf_ids[i] == vrf_id) {
2518 if (i == stcb->sctp_ep->num_vrfs) {
2523 if (stcb->sctp_ep->def_vrf_id != vrf_id) {
2524 SCTP_INP_RUNLOCK(stcb->sctp_ep);
2529 SCTP_INP_RUNLOCK(stcb->sctp_ep);
2536 if (stcb->sctp_ep->sctp_lport != lport) {
2567 *inp_p = stcb->sctp_ep;
2576 *inp_p = stcb->sctp_ep;
2996 SCTP_OS_TIMER_INIT(&inp->sctp_ep.signature_change.timer);
2997 inp->sctp_ep.signature_change.type = SCTP_TIMER_TYPE_NEWCOOKIE;
3000 m = &inp->sctp_ep;
3101 new_inp->sctp_ep.time_of_secret_change =
3102 old_inp->sctp_ep.time_of_secret_change;
3103 memcpy(new_inp->sctp_ep.secret_key, old_inp->sctp_ep.secret_key,
3104 sizeof(old_inp->sctp_ep.secret_key));
3105 new_inp->sctp_ep.current_secret_number =
3106 old_inp->sctp_ep.current_secret_number;
3107 new_inp->sctp_ep.last_secret_number =
3108 old_inp->sctp_ep.last_secret_number;
3109 new_inp->sctp_ep.size_of_a_cookie = old_inp->sctp_ep.size_of_a_cookie;
3113 stcb->sctp_ep = new_inp;
3611 candidate = first + sctp_select_initial_TSN(&inp->sctp_ep) % (count);
3993 asoc->sctp_ep->last_abort_code = SCTP_FROM_SCTP_PCB + SCTP_LOC_3;
4031 sctp_timer_start(SCTP_TIMER_TYPE_SHUTDOWN, asoc->sctp_ep, asoc,
4033 sctp_timer_start(SCTP_TIMER_TYPE_SHUTDOWNGUARD, asoc->sctp_ep, asoc, NULL);
4039 sctp_timer_start(SCTP_TIMER_TYPE_SHUTDOWNGUARD, asoc->sctp_ep, asoc, NULL);
4049 asoc->sctp_ep->last_abort_code = SCTP_FROM_SCTP_PCB + SCTP_LOC_5;
4116 asoc->sctp_ep->last_abort_code = SCTP_FROM_SCTP_PCB + SCTP_LOC_7;
4162 inp->sctp_ep.signature_change.type = 0;
4179 (void)SCTP_OS_TIMER_STOP_DRAIN(&inp->sctp_ep.signature_change.timer);
4182 (void)SCTP_OS_TIMER_STOP(&inp->sctp_ep.signature_change.timer);
4266 if (inp->sctp_ep.local_auth_chunks != NULL)
4267 sctp_free_chunklist(inp->sctp_ep.local_auth_chunks);
4268 if (inp->sctp_ep.local_hmacs != NULL)
4269 sctp_free_hmaclist(inp->sctp_ep.local_hmacs);
4271 LIST_FOREACH_SAFE(shared_key, &inp->sctp_ep.shared_keys, next, nshared_key) {
4582 if (sctp_stcb_is_feature_on(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_DONOT_HEARTBEAT)) {
4587 if (sctp_stcb_is_feature_on(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_DO_NOT_PMTUD)) {
4608 (void)in6_embedscope(&sin6->sin6_addr, sin6, &stcb->sctp_ep->ip_inp.inp, NULL);
4610 (void)in6_embedscope(&sin6->sin6_addr, sin6, &stcb->sctp_ep->ip_inp.inp, NULL, NULL);
4625 stcb->sctp_ep->fibnum);
4631 net->ro._s_addr = sctp_source_address_selection(stcb->sctp_ep,
4675 hcmtu = sctp_hc_get_mtu(&net->ro._l_addr, stcb->sctp_ep->fibnum);
4781 ntohs(stcb->sctp_ep->sctp_lport);
5119 stcb->sctp_ep = inp;
5209 inp = stcb->sctp_ep;
5223 if (sctp_is_mobility_feature_on(stcb->sctp_ep,
5225 sctp_is_mobility_feature_on(stcb->sctp_ep,
5236 sctp_mobility_feature_on(stcb->sctp_ep,
5239 stcb->sctp_ep, stcb, NULL);
6043 inp = stcb->sctp_ep;
6375 inp = stcb->sctp_ep;
6379 if (stcb->sctp_ep->laddr_count < 2) {
7158 inp = stcb->sctp_ep;
7163 if ((stcb_tmp == NULL && inp == stcb->sctp_ep) || inp == NULL) {
7250 inp = stcb->sctp_ep;
7256 if ((stcb_tmp == NULL && inp == stcb->sctp_ep) ||
7301 sctp_abort_an_association(stcb_tmp->sctp_ep,
7343 inp = stcb->sctp_ep;
7349 (inp == stcb->sctp_ep || inp == NULL)) {
7395 sctp_abort_an_association(stcb_tmp->sctp_ep,
7816 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) {
7824 if (stcb->sctp_ep->sctp_lport != lport) {
7914 TAILQ_REMOVE(&stcb->sctp_ep->read_queue, control, next);
7974 TAILQ_REMOVE(&stcb->sctp_ep->read_queue, control, next);
8047 sctp_timer_stop(SCTP_TIMER_TYPE_RECV, stcb->sctp_ep, stcb, NULL,
8051 sctp_chunk_output(stcb->sctp_ep, stcb, SCTP_OUTPUT_FROM_DRAIN, SCTP_SO_NOT_LOCKED);