Home
last modified time | relevance | path

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

12

/freebsd/sys/netinet/
H A Dsctp_timer.c86 sctp_threshold_management(struct sctp_inpcb *inp, struct sctp_tcb *stcb, in sctp_threshold_management() argument
89 KASSERT(stcb != NULL, ("stcb is NULL")); in sctp_threshold_management()
90 SCTP_TCB_LOCK_ASSERT(stcb); in sctp_threshold_management()
104 stcb, 0, in sctp_threshold_management()
112 sctp_send_hb(stcb, net, SCTP_SO_NOT_LOCKED); in sctp_threshold_management()
114 inp, stcb, net, in sctp_threshold_management()
116 sctp_timer_start(SCTP_TIMER_TYPE_HEARTBEAT, inp, stcb, net); in sctp_threshold_management()
122 stcb->asoc.overall_error_count, in sctp_threshold_management()
123 (stcb->asoc.overall_error_count + 1), in sctp_threshold_management()
127 stcb->asoc.overall_error_count++; in sctp_threshold_management()
[all …]
H A Dsctp_input.c56 sctp_stop_all_cookie_timers(struct sctp_tcb *stcb) in sctp_stop_all_cookie_timers() argument
65 SCTP_TCB_LOCK_ASSERT(stcb); in sctp_stop_all_cookie_timers()
66 TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) { in sctp_stop_all_cookie_timers()
69 stcb->sctp_ep, in sctp_stop_all_cookie_timers()
70 stcb, in sctp_stop_all_cookie_timers()
74 stcb->sctp_ep, in sctp_stop_all_cookie_timers()
75 stcb, in sctp_stop_all_cookie_timers()
86 struct sctp_tcb *stcb, struct sctp_nets *net, in sctp_handle_init() argument
94 (void *)stcb); in sctp_handle_init()
95 if (stcb == NULL) { in sctp_handle_init()
[all …]
H A Dsctp_var.h49 #define sctp_stcb_feature_on(inp, stcb, feature) {\ argument
50 if (stcb) { \
51 stcb->asoc.sctp_features |= feature; \
56 #define sctp_stcb_feature_off(inp, stcb, feature) {\ argument
57 if (stcb) { \
58 stcb->asoc.sctp_features &= ~feature; \
63 #define sctp_stcb_is_feature_on(inp, stcb, feature) \ argument
64 (((stcb != NULL) && \
65 ((stcb->asoc.sctp_features & feature) == feature)) || \
66 ((stcb == NULL) && (inp != NULL) && \
[all …]
H A Dsctputil.c70 sctp_sblog(struct sockbuf *sb, struct sctp_tcb *stcb, int from, int incr) in sctp_sblog() argument
75 sctp_clog.x.sb.stcb = stcb; in sctp_sblog()
77 if (stcb) in sctp_sblog()
78 sctp_clog.x.sb.stcb_sbcc = stcb->asoc.sb_cc; in sctp_sblog()
93 sctp_log_closing(struct sctp_inpcb *inp, struct sctp_tcb *stcb, int16_t loc) in sctp_log_closing() argument
100 if (stcb) { in sctp_log_closing()
101 sctp_clog.x.close.stcb = (void *)stcb; in sctp_log_closing()
102 sctp_clog.x.close.state = (uint16_t)stcb->asoc.state; in sctp_log_closing()
104 sctp_clog.x.close.stcb = 0; in sctp_log_closing()
138 sctp_log_strm_del_alt(struct sctp_tcb *stcb, uint32_t tsn, uint16_t sseq, uint16_t stream, int from) in sctp_log_strm_del_alt() argument
[all …]
H A Dsctp_usrreq.c106 sctp_pathmtu_adjustment(struct sctp_tcb *stcb, uint32_t mtu, bool resend) in sctp_pathmtu_adjustment() argument
112 asoc = &stcb->asoc; in sctp_pathmtu_adjustment()
117 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_BOUND_V6) { in sctp_pathmtu_adjustment()
148 sctp_total_flight_decrease(stcb, chk); in sctp_pathmtu_adjustment()
172 struct sctp_tcb *stcb, in sctp_notify() argument
183 SCTP_TCB_UNLOCK(stcb); in sctp_notify()
200 stcb, 0, in sctp_notify()
203 SCTP_TCB_UNLOCK(stcb); in sctp_notify()
207 sctp_abort_notification(stcb, true, false, 0, NULL, SCTP_SO_NOT_LOCKED); in sctp_notify()
208 (void)sctp_free_assoc(inp, stcb, SCTP_NORMAL_PROC, in sctp_notify()
[all …]
H A Dsctp_asconf.c150 struct sctp_tcb *stcb, int send_hb, int response_required) in sctp_process_asconf_add_ip() argument
197 sin->sin_port = stcb->rport; in sctp_process_asconf_add_ip()
220 sin6->sin6_port = stcb->rport; in sctp_process_asconf_add_ip()
252 } else if (sctp_add_remote_addr(stcb, sa, &net, stcb->asoc.port, in sctp_process_asconf_add_ip()
267 sctp_ulp_notify(SCTP_NOTIFY_ASCONF_ADD_IP, stcb, 0, sa, SCTP_SO_NOT_LOCKED); in sctp_process_asconf_add_ip()
268 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()
270 stcb, net); in sctp_process_asconf_add_ip()
272 sctp_send_hb(stcb, net, SCTP_SO_NOT_LOCKED); in sctp_process_asconf_add_ip()
280 sctp_asconf_del_remote_addrs_except(struct sctp_tcb *stcb, struct sockaddr *src) in sctp_asconf_del_remote_addrs_except() argument
[all …]
H A Dsctp_indata.c64 struct sctp_tcb *stcb,
69 sctp_set_rwnd(struct sctp_tcb *stcb, struct sctp_association *asoc) in sctp_set_rwnd() argument
71 asoc->my_rwnd = sctp_calc_rwnd(stcb, asoc); in sctp_set_rwnd()
76 sctp_calc_rwnd(struct sctp_tcb *stcb, struct sctp_association *asoc) in sctp_calc_rwnd() argument
86 if (stcb->sctp_socket == NULL) { in sctp_calc_rwnd()
94 if (stcb->asoc.sb_cc == 0 && in sctp_calc_rwnd()
98 calc = max(SCTP_SB_LIMIT_RCV(stcb->sctp_socket), SCTP_MINIMAL_RWND); in sctp_calc_rwnd()
102 calc = (uint32_t)sctp_sbspace(&stcb->asoc, &stcb->sctp_socket->so_rcv); in sctp_calc_rwnd()
117 calc = sctp_sbspace_sub(calc, stcb->asoc.my_rwnd_control_len); in sctp_calc_rwnd()
122 if (calc < stcb->asoc.my_rwnd_control_len) { in sctp_calc_rwnd()
[all …]
H A Dsctp_pcb.c696 sctp_does_stcb_own_this_addr(struct sctp_tcb *stcb, struct sockaddr *to) in sctp_does_stcb_own_this_addr() argument
709 loopback_scope = stcb->asoc.scope.loopback_scope; in sctp_does_stcb_own_this_addr()
711 ipv4_local_scope = stcb->asoc.scope.ipv4_local_scope; in sctp_does_stcb_own_this_addr()
712 ipv4_addr_legal = stcb->asoc.scope.ipv4_addr_legal; in sctp_does_stcb_own_this_addr()
715 local_scope = stcb->asoc.scope.local_scope; in sctp_does_stcb_own_this_addr()
716 site_scope = stcb->asoc.scope.site_scope; in sctp_does_stcb_own_this_addr()
717 ipv6_addr_legal = stcb->asoc.scope.ipv6_addr_legal; in sctp_does_stcb_own_this_addr()
721 vrf = sctp_find_vrf(stcb->asoc.vrf_id); in sctp_does_stcb_own_this_addr()
728 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_BOUNDALL) { in sctp_does_stcb_own_this_addr()
735 if (sctp_is_addr_restricted(stcb, sctp_ifa) && in sctp_does_stcb_own_this_addr()
[all …]
H A Dsctp_output.c2024 sctp_add_addresses_to_i_ia(struct sctp_inpcb *inp, struct sctp_tcb *stcb, in sctp_add_addresses_to_i_ia() argument
2074 if (sctp_is_addr_restricted(stcb, sctp_ifap)) { in sctp_add_addresses_to_i_ia()
2117 if (sctp_is_addr_restricted(stcb, sctp_ifap)) { in sctp_add_addresses_to_i_ia()
2404 sctp_is_addr_restricted(struct sctp_tcb *stcb, struct sctp_ifa *ifa) in sctp_is_addr_restricted() argument
2408 if (stcb == NULL) { in sctp_is_addr_restricted()
2412 LIST_FOREACH(laddr, &stcb->asoc.sctp_restricted_addrs, sctp_nxt_addr) { in sctp_is_addr_restricted()
2580 struct sctp_tcb *stcb, in sctp_choose_boundspecific_stcb() argument
2637 (sctp_is_addr_restricted(stcb, sifa))) || in sctp_choose_boundspecific_stcb()
2639 (sctp_is_addr_restricted(stcb, sifa)) && in sctp_choose_boundspecific_stcb()
2640 (!sctp_is_addr_pending(stcb, sifa)))) { in sctp_choose_boundspecific_stcb()
[all …]
H A Dsctp_ss_functions.c50 sctp_ss_default_init(struct sctp_tcb *stcb, struct sctp_association *asoc) in sctp_ss_default_init() argument
54 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()
73 sctp_ss_default_clear(struct sctp_tcb *stcb, struct sctp_association *asoc, in sctp_ss_default_clear() argument
76 SCTP_TCB_LOCK_ASSERT(stcb); in sctp_ss_default_clear()
91 sctp_ss_default_init_stream(struct sctp_tcb *stcb, struct sctp_stream_out *strq, struct sctp_stream… in sctp_ss_default_init_stream() argument
93 SCTP_TCB_LOCK_ASSERT(stcb); in sctp_ss_default_init_stream()
96 if (stcb->asoc.ss_data.locked_on_sending == with_strq) { in sctp_ss_default_init_stream()
97 stcb->asoc.ss_data.locked_on_sending = strq; in sctp_ss_default_init_stream()
99 if (stcb->asoc.ss_data.last_out_stream == with_strq) { in sctp_ss_default_init_stream()
[all …]
H A Dsctp_auth.c544 sctp_auth_key_acquire(struct sctp_tcb *stcb, uint16_t key_id) in sctp_auth_key_acquire() argument
549 skey = sctp_find_sharedkey(&stcb->asoc.shared_keys, key_id); in sctp_auth_key_acquire()
556 __func__, (void *)stcb, key_id, skey->refcount); in sctp_auth_key_acquire()
561 sctp_auth_key_release(struct sctp_tcb *stcb, uint16_t key_id, int so_locked) in sctp_auth_key_release() argument
566 skey = sctp_find_sharedkey(&stcb->asoc.shared_keys, key_id); in sctp_auth_key_release()
572 __func__, (void *)stcb, key_id, skey->refcount); in sctp_auth_key_release()
577 sctp_ulp_notify(SCTP_NOTIFY_AUTH_FREE_KEY, stcb, in sctp_auth_key_release()
581 __func__, (void *)stcb, key_id, skey->refcount); in sctp_auth_key_release()
1142 sctp_clear_cachedkeys(struct sctp_tcb *stcb, uint16_t keyid) in sctp_clear_cachedkeys() argument
1144 if (stcb == NULL) in sctp_clear_cachedkeys()
[all …]
H A Dsctp_cc_functions.c74 sctp_set_initial_cc_param(struct sctp_tcb *stcb, struct sctp_nets *net) in sctp_set_initial_cc_param() argument
79 assoc = &stcb->asoc; in sctp_set_initial_cc_param()
93 if ((stcb->asoc.sctp_cmt_on_off == SCTP_CMT_RPV1) || in sctp_set_initial_cc_param()
94 (stcb->asoc.sctp_cmt_on_off == SCTP_CMT_RPV2)) { in sctp_set_initial_cc_param()
104 stcb->asoc.my_vtag, ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), net, in sctp_set_initial_cc_param()
108 sctp_log_cwnd(stcb, net, 0, SCTP_CWND_INITIALIZATION); in sctp_set_initial_cc_param()
113 sctp_cwnd_update_after_fr(struct sctp_tcb *stcb, in sctp_cwnd_update_after_fr() argument
202 stcb->asoc.my_vtag, ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), net, in sctp_cwnd_update_after_fr()
205 sctp_log_cwnd(stcb, net, (net->cwnd - old_cwnd), in sctp_cwnd_update_after_fr()
234 stcb->sctp_ep, stcb, net, in sctp_cwnd_update_after_fr()
[all …]
H A Dsctputil.h44 void sctp_print_out_track_log(struct sctp_tcb *stcb);
60 #define sctp_get_associd(stcb) ((sctp_assoc_t)stcb->asoc.assoc_id) argument
103 sctp_wakeup_the_read_socket(struct sctp_inpcb *inp, struct sctp_tcb *stcb,
110 struct sctp_tcb *stcb,
146 struct sctp_tcb *stcb, int waitflags);
183 sctp_connectx_helper_add(struct sctp_tcb *stcb, struct sockaddr *addr,
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) || \
246 (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL))) { \
[all …]
H A Dsctp_peeloff.c51 struct sctp_tcb *stcb; in sctp_can_peel_off() local
68 stcb = sctp_findassociation_ep_asocid(inp, assoc_id, 1); in sctp_can_peel_off()
69 if (stcb == NULL) { in sctp_can_peel_off()
70 SCTP_LTRACE_ERR_RET(inp, stcb, NULL, SCTP_FROM_SCTP_PEELOFF, ENOENT); 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()
77 SCTP_LTRACE_ERR_RET(inp, stcb, NULL, SCTP_FROM_SCTP_PEELOFF, ENOTCONN); 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
97 stcb = sctp_findassociation_ep_asocid(inp, assoc_id, 1); in sctp_do_peeloff()
[all …]
H A Dsctp_sysctl.c185 sctp_sysctl_copy_out_local_addresses(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sysctl_r… in sctp_sysctl_copy_out_local_addresses() argument
204 if (stcb != NULL) { in sctp_sysctl_copy_out_local_addresses()
206 loopback_scope = stcb->asoc.scope.loopback_scope; in sctp_sysctl_copy_out_local_addresses()
208 ipv4_local_scope = stcb->asoc.scope.ipv4_local_scope; in sctp_sysctl_copy_out_local_addresses()
209 ipv4_addr_legal = stcb->asoc.scope.ipv4_addr_legal; in sctp_sysctl_copy_out_local_addresses()
212 local_scope = stcb->asoc.scope.local_scope; in sctp_sysctl_copy_out_local_addresses()
213 site_scope = stcb->asoc.scope.site_scope; in sctp_sysctl_copy_out_local_addresses()
214 ipv6_addr_legal = stcb->asoc.scope.ipv6_addr_legal; in sctp_sysctl_copy_out_local_addresses()
260 if (stcb != NULL) { in sctp_sysctl_copy_out_local_addresses()
265 if (sctp_is_addr_restricted(stcb, sctp_ifa)) { in sctp_sysctl_copy_out_local_addresses()
[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,
205 struct sctp_auth_chunk *auth, struct sctp_tcb *stcb, uint16_t key_id);
209 struct sctp_tcb *stcb, uint8_t chunk);
211 sctp_handle_auth(struct sctp_tcb *stcb, struct sctp_auth_chunk *ch,
[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
701 void (*sctp_set_initial_cc_param) (struct sctp_tcb *stcb, struct sctp_nets *net);
702 void (*sctp_cwnd_update_after_sack) (struct sctp_tcb *stcb,
705 void (*sctp_cwnd_update_exit_pf) (struct sctp_tcb *stcb, struct sctp_nets *net);
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,
712 void (*sctp_cwnd_update_after_packet_dropped) (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_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
H A Dsctp_asconf.h64 struct sctp_tcb *stcb,
82 sctp_asconf_send_nat_state_update(struct sctp_tcb *stcb,
/freebsd/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()
74 SELF_TEST_CB *stcb = get_self_test_callback(libctx); in OSSL_SELF_TEST_get_callback() local
[all …]
/freebsd/sys/netinet6/
H A Dsctp6_usrreq.c172 struct sctp_tcb *stcb, in sctp6_notify() argument
192 stcb, 0, (void *)net, SCTP_SO_NOT_LOCKED); in sctp6_notify()
195 SCTP_TCB_UNLOCK(stcb); in sctp6_notify()
200 sctp_abort_notification(stcb, true, false, 0, NULL, SCTP_SO_NOT_LOCKED); in sctp6_notify()
201 (void)sctp_free_assoc(inp, stcb, SCTP_NORMAL_PROC, in sctp6_notify()
204 SCTP_TCB_UNLOCK(stcb); in sctp6_notify()
209 SCTP_TCB_UNLOCK(stcb); in sctp6_notify()
214 sctp_timer_stop(SCTP_TIMER_TYPE_PATHMTURAISE, inp, stcb, net, in sctp6_notify()
232 if (stcb->asoc.smallest_mtu > next_mtu) { in sctp6_notify()
233 sctp_pathmtu_adjustment(stcb, next_mtu, true); in sctp6_notify()
[all …]
/freebsd/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