Lines Matching refs:sctp_ep
555 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_DONT_WAKE) in sctp_wakeup_log()
557 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_WAKEOUTPUT) in sctp_wakeup_log()
559 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_WAKEINPUT) in sctp_wakeup_log()
891 inp = stcb->sctp_ep; in sctp_stop_timers_for_shutdown()
915 inp = stcb->sctp_ep; in sctp_stop_association_timers()
1097 x = sctp_select_initial_TSN(&inp->sctp_ep); in sctp_select_a_tag()
1176 asoc->max_burst = inp->sctp_ep.max_burst; in sctp_init_asoc()
1177 asoc->fr_max_burst = inp->sctp_ep.fr_max_burst; in sctp_init_asoc()
1178 asoc->heart_beat_delay = sctp_ticks_to_msecs(inp->sctp_ep.sctp_timeoutticks[SCTP_TIMER_HEARTBEAT]); in sctp_init_asoc()
1179 asoc->cookie_life = inp->sctp_ep.def_cookie_life; in sctp_init_asoc()
1192 asoc->default_dscp = inp->sctp_ep.default_dscp; in sctp_init_asoc()
1195 if (inp->sctp_ep.default_flowlabel) { in sctp_init_asoc()
1196 asoc->default_flowlabel = inp->sctp_ep.default_flowlabel; in sctp_init_asoc()
1199 asoc->default_flowlabel = sctp_select_initial_TSN(&inp->sctp_ep); in sctp_init_asoc()
1211 asoc->my_vtag = sctp_select_a_tag(inp, stcb->sctp_ep->sctp_lport, stcb->rport, 1); in sctp_init_asoc()
1214 asoc->my_vtag_nonce = sctp_select_a_tag(inp, stcb->sctp_ep->sctp_lport, stcb->rport, 0); in sctp_init_asoc()
1215 asoc->peer_vtag_nonce = sctp_select_a_tag(inp, stcb->sctp_ep->sctp_lport, stcb->rport, 0); in sctp_init_asoc()
1232 sctp_select_initial_TSN(&inp->sctp_ep); in sctp_init_asoc()
1249 asoc->initial_init_rto_max = inp->sctp_ep.initial_init_rto_max; in sctp_init_asoc()
1250 asoc->initial_rto = inp->sctp_ep.initial_rto; in sctp_init_asoc()
1252 asoc->default_mtu = inp->sctp_ep.default_mtu; in sctp_init_asoc()
1253 asoc->max_init_times = inp->sctp_ep.max_init_times; in sctp_init_asoc()
1254 asoc->max_send_times = inp->sctp_ep.max_send_times; in sctp_init_asoc()
1255 asoc->def_net_failure = inp->sctp_ep.def_net_failure; in sctp_init_asoc()
1256 asoc->def_net_pf_threshold = inp->sctp_ep.def_net_pf_threshold; in sctp_init_asoc()
1263 asoc->delayed_ack = sctp_ticks_to_msecs(inp->sctp_ep.sctp_timeoutticks[SCTP_TIMER_RECV]); in sctp_init_asoc()
1264 asoc->sack_freq = inp->sctp_ep.sctp_sack_freq; in sctp_init_asoc()
1297 asoc->minrto = inp->sctp_ep.sctp_minrto; in sctp_init_asoc()
1298 asoc->maxrto = inp->sctp_ep.sctp_maxrto; in sctp_init_asoc()
1314 asoc->sctp_autoclose_ticks = inp->sctp_ep.auto_close_time; in sctp_init_asoc()
1316 stcb->asoc.congestion_control_module = inp->sctp_ep.sctp_default_cc_module; in sctp_init_asoc()
1317 stcb->asoc.cc_functions = sctp_cc_functions[inp->sctp_ep.sctp_default_cc_module]; in sctp_init_asoc()
1319 stcb->asoc.stream_scheduling_module = inp->sctp_ep.sctp_default_ss_module; in sctp_init_asoc()
1320 stcb->asoc.ss_functions = sctp_ss_functions[inp->sctp_ep.sctp_default_ss_module]; in sctp_init_asoc()
1392 asoc->max_inbound_streams = inp->sctp_ep.max_open_streams_intome; in sctp_init_asoc()
1403 asoc->port = inp->sctp_ep.port; in sctp_init_asoc()
1621 KASSERT(it->inp == it->stcb->sctp_ep, in sctp_iterator_work()
1623 __func__, it->stcb, it->inp, it->stcb->sctp_ep)); in sctp_iterator_work()
1815 KASSERT(stcb == NULL || stcb->sctp_ep == inp, in sctp_timeout_handler()
1817 type, stcb, stcb->sctp_ep)); in sctp_timeout_handler()
1903 !(stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE) && in sctp_timeout_handler()
1950 sctp_timer_start(SCTP_TIMER_TYPE_SEND, stcb->sctp_ep, stcb, chk->whoTo); in sctp_timeout_handler()
2037 inp->sctp_ep.time_of_secret_change = tv.tv_sec; in sctp_timeout_handler()
2038 inp->sctp_ep.last_secret_number = in sctp_timeout_handler()
2039 inp->sctp_ep.current_secret_number; in sctp_timeout_handler()
2040 inp->sctp_ep.current_secret_number++; in sctp_timeout_handler()
2041 if (inp->sctp_ep.current_secret_number >= in sctp_timeout_handler()
2043 inp->sctp_ep.current_secret_number = 0; in sctp_timeout_handler()
2045 secret = (int)inp->sctp_ep.current_secret_number; in sctp_timeout_handler()
2047 inp->sctp_ep.secret_key[secret][i] = in sctp_timeout_handler()
2048 sctp_select_initial_TSN(&inp->sctp_ep); in sctp_timeout_handler()
2276 KASSERT(stcb == NULL || stcb->sctp_ep == inp, in sctp_timer_start()
2278 t_type, stcb, stcb->sctp_ep)); in sctp_timer_start()
2403 rndval = sctp_select_initial_TSN(&inp->sctp_ep); in sctp_timer_start()
2454 tmr = &inp->sctp_ep.signature_change; in sctp_timer_start()
2455 to_ticks = inp->sctp_ep.sctp_timeoutticks[SCTP_TIMER_SIGNATURE]; in sctp_timer_start()
2477 to_ticks = inp->sctp_ep.sctp_timeoutticks[SCTP_TIMER_PMTU]; in sctp_timer_start()
2530 if (inp->sctp_ep.sctp_timeoutticks[SCTP_TIMER_MAXSHUTDOWN] == 0) { in sctp_timer_start()
2537 to_ticks = inp->sctp_ep.sctp_timeoutticks[SCTP_TIMER_MAXSHUTDOWN]; in sctp_timer_start()
2586 tmr = &inp->sctp_ep.signature_change; in sctp_timer_start()
2712 KASSERT(stcb == NULL || stcb->sctp_ep == inp, in sctp_timer_stop()
2714 t_type, stcb, stcb->sctp_ep)); in sctp_timer_stop()
2799 tmr = &inp->sctp_ep.signature_change; in sctp_timer_stop()
2881 tmr = &inp->sctp_ep.signature_change; in sctp_timer_stop()
3261 if (sctp_stcb_is_feature_on(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVASSOCEVNT)) { in sctp_notify_assoc_change()
3335 sctp_add_to_readq(stcb->sctp_ep, stcb, in sctp_notify_assoc_change()
3348 if (((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) || in sctp_notify_assoc_change()
3349 (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL)) && in sctp_notify_assoc_change()
3374 so = SCTP_INP_SO(stcb->sctp_ep); in sctp_notify_assoc_change()
3387 if (((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) || in sctp_notify_assoc_change()
3388 (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL)) && in sctp_notify_assoc_change()
3414 sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVPADDREVNT)) { in sctp_notify_peer_addr_change()
3431 if (sctp_is_feature_on(stcb->sctp_ep, SCTP_PCB_FLAGS_NEEDS_MAPPED_V4)) { in sctp_notify_peer_addr_change()
3499 sctp_add_to_readq(stcb->sctp_ep, stcb, in sctp_notify_peer_addr_change()
3523 (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVSENDFAILEVNT) && in sctp_notify_send_failed()
3524 sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVNSENDFAILEVNT))) { in sctp_notify_send_failed()
3529 if (sctp_stcb_is_feature_on(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVNSENDFAILEVNT)) { in sctp_notify_send_failed()
3563 if (sctp_stcb_is_feature_on(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVNSENDFAILEVNT)) { in sctp_notify_send_failed()
3635 sctp_add_to_readq(stcb->sctp_ep, stcb, in sctp_notify_send_failed()
3658 (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVSENDFAILEVNT) && in sctp_notify_send_failed2()
3659 sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVNSENDFAILEVNT))) { in sctp_notify_send_failed2()
3663 if (sctp_stcb_is_feature_on(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVNSENDFAILEVNT)) { in sctp_notify_send_failed2()
3674 if (sctp_stcb_is_feature_on(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVNSENDFAILEVNT)) { in sctp_notify_send_failed2()
3738 sctp_add_to_readq(stcb->sctp_ep, stcb, in sctp_notify_send_failed2()
3753 sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_ADAPTATIONEVNT)) { in sctp_notify_adaptation_layer()
3787 sctp_add_to_readq(stcb->sctp_ep, stcb, in sctp_notify_adaptation_layer()
3807 sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_PDAPIEVNT)) { in sctp_notify_partial_delivery_indication()
3811 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_CANT_READ) { in sctp_notify_partial_delivery_indication()
3854 TAILQ_INSERT_AFTER(&stcb->sctp_ep->read_queue, stcb->asoc.control_pdapi, control, next); in sctp_notify_partial_delivery_indication()
3857 TAILQ_INSERT_TAIL(&stcb->sctp_ep->read_queue, control, next); in sctp_notify_partial_delivery_indication()
3859 if (stcb->sctp_ep && stcb->sctp_socket) { in sctp_notify_partial_delivery_indication()
3864 so = SCTP_INP_SO(stcb->sctp_ep); in sctp_notify_partial_delivery_indication()
3871 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE) { in sctp_notify_partial_delivery_indication()
3877 sctp_sorwakeup(stcb->sctp_ep, stcb->sctp_socket); in sctp_notify_partial_delivery_indication()
3897 if ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) || in sctp_notify_shutdown_event()
3898 (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL)) { in sctp_notify_shutdown_event()
3903 so = SCTP_INP_SO(stcb->sctp_ep); in sctp_notify_shutdown_event()
3919 if (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVSHUTDOWNEVNT)) { in sctp_notify_shutdown_event()
3951 sctp_add_to_readq(stcb->sctp_ep, stcb, in sctp_notify_shutdown_event()
3969 sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_DRYEVNT)) { in sctp_notify_sender_dry_event()
4003 sctp_add_to_readq(stcb->sctp_ep, stcb, control, in sctp_notify_sender_dry_event()
4016 (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_STREAM_CHANGEEVNT))) { in sctp_notify_stream_reset_add()
4059 sctp_add_to_readq(stcb->sctp_ep, stcb, in sctp_notify_stream_reset_add()
4072 (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_ASSOC_RESETEVNT))) { in sctp_notify_stream_reset_tsn()
4109 sctp_add_to_readq(stcb->sctp_ep, stcb, in sctp_notify_stream_reset_tsn()
4126 (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_STREAM_RESETEVNT))) { in sctp_notify_stream_reset()
4175 sctp_add_to_readq(stcb->sctp_ep, stcb, in sctp_notify_stream_reset()
4191 sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_RECVPEERERR)) { in sctp_notify_remote_error()
4237 sctp_add_to_readq(stcb->sctp_ep, stcb, in sctp_notify_remote_error()
4256 (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE) ||
4257 (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) ||
4271 sctp_lock_assert(SCTP_INP_SO(stcb->sctp_ep));
4273 sctp_unlock_assert(SCTP_INP_SO(stcb->sctp_ep));
4302 if (stcb->sctp_ep->recv_callback) {
4311 stcb->sctp_ep->recv_callback(stcb->sctp_socket, addr, NULL, 0, rcv, 0, stcb->sctp_ep->ulp_info);
4476 sctp_lock_assert(SCTP_INP_SO(stcb->sctp_ep));
4478 sctp_unlock_assert(SCTP_INP_SO(stcb->sctp_ep));
4481 if ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE) ||
4482 (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) ||
4585 sctp_lock_assert(SCTP_INP_SO(stcb->sctp_ep));
4587 sctp_unlock_assert(SCTP_INP_SO(stcb->sctp_ep));
4590 if ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL) ||
4591 ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) &&
4592 (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_CONNECTED))) {
4593 stcb->sctp_ep->sctp_flags |= SCTP_PCB_FLAGS_WAS_ABORTED;
4595 if ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE) ||
4596 (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) ||
4665 SCTP_PRINTF("Last ep reason:%x\n", stcb->sctp_ep->last_abort_code);
5281 stcb->sctp_ep->partial_delivery_point);
5344 TAILQ_REMOVE(&stcb->sctp_ep->read_queue, control, next);
5550 if (stcb->sctp_socket && (((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL)) ||
5551 ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE)))) {
5583 sctp_lock_assert(SCTP_INP_SO(stcb->sctp_ep));
5585 sctp_unlock_assert(SCTP_INP_SO(stcb->sctp_ep));
5785 so = SCTP_INP_SO(stcb->sctp_ep);
5799 sctp_sowwakeup(stcb->sctp_ep, stcb->sctp_socket);
6025 SCTP_INP_INCR_REF(stcb->sctp_ep);
6026 if ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE) ||
6027 (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE)) {
6048 SCTP_INP_READ_UNLOCK(stcb->sctp_ep);
6071 sctp_chunk_output(stcb->sctp_ep, stcb,
6077 sctp_timer_stop(SCTP_TIMER_TYPE_RECV, stcb->sctp_ep, stcb, NULL,
6086 SCTP_INP_READ_LOCK(stcb->sctp_ep);
6089 SCTP_INP_DECR_REF(stcb->sctp_ep);
7512 inp = stcb->sctp_ep;
7973 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_BOUNDALL) {
7997 if (prison_check_ip4(stcb->sctp_ep->ip_inp.inp.inp_cred,
8026 if (prison_check_ip6(stcb->sctp_ep->ip_inp.inp.inp_cred,
8087 LIST_FOREACH(laddr, &stcb->sctp_ep->sctp_addr_list,
8354 if (!(stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE) &&
8537 if (!(stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE) &&