Lines Matching refs:sctp_ep

520 	if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_DONT_WAKE)  in sctp_wakeup_log()
522 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_WAKEOUTPUT) in sctp_wakeup_log()
524 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_WAKEINPUT) in sctp_wakeup_log()
855 inp = stcb->sctp_ep; in sctp_stop_timers_for_shutdown()
879 inp = stcb->sctp_ep; in sctp_stop_association_timers()
1055 x = sctp_select_initial_TSN(&inp->sctp_ep); in sctp_select_a_tag()
1136 asoc->max_burst = inp->sctp_ep.max_burst; in sctp_init_asoc()
1137 asoc->fr_max_burst = inp->sctp_ep.fr_max_burst; in sctp_init_asoc()
1138 asoc->heart_beat_delay = sctp_ticks_to_msecs(inp->sctp_ep.sctp_timeoutticks[SCTP_TIMER_HEARTBEAT]); in sctp_init_asoc()
1139 asoc->cookie_life = inp->sctp_ep.def_cookie_life; in sctp_init_asoc()
1154 asoc->default_dscp = inp->sctp_ep.default_dscp; in sctp_init_asoc()
1157 if (inp->sctp_ep.default_flowlabel) { in sctp_init_asoc()
1158 asoc->default_flowlabel = inp->sctp_ep.default_flowlabel; in sctp_init_asoc()
1161 asoc->default_flowlabel = sctp_select_initial_TSN(&inp->sctp_ep); in sctp_init_asoc()
1173 asoc->my_vtag = sctp_select_a_tag(inp, stcb->sctp_ep->sctp_lport, stcb->rport, 1); in sctp_init_asoc()
1176 asoc->my_vtag_nonce = sctp_select_a_tag(inp, stcb->sctp_ep->sctp_lport, stcb->rport, 0); in sctp_init_asoc()
1177 asoc->peer_vtag_nonce = sctp_select_a_tag(inp, stcb->sctp_ep->sctp_lport, stcb->rport, 0); in sctp_init_asoc()
1196 asoc->init_seq_number = sctp_select_initial_TSN(&inp->sctp_ep); in sctp_init_asoc()
1216 asoc->initial_init_rto_max = inp->sctp_ep.initial_init_rto_max; in sctp_init_asoc()
1217 asoc->initial_rto = inp->sctp_ep.initial_rto; in sctp_init_asoc()
1219 asoc->default_mtu = inp->sctp_ep.default_mtu; in sctp_init_asoc()
1220 asoc->max_init_times = inp->sctp_ep.max_init_times; in sctp_init_asoc()
1221 asoc->max_send_times = inp->sctp_ep.max_send_times; in sctp_init_asoc()
1222 asoc->def_net_failure = inp->sctp_ep.def_net_failure; in sctp_init_asoc()
1223 asoc->def_net_pf_threshold = inp->sctp_ep.def_net_pf_threshold; in sctp_init_asoc()
1230 asoc->delayed_ack = sctp_ticks_to_msecs(inp->sctp_ep.sctp_timeoutticks[SCTP_TIMER_RECV]); in sctp_init_asoc()
1231 asoc->sack_freq = inp->sctp_ep.sctp_sack_freq; in sctp_init_asoc()
1251 asoc->minrto = inp->sctp_ep.sctp_minrto; in sctp_init_asoc()
1252 asoc->maxrto = inp->sctp_ep.sctp_maxrto; in sctp_init_asoc()
1268 asoc->sctp_autoclose_ticks = inp->sctp_ep.auto_close_time; in sctp_init_asoc()
1270 stcb->asoc.congestion_control_module = inp->sctp_ep.sctp_default_cc_module; in sctp_init_asoc()
1271 stcb->asoc.cc_functions = sctp_cc_functions[inp->sctp_ep.sctp_default_cc_module]; in sctp_init_asoc()
1273 stcb->asoc.stream_scheduling_module = inp->sctp_ep.sctp_default_ss_module; in sctp_init_asoc()
1274 stcb->asoc.ss_functions = sctp_ss_functions[inp->sctp_ep.sctp_default_ss_module]; in sctp_init_asoc()
1348 asoc->max_inbound_streams = inp->sctp_ep.max_open_streams_intome; in sctp_init_asoc()
1359 asoc->port = inp->sctp_ep.port; in sctp_init_asoc()
1565 KASSERT(it->inp == it->stcb->sctp_ep, in sctp_iterator_work()
1567 __func__, it->stcb, it->inp, it->stcb->sctp_ep)); in sctp_iterator_work()
1755 KASSERT(stcb == NULL || stcb->sctp_ep == inp, in sctp_timeout_handler()
1757 type, stcb, stcb->sctp_ep)); in sctp_timeout_handler()
1855 sctp_timer_start(SCTP_TIMER_TYPE_SEND, stcb->sctp_ep, stcb, chk->whoTo); in sctp_timeout_handler()
1947 inp->sctp_ep.time_of_secret_change = tv.tv_sec; in sctp_timeout_handler()
1948 inp->sctp_ep.last_secret_number = in sctp_timeout_handler()
1949 inp->sctp_ep.current_secret_number; in sctp_timeout_handler()
1950 inp->sctp_ep.current_secret_number++; in sctp_timeout_handler()
1951 if (inp->sctp_ep.current_secret_number >= in sctp_timeout_handler()
1953 inp->sctp_ep.current_secret_number = 0; in sctp_timeout_handler()
1955 secret = (int)inp->sctp_ep.current_secret_number; in sctp_timeout_handler()
1957 inp->sctp_ep.secret_key[secret][i] = in sctp_timeout_handler()
1958 sctp_select_initial_TSN(&inp->sctp_ep); in sctp_timeout_handler()
2163 KASSERT(stcb == NULL || stcb->sctp_ep == inp, in sctp_timer_start()
2165 t_type, stcb, stcb->sctp_ep)); in sctp_timer_start()
2296 rndval = sctp_select_initial_TSN(&inp->sctp_ep); in sctp_timer_start()
2351 tmr = &inp->sctp_ep.signature_change; in sctp_timer_start()
2352 to_ticks = inp->sctp_ep.sctp_timeoutticks[SCTP_TIMER_SIGNATURE]; in sctp_timer_start()
2374 to_ticks = inp->sctp_ep.sctp_timeoutticks[SCTP_TIMER_PMTU]; in sctp_timer_start()
2427 if (inp->sctp_ep.sctp_timeoutticks[SCTP_TIMER_MAXSHUTDOWN] == 0) { in sctp_timer_start()
2434 to_ticks = inp->sctp_ep.sctp_timeoutticks[SCTP_TIMER_MAXSHUTDOWN]; in sctp_timer_start()
2483 tmr = &inp->sctp_ep.signature_change; in sctp_timer_start()
2620 KASSERT(stcb == NULL || stcb->sctp_ep == inp, in sctp_timer_stop()
2622 t_type, stcb, stcb->sctp_ep)); in sctp_timer_stop()
2707 tmr = &inp->sctp_ep.signature_change; in sctp_timer_stop()
2789 tmr = &inp->sctp_ep.signature_change; in sctp_timer_stop()
3154 inp = stcb->sctp_ep; in sctp_notify_assoc_change()
3290 SCTP_INP_READ_LOCK_ASSERT(stcb->sctp_ep); in sctp_notify_peer_addr_change()
3292 if (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVPADDREVNT)) { in sctp_notify_peer_addr_change()
3310 if (sctp_is_feature_on(stcb->sctp_ep, SCTP_PCB_FLAGS_NEEDS_MAPPED_V4)) { in sctp_notify_peer_addr_change()
3365 sctp_add_to_readq(stcb->sctp_ep, stcb, control, in sctp_notify_peer_addr_change()
3383 SCTP_INP_READ_LOCK_ASSERT(stcb->sctp_ep); in sctp_notify_send_failed()
3385 if (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVSENDFAILEVNT) && in sctp_notify_send_failed()
3386 sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVNSENDFAILEVNT)) { in sctp_notify_send_failed()
3391 if (sctp_stcb_is_feature_on(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVNSENDFAILEVNT)) { in sctp_notify_send_failed()
3425 if (sctp_stcb_is_feature_on(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVNSENDFAILEVNT)) { in sctp_notify_send_failed()
3497 sctp_add_to_readq(stcb->sctp_ep, stcb, control, in sctp_notify_send_failed()
3514 SCTP_INP_READ_LOCK_ASSERT(stcb->sctp_ep); in sctp_notify_send_failed2()
3516 if (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVSENDFAILEVNT) && in sctp_notify_send_failed2()
3517 sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVNSENDFAILEVNT)) { in sctp_notify_send_failed2()
3522 if (sctp_stcb_is_feature_on(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVNSENDFAILEVNT)) { in sctp_notify_send_failed2()
3533 if (sctp_stcb_is_feature_on(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVNSENDFAILEVNT)) { in sctp_notify_send_failed2()
3597 sctp_add_to_readq(stcb->sctp_ep, stcb, control, in sctp_notify_send_failed2()
3611 SCTP_INP_READ_LOCK_ASSERT(stcb->sctp_ep); in sctp_notify_adaptation_layer()
3613 if (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_ADAPTATIONEVNT)) { in sctp_notify_adaptation_layer()
3647 sctp_add_to_readq(stcb->sctp_ep, stcb, control, in sctp_notify_adaptation_layer()
3665 SCTP_INP_READ_LOCK_ASSERT(stcb->sctp_ep); in sctp_notify_partial_delivery_indication()
3667 if (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_PDAPIEVNT)) { in sctp_notify_partial_delivery_indication()
3710 TAILQ_INSERT_AFTER(&stcb->sctp_ep->read_queue, aborted_control, control, next); in sctp_notify_partial_delivery_indication()
3711 if (stcb->sctp_ep && stcb->sctp_socket) { in sctp_notify_partial_delivery_indication()
3713 sctp_sorwakeup(stcb->sctp_ep, stcb->sctp_socket); in sctp_notify_partial_delivery_indication()
3726 SCTP_INP_READ_LOCK_ASSERT(stcb->sctp_ep); in sctp_notify_shutdown_event()
3732 if ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) || in sctp_notify_shutdown_event()
3733 (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL)) { in sctp_notify_shutdown_event()
3738 if (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVSHUTDOWNEVNT)) { in sctp_notify_shutdown_event()
3770 sctp_add_to_readq(stcb->sctp_ep, stcb, control, in sctp_notify_shutdown_event()
3784 SCTP_INP_READ_LOCK_ASSERT(stcb->sctp_ep); in sctp_notify_sender_dry_event()
3786 if (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_DRYEVNT)) { in sctp_notify_sender_dry_event()
3820 sctp_add_to_readq(stcb->sctp_ep, stcb, control, in sctp_notify_sender_dry_event()
3834 SCTP_INP_READ_LOCK_ASSERT(stcb->sctp_ep); in sctp_notify_stream_reset_add()
3836 if (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_STREAM_CHANGEEVNT)) { in sctp_notify_stream_reset_add()
3880 sctp_add_to_readq(stcb->sctp_ep, stcb, control, in sctp_notify_stream_reset_add()
3894 SCTP_INP_READ_LOCK_ASSERT(stcb->sctp_ep); in sctp_notify_stream_reset_tsn()
3896 if (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_ASSOC_RESETEVNT)) { in sctp_notify_stream_reset_tsn()
3934 sctp_add_to_readq(stcb->sctp_ep, stcb, control, in sctp_notify_stream_reset_tsn()
3950 SCTP_INP_READ_LOCK_ASSERT(stcb->sctp_ep); in sctp_notify_stream_reset()
3952 if (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_STREAM_RESETEVNT)) { in sctp_notify_stream_reset()
4001 sctp_add_to_readq(stcb->sctp_ep, stcb, control, in sctp_notify_stream_reset()
4018 SCTP_INP_READ_LOCK_ASSERT(stcb->sctp_ep); in sctp_notify_remote_error()
4020 if (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVPEERERR)) { in sctp_notify_remote_error()
4067 sctp_add_to_readq(stcb->sctp_ep, stcb, control, in sctp_notify_remote_error()
4085 inp = stcb->sctp_ep; in sctp_ulp_notify()
4276 if ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE) || in sctp_report_all_outbound()
4277 (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) || in sctp_report_all_outbound()
4370 if ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL) || in sctp_abort_notification()
4371 ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) && in sctp_abort_notification()
4372 (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_CONNECTED))) { in sctp_abort_notification()
4373 sctp_pcb_add_flags(stcb->sctp_ep, SCTP_PCB_FLAGS_WAS_ABORTED); in sctp_abort_notification()
4375 if ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE) || in sctp_abort_notification()
4376 (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) || in sctp_abort_notification()
4442 SCTP_PRINTF("Last ep reason:%x\n", stcb->sctp_ep->last_abort_code); in sctp_print_out_track_log()
5059 (((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL)) || in sctp_free_bufspace()
5060 ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE)))) { in sctp_free_bufspace()
5274 sctp_sowwakeup(stcb->sctp_ep, stcb->sctp_socket); in sctp_release_pr_sctp_chunk()
5445 SCTP_INP_INCR_REF(stcb->sctp_ep); in sctp_user_rcvd()
5446 if ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE) || in sctp_user_rcvd()
5447 (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE)) { in sctp_user_rcvd()
5468 SCTP_INP_READ_UNLOCK(stcb->sctp_ep); in sctp_user_rcvd()
5489 sctp_chunk_output(stcb->sctp_ep, stcb, in sctp_user_rcvd()
5493 sctp_timer_stop(SCTP_TIMER_TYPE_RECV, stcb->sctp_ep, stcb, NULL, in sctp_user_rcvd()
5502 SCTP_INP_READ_LOCK(stcb->sctp_ep); in sctp_user_rcvd()
5505 SCTP_INP_DECR_REF(stcb->sctp_ep); in sctp_user_rcvd()
6629 inp = stcb->sctp_ep; in sctp_connectx_helper_add()
6996 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_BOUNDALL) { in sctp_local_addr_count()
7022 if (prison_check_ip4(stcb->sctp_ep->ip_inp.inp.inp_cred, in sctp_local_addr_count()
7046 if (prison_check_ip6(stcb->sctp_ep->ip_inp.inp.inp_cred, in sctp_local_addr_count()
7088 LIST_FOREACH(laddr, &stcb->sctp_ep->sctp_addr_list, in sctp_local_addr_count()