Home
last modified time | relevance | path

Searched refs:stcb (Results 1 – 25 of 28) sorted by relevance

12

/freebsd-14.2/sys/netinet/
H A Dsctp_timer.c105 stcb, 0, in sctp_threshold_management()
141 (void *)&stcb->asoc, stcb->asoc.overall_error_count, in sctp_threshold_management()
927 stcb->asoc.sat_t3_recovery_tsn = stcb->asoc.sending_seq; in sctp_t3rxt_timer()
980 lchk = sctp_try_advance_peer_ack_point(stcb, &stcb->asoc); in sctp_t3rxt_timer()
983 send_forward_tsn(stcb, &stcb->asoc); in sctp_t3rxt_timer()
1361 if (stcb->asoc.ss_functions.sctp_ss_is_empty(stcb, &stcb->asoc)) { in sctp_audit_stream_queues_for_size()
1363 stcb->asoc.ss_functions.sctp_ss_init(stcb, &stcb->asoc); in sctp_audit_stream_queues_for_size()
1364 if (!stcb->asoc.ss_functions.sctp_ss_is_empty(stcb, &stcb->asoc)) { in sctp_audit_stream_queues_for_size()
1496 stcb, in sctp_pathmtu_timer()
1582 stcb->sctp_ep, stcb, net); in sctp_autoclose_timer()
[all …]
H A Dsctp_input.c655 stcb->sctp_ep, stcb, NULL, in sctp_handle_heartbeat_ack()
715 sctp_toss_old_cookies(stcb, &stcb->asoc); in sctp_handle_nat_colliding_state()
826 sctp_chunk_output(stcb->sctp_ep, stcb, in sctp_start_net_timers()
935 stcb->sctp_ep, stcb, net); in sctp_handle_shutdown()
1162 sctp_toss_old_cookies(stcb, &stcb->asoc); in sctp_handle_error()
2799 stcb->sctp_ep, stcb, net); in sctp_handle_cookie_ack()
2801 stcb->sctp_ep, stcb, NULL); in sctp_handle_cookie_ack()
2819 stcb->sctp_ep, stcb, NULL); in sctp_handle_cookie_ack()
2831 stcb->sctp_ep, stcb, in sctp_handle_cookie_ack()
3272 send_forward_tsn(stcb, &stcb->asoc); in process_chunk_drop()
[all …]
H A Dsctp_var.h50 if (stcb) { \
57 if (stcb) { \
212 if (stcb) { \
259 stcb->asoc.fslog[stcb->asoc.fs_index].total_flight = stcb->asoc.total_flight; \
262 stcb->asoc.fslog[stcb->asoc.fs_index].sent = tp1->sent; \
263 stcb->asoc.fslog[stcb->asoc.fs_index].incr = 0; \
264 stcb->asoc.fslog[stcb->asoc.fs_index].decr = 1; \
280 stcb->asoc.fslog[stcb->asoc.fs_index].total_flight = stcb->asoc.total_flight; \
283 stcb->asoc.fslog[stcb->asoc.fs_index].sent = tp1->sent; \
284 stcb->asoc.fslog[stcb->asoc.fs_index].incr = 1; \
[all …]
H A Dsctputil.c75 sctp_clog.x.sb.stcb = stcb; in sctp_sblog()
101 sctp_clog.x.close.stcb = (void *)stcb; in sctp_log_closing()
143 sctp_clog.x.strlog.stcb = stcb; in sctp_log_strm_del_alt()
165 sctp_clog.x.nagle.stcb = (void *)stcb; in sctp_log_nagle_event()
290 sctp_clog.x.strlog.stcb = control->stcb; in sctp_log_strm_del()
502 sctp_clog.x.wake.stcb = (void *)stcb; in sctp_wakeup_log()
1757 type, stcb, stcb->sctp_ep)); in sctp_timeout_handler()
2165 t_type, stcb, stcb->sctp_ep)); in sctp_timer_start()
2622 t_type, stcb, stcb->sctp_ep)); in sctp_timer_stop()
4827 if (control->stcb == stcb) { in sctp_pull_off_control_to_new_inp()
[all …]
H A Dsctp_usrreq.c728 stcb->sctp_ep, stcb, netp); in sctp_disconnect()
730 stcb->sctp_ep, stcb, NULL); in sctp_disconnect()
940 stcb->sctp_ep, stcb, netp); in sctp_shutdown()
942 stcb->sctp_ep, stcb, NULL); in sctp_shutdown()
1782 … (stcb->asoc.ss_functions.sctp_ss_get_value(stcb, &stcb->asoc, &stcb->asoc.strmout[av->stream_id],
4059 stcb->asoc.ss_functions.sctp_ss_clear(stcb, &stcb->asoc, true);
4062 stcb->asoc.ss_functions.sctp_ss_init(stcb, &stcb->asoc);
4080 stcb->asoc.ss_functions.sctp_ss_clear(stcb, &stcb->asoc, true);
4083 stcb->asoc.ss_functions.sctp_ss_init(stcb, &stcb->asoc);
5387 stcb->sctp_ep, stcb, net,
[all …]
H A Dsctp_asconf.c571 stcb->sctp_ep, stcb, NULL, in sctp_process_asconf_set_primary()
583 sctp_delete_prim_timer(stcb->sctp_ep, stcb); in sctp_process_asconf_set_primary()
1014 error = sctp_t3rxt_timer(stcb->sctp_ep, stcb, in sctp_assoc_immediate_retrans()
1022 sctp_auditing(4, stcb->sctp_ep, stcb, stcb->asoc.deleted_primary); in sctp_assoc_immediate_retrans()
1404 stcb->asoc.cc_functions.sctp_set_initial_cc_param(stcb, in sctp_asconf_queue_add()
2011 stcb, stcb->asoc.primary_destination); in sctp_addr_mgmt_assoc()
2309 stcb->sctp_ep, stcb, in sctp_set_primary_ip_address_sa()
2865 stcb->sctp_ep, stcb, in sctp_process_initack_addresses()
3040 sctp_addr_mgmt_assoc(stcb->sctp_ep, stcb, laddr->ifa, in sctp_check_address_list_ep()
3067 if (stcb) { in sctp_check_address_list_all()
[all …]
H A Dsctp_indata.c159 read_queue_e->stcb = stcb; in sctp_build_readq_entry()
635 stcb = control->stcb; in sctp_setup_tail_pointer()
677 stcb = control->stcb; in sctp_add_to_tail_pointer()
744 nc->stcb = control->stcb; in sctp_build_readq_entry_from_ctl()
2576 stcb->sctp_ep, stcb, NULL, in sctp_sack_check()
2616 stcb->sctp_ep, stcb, NULL); in sctp_sack_check()
2652 sctp_set_rwnd(stcb, &stcb->asoc); in sctp_process_data()
4164 stcb->sctp_ep, stcb, net, in sctp_express_handle_sack()
4317 stcb->sctp_ep, stcb, netp); in sctp_express_handle_sack()
4319 stcb->sctp_ep, stcb, NULL); in sctp_express_handle_sack()
[all …]
H A Dsctp_pcb.c1460 return (stcb); in sctp_findassociation_ep_asocid()
1881 return (stcb); in sctp_findassociation_addr_sa()
2095 if (stcb) { in sctp_findassociation_addr()
2135 return (stcb); in sctp_findassociation_addr()
3302 if ((*stcb->asoc.ss_functions.sctp_ss_is_user_msgs_incomplete) (stcb, &stcb->asoc)) { in sctp_inpcb_free()
3333 if ((*stcb->asoc.ss_functions.sctp_ss_is_user_msgs_incomplete) (stcb, &stcb->asoc)) { in sctp_inpcb_free()
3807 stcb, in sctp_add_remote_addr()
4192 memset(stcb, 0, sizeof(*stcb)); in sctp_aloc_assoc_locked()
4346 stcb->sctp_ep, stcb, NULL); in sctp_remove_net()
4629 if (sq->stcb == stcb) { in sctp_free_assoc()
[all …]
H A Dsctp_output.c3622 stcb->asoc.strm_realoutsize = stcb->asoc.streamoutcnt = stcb->asoc.pre_open_streams; in sctp_process_cmsgs_for_init()
3628 stcb->asoc.ss_functions.sctp_ss_init_stream(stcb, &stcb->asoc.strmout[i], NULL); in sctp_process_cmsgs_for_init()
6488 stcb->asoc.ss_functions.sctp_ss_add_to_stream(stcb, &stcb->asoc, strm, sp); in sctp_msg_append()
10609 stcb->sctp_ep, stcb, NULL, in sctp_send_sack()
10612 stcb->sctp_ep, stcb, NULL); in sctp_send_sack()
10678 stcb->sctp_ep, stcb, NULL, in sctp_send_sack()
10681 stcb->sctp_ep, stcb, NULL); in sctp_send_sack()
11087 stcb->sctp_ep->sctp_lport, stcb->rport, in sctp_send_shutdown_complete()
12275 stcb->asoc.ss_functions.sctp_ss_clear(stcb, &stcb->asoc, false); in sctp_send_str_reset_req()
12306 stcb->asoc.ss_functions.sctp_ss_init(stcb, &stcb->asoc); in sctp_send_str_reset_req()
[all …]
H A Dsctp_ss_functions.c54 SCTP_TCB_LOCK_ASSERT(stcb); in sctp_ss_default_init()
65 stcb->asoc.ss_functions.sctp_ss_add_to_stream(stcb, asoc, in sctp_ss_default_init()
76 SCTP_TCB_LOCK_ASSERT(stcb); in sctp_ss_default_clear()
93 SCTP_TCB_LOCK_ASSERT(stcb); in sctp_ss_default_init_stream()
112 SCTP_TCB_LOCK_ASSERT(stcb); in sctp_ss_default_add()
126 SCTP_TCB_LOCK_ASSERT(stcb); in sctp_ss_default_is_empty()
136 SCTP_TCB_LOCK_ASSERT(stcb); in sctp_ss_default_remove()
170 SCTP_TCB_LOCK_ASSERT(stcb); in sctp_ss_default_select()
230 SCTP_TCB_LOCK_ASSERT(stcb); in sctp_ss_default_scheduled()
250 SCTP_TCB_LOCK_ASSERT(stcb); in sctp_ss_default_packet_done()
[all …]
H A Dsctp_auth.c1144 if (stcb == NULL) in sctp_clear_cachedkeys()
1165 struct sctp_tcb *stcb; in sctp_clear_cachedkeys_ep() local
1172 SCTP_TCB_LOCK(stcb); in sctp_clear_cachedkeys_ep()
1187 if (stcb == NULL) in sctp_delete_sharedkey()
1300 if (stcb == NULL) in sctp_deact_sharedkey()
1480 sctp_clear_cachedkeys(stcb, stcb->asoc.authinfo.assoc_keyid); in sctp_auth_get_cookie_params()
1481 sctp_clear_cachedkeys(stcb, stcb->asoc.authinfo.recv_keyid); in sctp_auth_get_cookie_params()
1484 stcb->asoc.peer_hmac_id = sctp_negotiate_hmacid(stcb->asoc.peer_hmacs, in sctp_auth_get_cookie_params()
1489 stcb->asoc.authinfo.active_keyid = stcb->sctp_ep->sctp_ep.default_keyid; in sctp_auth_get_cookie_params()
1743 control = sctp_build_readq_entry(stcb, stcb->asoc.primary_destination, in sctp_notify_authentication()
[all …]
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()
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()
1256 ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), in sctp_cwnd_update_after_packet_dropped()
1732 stcb->sctp_ep, stcb, net, in sctp_hs_cwnd_update_after_fr()
1735 stcb->sctp_ep, stcb, net); in sctp_hs_cwnd_update_after_fr()
2265 stcb->sctp_ep, stcb, net, in sctp_htcp_cwnd_update_after_fr()
[all …]
H A Dsctp_peeloff.c51 struct sctp_tcb *stcb; in sctp_can_peel_off() local
69 if (stcb == NULL) { in sctp_can_peel_off()
73 state = SCTP_GET_STATE(stcb); in sctp_can_peel_off()
76 SCTP_TCB_UNLOCK(stcb); in sctp_can_peel_off()
80 SCTP_TCB_UNLOCK(stcb); in sctp_can_peel_off()
89 struct sctp_tcb *stcb; in sctp_do_peeloff() local
98 if (stcb == NULL) { in sctp_do_peeloff()
103 state = SCTP_GET_STATE(stcb); in sctp_do_peeloff()
106 SCTP_TCB_UNLOCK(stcb); in sctp_do_peeloff()
148 atomic_add_int(&stcb->asoc.refcnt, 1); in sctp_do_peeloff()
[all …]
H A Dsctputil.h60 #define sctp_get_associd(stcb) ((sctp_assoc_t)stcb->asoc.assoc_id) argument
110 struct sctp_tcb *stcb,
146 struct sctp_tcb *stcb, int waitflags);
231 int sctp_local_addr_count(struct sctp_tcb *stcb);
237 #define sctp_free_spbufspace(stcb, asoc, sp) \ argument
245 if (stcb->sctp_socket && ((stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) || \
252 #define sctp_snd_sb_alloc(stcb, sz) \ argument
255 if ((stcb->sctp_socket != NULL) && \
258 SCTP_SB_INCR(&stcb->sctp_socket->so_snd, sz); \
277 sctp_wakeup_log(struct sctp_tcb *stcb,
[all …]
H A Dsctp_sysctl.c204 if (stcb != NULL) { in sctp_sysctl_copy_out_local_addresses()
260 if (stcb != NULL) { in sctp_sysctl_copy_out_local_addresses()
336 if (stcb != NULL && sctp_is_addr_restricted(stcb, laddr->ifa)) in sctp_sysctl_copy_out_local_addresses()
381 struct sctp_tcb *stcb; in sctp_sysctl_handle_assoclist() local
471 SCTP_TCB_LOCK(stcb); in sctp_sysctl_handle_assoclist()
473 SCTP_TCB_UNLOCK(stcb); in sctp_sysctl_handle_assoclist()
488 xstcb.T1_expireries = stcb->asoc.timoinit + stcb->asoc.timocookie; in sctp_sysctl_handle_assoclist()
489 xstcb.T2_expireries = stcb->asoc.timoshutdown + stcb->asoc.timoshutdownack; in sctp_sysctl_handle_assoclist()
497 xstcb.local_tag = stcb->asoc.my_vtag; in sctp_sysctl_handle_assoclist()
503 xstcb.mtu = stcb->asoc.smallest_mtu; in sctp_sysctl_handle_assoclist()
[all …]
H A Dsctp_auth.h147 extern void sctp_auth_key_acquire(struct sctp_tcb *stcb, uint16_t keyid);
149 sctp_auth_key_release(struct sctp_tcb *stcb, uint16_t keyid,
191 extern void sctp_clear_cachedkeys(struct sctp_tcb *stcb, uint16_t keyid);
193 extern int sctp_delete_sharedkey(struct sctp_tcb *stcb, uint16_t keyid);
195 extern int sctp_auth_setactivekey(struct sctp_tcb *stcb, uint16_t keyid);
197 extern int sctp_deact_sharedkey(struct sctp_tcb *stcb, uint16_t keyid);
201 sctp_auth_get_cookie_params(struct sctp_tcb *stcb, struct mbuf *m,
209 struct sctp_tcb *stcb, uint8_t chunk);
211 sctp_handle_auth(struct sctp_tcb *stcb, struct sctp_auth_chunk *ch,
214 sctp_notify_authentication(struct sctp_tcb *stcb,
[all …]
H A Dsctp_structs.h154 struct sctp_tcb *stcb; /* current* assoc */ member
488 struct sctp_tcb *stcb; /* assoc, used for window update */ member
674 void *stcb; member
702 void (*sctp_cwnd_update_after_sack) (struct sctp_tcb *stcb,
706 void (*sctp_cwnd_update_after_fr) (struct sctp_tcb *stcb,
708 void (*sctp_cwnd_update_after_timeout) (struct sctp_tcb *stcb,
710 void (*sctp_cwnd_update_after_ecn_echo) (struct sctp_tcb *stcb,
715 void (*sctp_cwnd_update_after_output) (struct sctp_tcb *stcb,
717 void (*sctp_cwnd_update_packet_transmitted) (struct sctp_tcb *stcb,
721 void (*sctp_cwnd_new_transmission_begins) (struct sctp_tcb *stcb,
[all …]
H A Dsctp_indata.h41 sctp_build_readq_entry(struct sctp_tcb *stcb,
65 (_ctl)->stcb = (in_it); \
80 sctp_calc_rwnd(struct sctp_tcb *stcb, struct sctp_association *asoc);
83 sctp_express_handle_sack(struct sctp_tcb *stcb, uint32_t cumack,
88 struct sctp_tcb *stcb,
110 void sctp_slide_mapping_arrays(struct sctp_tcb *stcb);
H A Dsctp_output.h44 struct sctp_tcb *stcb,
62 struct sctp_tcb *stcb,
99 sctp_remove_from_wheel(struct sctp_tcb *stcb,
127 void sctp_move_chunks_from_net(struct sctp_tcb *stcb, struct sctp_nets *net);
129 #define SCTP_DATA_CHUNK_OVERHEAD(stcb) ((stcb)->asoc.idata_supported ? \ argument
H A Dsctp_input.h49 sctp_find_stream_reset(struct sctp_tcb *stcb, uint32_t seq,
53 sctp_reset_in_stream(struct sctp_tcb *stcb, uint32_t number_entries,
56 int sctp_is_there_unsent_data(struct sctp_tcb *stcb, int so_locked);
H A Dsctp_asconf.h64 struct sctp_tcb *stcb,
82 sctp_asconf_send_nat_state_update(struct sctp_tcb *stcb,
H A Dsctp_os_bsd.h177 #define SCTP_LTRACE_ERR_RET_PKT(m, inp, stcb, net, file, err) \ argument
180 m, inp, stcb, net, file, __LINE__, err);
181 #define SCTP_LTRACE_ERR_RET(inp, stcb, net, file, err) \ argument
184 inp, stcb, net, file, __LINE__, err);
186 #define SCTP_LTRACE_ERR_RET_PKT(m, inp, stcb, net, file, err) argument
187 #define SCTP_LTRACE_ERR_RET(inp, stcb, net, file, err) argument
/freebsd-14.2/crypto/openssl/crypto/
H A Dself_test_core.c37 SELF_TEST_CB *stcb; in self_test_set_callback_new() local
39 stcb = OPENSSL_zalloc(sizeof(*stcb)); in self_test_set_callback_new()
40 return stcb; in self_test_set_callback_new()
43 static void self_test_set_callback_free(void *stcb) in self_test_set_callback_free() argument
45 OPENSSL_free(stcb); in self_test_set_callback_free()
63 SELF_TEST_CB *stcb = get_self_test_callback(libctx); in OSSL_SELF_TEST_set_callback() local
65 if (stcb != NULL) { in OSSL_SELF_TEST_set_callback()
66 stcb->cb = cb; in OSSL_SELF_TEST_set_callback()
67 stcb->cbarg = cbarg; in OSSL_SELF_TEST_set_callback()
77 *cb = (stcb != NULL ? stcb->cb : NULL); in OSSL_SELF_TEST_get_callback()
[all …]
/freebsd-14.2/sys/netinet6/
H A Dsctp6_usrreq.c195 SCTP_TCB_UNLOCK(stcb); in sctp6_notify()
251 struct sctp_tcb *stcb; in sctp6_ctlinput() local
296 if ((stcb != NULL) && in sctp6_ctlinput()
355 if (stcb) { in sctp6_ctlinput()
372 struct sctp_tcb *stcb; in sctp6_getcred() local
839 if (stcb) { in sctp6_connect()
849 if (stcb == NULL) { in sctp6_connect()
856 if (stcb != NULL) { in sctp6_connect()
869 if (stcb == NULL) { in sctp6_connect()
1013 if (stcb) { in sctp6_peeraddr()
[all …]
/freebsd-14.2/crypto/openssl/providers/implementations/rands/
H A Dcrngt.c118 OSSL_CALLBACK *stcb = NULL; in ossl_crngt_get_entropy() local
151 OSSL_SELF_TEST_get_callback(libctx, &stcb, &stcbarg); in ossl_crngt_get_entropy()
152 if (stcb != NULL) { in ossl_crngt_get_entropy()
153 st = OSSL_SELF_TEST_new(stcb, stcbarg); in ossl_crngt_get_entropy()

12