Home
last modified time | relevance | path

Searched refs:sctp_ep (Results 1 – 16 of 16) sorted by relevance

/freebsd/sys/netinet/
H A Dsctp_peeloff.c133 if (n_inp->sctp_ep.local_hmacs) in sctp_do_peeloff()
134 sctp_free_hmaclist(n_inp->sctp_ep.local_hmacs); in sctp_do_peeloff()
135 n_inp->sctp_ep.local_hmacs = in sctp_do_peeloff()
136 sctp_copy_hmaclist(inp->sctp_ep.local_hmacs); in sctp_do_peeloff()
137 if (n_inp->sctp_ep.local_auth_chunks) in sctp_do_peeloff()
138 sctp_free_chunklist(n_inp->sctp_ep.local_auth_chunks); in sctp_do_peeloff()
139 n_inp->sctp_ep.local_auth_chunks = in sctp_do_peeloff()
140 sctp_copy_chunklist(inp->sctp_ep.local_auth_chunks); in sctp_do_peeloff()
141 (void)sctp_copy_skeylist(&inp->sctp_ep.shared_keys, in sctp_do_peeloff()
142 &n_inp->sctp_ep.shared_keys); in sctp_do_peeloff()
H A Dsctp_indata.c443 stcb->sctp_ep->last_abort_code = SCTP_FROM_SCTP_INDATA + SCTP_LOC_1; in sctp_abort_in_reasm()
444 sctp_abort_an_association(stcb->sctp_ep, stcb, oper, false, SCTP_SO_NOT_LOCKED); in sctp_abort_in_reasm()
532 stcb->sctp_ep->last_abort_code = SCTP_FROM_SCTP_INDATA + SCTP_LOC_2; in sctp_queue_data_to_stream()
533 sctp_abort_an_association(stcb->sctp_ep, stcb, op_err, false, SCTP_SO_NOT_LOCKED); in sctp_queue_data_to_stream()
560 sctp_add_to_readq(stcb->sctp_ep, stcb, in sctp_queue_data_to_stream()
600 sctp_add_to_readq(stcb->sctp_ep, stcb, in sctp_queue_data_to_stream()
622 stcb->sctp_ep->last_abort_code = SCTP_FROM_SCTP_INDATA + SCTP_LOC_3; in sctp_queue_data_to_stream()
623 sctp_abort_an_association(stcb->sctp_ep, stcb, op_err, false, SCTP_SO_NOT_LOCKED); in sctp_queue_data_to_stream()
852 sctp_add_to_readq(stcb->sctp_ep, stcb, control, in sctp_handle_old_unordered_data()
856 sctp_wakeup_the_read_socket(stcb->sctp_ep, stcb, SCTP_SO_NOT_LOCKED); in sctp_handle_old_unordered_data()
[all …]
H A Dsctputil.c520 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()
[all …]
H A Dsctp_asconf.c268 sctp_timer_start(SCTP_TIMER_TYPE_PATHMTURAISE, stcb->sctp_ep, stcb, net); in sctp_process_asconf_add_ip()
269 sctp_timer_start(SCTP_TIMER_TYPE_HEARTBEAT, stcb->sctp_ep, in sctp_process_asconf_add_ip()
562 if ((sctp_is_mobility_feature_on(stcb->sctp_ep, in sctp_process_asconf_set_primary()
564 sctp_is_mobility_feature_on(stcb->sctp_ep, in sctp_process_asconf_set_primary()
566 sctp_is_mobility_feature_on(stcb->sctp_ep, in sctp_process_asconf_set_primary()
571 stcb->sctp_ep, stcb, NULL, in sctp_process_asconf_set_primary()
573 if (sctp_is_mobility_feature_on(stcb->sctp_ep, in sctp_process_asconf_set_primary()
578 if (sctp_is_mobility_feature_on(stcb->sctp_ep, in sctp_process_asconf_set_primary()
583 sctp_delete_prim_timer(stcb->sctp_ep, stcb); in sctp_process_asconf_set_primary()
941 sctp_timer_stop(SCTP_TIMER_TYPE_ASCONF, stcb->sctp_ep, stcb, NULL, in sctp_asconf_cleanup()
[all …]
H A Dsctp_input.c69 stcb->sctp_ep, in sctp_stop_all_cookie_timers()
74 stcb->sctp_ep, in sctp_stop_all_cookie_timers()
412 sctp_abort_association(stcb->sctp_ep, stcb, m, iphlen, in sctp_process_init_ack()
440 sctp_abort_association(stcb->sctp_ep, stcb, m, iphlen, in sctp_process_init_ack()
456 sctp_abort_association(stcb->sctp_ep, stcb, m, iphlen, in sctp_process_init_ack()
476 sctp_abort_association(stcb->sctp_ep, stcb, m, iphlen, in sctp_process_init_ack()
515 sctp_timer_stop(SCTP_TIMER_TYPE_INIT, stcb->sctp_ep, stcb, in sctp_process_init_ack()
605 sctp_timer_stop(SCTP_TIMER_TYPE_HEARTBEAT, stcb->sctp_ep, stcb, in sctp_handle_heartbeat_ack()
607 sctp_timer_start(SCTP_TIMER_TYPE_HEARTBEAT, stcb->sctp_ep, stcb, r_net); in sctp_handle_heartbeat_ack()
635 sctp_timer_stop(SCTP_TIMER_TYPE_HEARTBEAT, stcb->sctp_ep, in sctp_handle_heartbeat_ack()
[all …]
H A Dsctp_usrreq.c117 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_BOUND_V6) { in sctp_pathmtu_adjustment()
729 stcb->sctp_ep, stcb, netp); in sctp_disconnect()
731 stcb->sctp_ep, stcb, NULL); in sctp_disconnect()
732 sctp_chunk_output(stcb->sctp_ep, stcb, SCTP_OUTPUT_FROM_CLOSING, SCTP_SO_LOCKED); in sctp_disconnect()
755 stcb->sctp_ep->last_abort_code = SCTP_FROM_SCTP_USRREQ + SCTP_LOC_4; in sctp_disconnect()
932 stcb->sctp_ep, stcb, netp); in sctp_shutdown()
934 stcb->sctp_ep, stcb, NULL); in sctp_shutdown()
951 stcb->sctp_ep->last_abort_code = SCTP_FROM_SCTP_USRREQ + SCTP_LOC_6; in sctp_shutdown()
953 sctp_abort_an_association(stcb->sctp_ep, stcb, in sctp_shutdown()
1422 inp->sctp_ep.pre_open_stream_count, in sctp_do_connect_x()
[all …]
H A Dsctp_pcb.c728 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_BOUNDALL) { in sctp_does_stcb_own_this_addr()
760 if (prison_check_ip4(stcb->sctp_ep->ip_inp.inp.inp_cred, in sctp_does_stcb_own_this_addr()
779 if (prison_check_ip6(stcb->sctp_ep->ip_inp.inp.inp_cred, in sctp_does_stcb_own_this_addr()
811 LIST_FOREACH(laddr, &stcb->sctp_ep->sctp_addr_list, sctp_nxt_addr) { in sctp_does_stcb_own_this_addr()
1180 SCTP_INP_RLOCK(locked_tcb->sctp_ep); in sctp_findassociation_ep_addr()
1183 SCTP_INP_RUNLOCK(locked_tcb->sctp_ep); in sctp_findassociation_ep_addr()
1432 if (inp != stcb->sctp_ep) { in sctp_findasoc_ep_asocid_locked()
1999 SCTP_INP_RLOCK(stcb->sctp_ep); in sctp_findassoc_by_vtag()
2000 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) { in sctp_findassoc_by_vtag()
2001 SCTP_INP_RUNLOCK(stcb->sctp_ep); in sctp_findassoc_by_vtag()
[all …]
H A Dsctp_auth.c1225 if (keyid == inp->sctp_ep.default_keyid) in sctp_delete_sharedkey_ep()
1229 skey = sctp_find_sharedkey(&inp->sctp_ep.shared_keys, keyid); in sctp_delete_sharedkey_ep()
1282 skey = sctp_find_sharedkey(&inp->sctp_ep.shared_keys, keyid); in sctp_auth_setactivekey_ep()
1287 inp->sctp_ep.default_keyid = keyid; in sctp_auth_setactivekey_ep()
1338 if (keyid == inp->sctp_ep.default_keyid) in sctp_deact_sharedkey_ep()
1342 skey = sctp_find_sharedkey(&inp->sctp_ep.shared_keys, keyid); in sctp_deact_sharedkey_ep()
1489 stcb->asoc.authinfo.active_keyid = stcb->sctp_ep->sctp_ep.default_keyid; in sctp_auth_get_cookie_params()
1491 (void)sctp_copy_skeylist(&stcb->sctp_ep->sctp_ep.shared_keys, in sctp_auth_get_cookie_params()
1711 SCTP_INP_READ_LOCK_ASSERT(stcb->sctp_ep); in sctp_notify_authentication()
1713 if (sctp_stcb_is_feature_off(stcb->sctp_ep, stcb, SCTP_PCB_FLAGS_AUTHEVNT)) in sctp_notify_authentication()
[all …]
H A Dsctputil.h245 if (stcb->sctp_socket && ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) || \
246 (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL))) { \
256 ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) || \
257 (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL))) { \
H A Dsctp_cc_functions.c104 stcb->asoc.my_vtag, ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), net, in sctp_set_initial_cc_param()
202 stcb->asoc.my_vtag, ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), net, in sctp_cwnd_update_after_fr()
234 stcb->sctp_ep, stcb, net, in sctp_cwnd_update_after_fr()
237 stcb->sctp_ep, stcb, net); in sctp_cwnd_update_after_fr()
623 vtag = (rtt << 32) | (((uint32_t)(stcb->sctp_ep->sctp_lport)) << 16) | (stcb->rport); in cc_bw_limit()
808 (((uint32_t)(stcb->sctp_ep->sctp_lport)) << 16) | in sctp_cwnd_update_after_sack_common()
912 ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), in sctp_cwnd_update_after_sack_common()
975 ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), in sctp_cwnd_update_after_sack_common()
1006 stcb->asoc.my_vtag, ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), net, in sctp_cwnd_update_exit_pf_common()
1077 ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), in sctp_cwnd_update_after_timeout()
[all …]
H A Dsctp_timer.c260 rndval = sctp_select_initial_TSN(&stcb->sctp_ep->sctp_ep); in sctp_find_alternate_net()
304 rndval = sctp_select_initial_TSN(&stcb->sctp_ep->sctp_ep); in sctp_find_alternate_net()
990 sctp_timer_start(SCTP_TIMER_TYPE_SEND, stcb->sctp_ep, stcb, lchk->whoTo); in sctp_t3rxt_timer()
1581 stcb->sctp_ep, stcb, net); in sctp_autoclose_timer()
1583 stcb->sctp_ep, stcb, NULL); in sctp_autoclose_timer()
H A Dsctp_output.c2843 sctp_is_mobility_feature_on(stcb->sctp_ep, SCTP_MOBILITY_BASE)) { in sctp_select_nth_preferred_addr_from_ifn_boundall()
2852 sctp_is_mobility_feature_on(stcb->sctp_ep, SCTP_MOBILITY_BASE)) { in sctp_select_nth_preferred_addr_from_ifn_boundall()
4020 tos_value = inp->sctp_ep.default_dscp; in sctp_lowlevel_chunk_output()
4288 flowlabel = inp->sctp_ep.default_flowlabel; in sctp_lowlevel_chunk_output()
4691 if (inp->sctp_ep.adaptation_layer_indicator_provided) { in sctp_send_initiate()
4696 ali->indication = htonl(inp->sctp_ep.adaptation_layer_indicator); in sctp_send_initiate()
5626 stc.cookie_life = inp->sctp_ep.def_cookie_life; in sctp_send_initiate_ack()
5877 itsn = sctp_select_initial_TSN(&inp->sctp_ep); in sctp_send_initiate_ack()
5889 initack->init.initial_tsn = htonl(sctp_select_initial_TSN(&inp->sctp_ep)); in sctp_send_initiate_ack()
5917 i_want = inp->sctp_ep.pre_open_stream_count; in sctp_send_initiate_ack()
[all …]
H A Dsctp_pcb.h386 struct sctp_pcb sctp_ep; /* SCTP ep data */ member
443 struct sctp_inpcb *sctp_ep; /* back pointer to ep */ member
H A Dsctp_lock_bsd.h362 sctp_log_lock(_tcb->sctp_ep, _tcb, SCTP_LOG_LOCK_TCB); \
/freebsd/cddl/lib/libdtrace/
H A Dsctp.d130 p->sctp_ep == NULL ? -1 :
131 p->sctp_ep->laddr_count;
133 p->sctp_ep == NULL ? NULL :
134 (uintptr_t)(p->sctp_ep->sctp_addr_list.lh_first);
136 p->sctp_ep == NULL ? 0 :
137 ntohs(p->sctp_ep->ip_inp.inp.inp_inc.inc_ie.ie_lport);
/freebsd/sys/netinet6/
H A Dsctp6_usrreq.c867 inp->sctp_ep.pre_open_stream_count, in sctp6_connect()
868 inp->sctp_ep.port, p, in sctp6_connect()