Home
last modified time | relevance | path

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

12

/external/chromium_org/third_party/usrsctp/usrsctplib/netinet/
Dsctp_timer.c97 sctp_threshold_management(struct sctp_inpcb *inp, struct sctp_tcb *stcb, in sctp_threshold_management() argument
112 stcb, 0, in sctp_threshold_management()
120 sctp_send_hb(stcb, net, SCTP_SO_NOT_LOCKED); in sctp_threshold_management()
121 …sctp_timer_stop(SCTP_TIMER_TYPE_HEARTBEAT, stcb->sctp_ep, stcb, net, SCTP_FROM_SCTP_TIMER + SCTP_L… in sctp_threshold_management()
122 sctp_timer_start(SCTP_TIMER_TYPE_HEARTBEAT, stcb->sctp_ep, stcb, net); in sctp_threshold_management()
126 if (stcb == NULL) in sctp_threshold_management()
133 stcb->asoc.overall_error_count, in sctp_threshold_management()
134 (stcb->asoc.overall_error_count+1), in sctp_threshold_management()
138 stcb->asoc.overall_error_count++; in sctp_threshold_management()
143 stcb->asoc.overall_error_count, in sctp_threshold_management()
[all …]
Dsctp_input.c65 sctp_stop_all_cookie_timers(struct sctp_tcb *stcb) in sctp_stop_all_cookie_timers() argument
74 SCTP_TCB_LOCK_ASSERT(stcb); in sctp_stop_all_cookie_timers()
75 TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) { in sctp_stop_all_cookie_timers()
78 stcb->sctp_ep, in sctp_stop_all_cookie_timers()
79 stcb, in sctp_stop_all_cookie_timers()
83 stcb->sctp_ep, in sctp_stop_all_cookie_timers()
84 stcb, in sctp_stop_all_cookie_timers()
95 struct sctp_tcb *stcb, int *abort_no_unlock, in sctp_handle_init() argument
105 (void *)stcb); in sctp_handle_init()
106 if (stcb == NULL) { in sctp_handle_init()
[all …]
Dsctp_var.h55 #define sctp_stcb_feature_on(inp, stcb, feature) {\ argument
56 if (stcb) { \
57 stcb->asoc.sctp_features |= feature; \
62 #define sctp_stcb_feature_off(inp, stcb, feature) {\ argument
63 if (stcb) { \
64 stcb->asoc.sctp_features &= ~feature; \
69 #define sctp_stcb_is_feature_on(inp, stcb, feature) \ argument
70 (((stcb != NULL) && \
71 ((stcb->asoc.sctp_features & feature) == feature)) || \
72 ((stcb == NULL) && (inp != NULL) && \
[all …]
Dsctputil.c84 sctp_sblog(struct sockbuf *sb, struct sctp_tcb *stcb, int from, int incr) in sctp_sblog() argument
89 sctp_clog.x.sb.stcb = stcb; in sctp_sblog()
91 if (stcb) in sctp_sblog()
92 sctp_clog.x.sb.stcb_sbcc = stcb->asoc.sb_cc; in sctp_sblog()
107 sctp_log_closing(struct sctp_inpcb *inp, struct sctp_tcb *stcb, int16_t loc) in sctp_log_closing() argument
114 if (stcb) { in sctp_log_closing()
115 sctp_clog.x.close.stcb = (void *)stcb; in sctp_log_closing()
116 sctp_clog.x.close.state = (uint16_t)stcb->asoc.state; in sctp_log_closing()
118 sctp_clog.x.close.stcb = 0; in sctp_log_closing()
152 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 …]
Dsctp_usrreq.c271 sctp_pathmtu_adjustment(struct sctp_tcb *stcb, uint16_t nxtsz) in sctp_pathmtu_adjustment() argument
277 stcb->asoc.smallest_mtu = nxtsz; in sctp_pathmtu_adjustment()
280 if (sctp_auth_is_required_chunk(SCTP_DATA, stcb->asoc.peer_auth_chunks)) { in sctp_pathmtu_adjustment()
281 overhead += sctp_get_auth_chunk_len(stcb->asoc.peer_hmac_id); in sctp_pathmtu_adjustment()
283 TAILQ_FOREACH(chk, &stcb->asoc.send_queue, sctp_next) { in sctp_pathmtu_adjustment()
288 TAILQ_FOREACH(chk, &stcb->asoc.sent_queue, sctp_next) { in sctp_pathmtu_adjustment()
297 sctp_total_flight_decrease(stcb, chk); in sctp_pathmtu_adjustment()
300 sctp_ucount_incr(stcb->asoc.sent_queue_retran_cnt); in sctp_pathmtu_adjustment()
325 struct sctp_tcb *stcb, in sctp_notify_mbuf() argument
335 if ((inp == NULL) || (stcb == NULL) || (net == NULL) || in sctp_notify_mbuf()
[all …]
Dsctp_asconf.c152 struct sctp_tcb *stcb, int send_hb, int response_required) in sctp_process_asconf_add_ip() argument
195 sin->sin_port = stcb->rport; in sctp_process_asconf_add_ip()
220 sin6->sin6_port = stcb->rport; in sctp_process_asconf_add_ip()
251 } else if (sctp_add_remote_addr(stcb, sa, &net, SCTP_DONOT_SETSCOPE, in sctp_process_asconf_add_ip()
260 sctp_ulp_notify(SCTP_NOTIFY_ASCONF_ADD_IP, stcb, 0, sa, SCTP_SO_NOT_LOCKED); in sctp_process_asconf_add_ip()
265 sctp_timer_start(SCTP_TIMER_TYPE_PATHMTURAISE, stcb->sctp_ep, stcb, net); in sctp_process_asconf_add_ip()
266 sctp_timer_start(SCTP_TIMER_TYPE_HEARTBEAT, stcb->sctp_ep, in sctp_process_asconf_add_ip()
267 stcb, net); in sctp_process_asconf_add_ip()
269 sctp_send_hb(stcb, net, SCTP_SO_NOT_LOCKED); in sctp_process_asconf_add_ip()
276 sctp_asconf_del_remote_addrs_except(struct sctp_tcb *stcb, struct sockaddr *src) in sctp_asconf_del_remote_addrs_except() argument
[all …]
Dsctp_indata.c62 sctp_set_rwnd(struct sctp_tcb *stcb, struct sctp_association *asoc) in sctp_set_rwnd() argument
64 asoc->my_rwnd = sctp_calc_rwnd(stcb, asoc); in sctp_set_rwnd()
69 sctp_calc_rwnd(struct sctp_tcb *stcb, struct sctp_association *asoc) in sctp_calc_rwnd() argument
79 if (stcb->sctp_socket == NULL) in sctp_calc_rwnd()
82 if (stcb->asoc.sb_cc == 0 && in sctp_calc_rwnd()
86 calc = max(SCTP_SB_LIMIT_RCV(stcb->sctp_socket), SCTP_MINIMAL_RWND); in sctp_calc_rwnd()
90 calc = (uint32_t) sctp_sbspace(&stcb->asoc, &stcb->sctp_socket->so_rcv); in sctp_calc_rwnd()
107 calc = sctp_sbspace_sub(calc, stcb->asoc.my_rwnd_control_len); in sctp_calc_rwnd()
111 if (calc < stcb->asoc.my_rwnd_control_len) { in sctp_calc_rwnd()
123 sctp_build_readq_entry(struct sctp_tcb *stcb, in sctp_build_readq_entry() argument
[all …]
Dsctp_peeloff.c58 struct sctp_tcb *stcb; in sctp_can_peel_off() local
75 stcb = sctp_findassociation_ep_asocid(inp, assoc_id, 1); in sctp_can_peel_off()
76 if (stcb == NULL) { in sctp_can_peel_off()
77 SCTP_LTRACE_ERR_RET(inp, stcb, NULL, SCTP_FROM_SCTP_PEELOFF, ENOENT); in sctp_can_peel_off()
80 state = SCTP_GET_STATE((&stcb->asoc)); in sctp_can_peel_off()
83 SCTP_TCB_UNLOCK(stcb); in sctp_can_peel_off()
84 SCTP_LTRACE_ERR_RET(inp, stcb, NULL, SCTP_FROM_SCTP_PEELOFF, ENOTCONN); in sctp_can_peel_off()
87 SCTP_TCB_UNLOCK(stcb); in sctp_can_peel_off()
96 struct sctp_tcb *stcb; in sctp_do_peeloff() local
104 stcb = sctp_findassociation_ep_asocid(inp, assoc_id, 1); in sctp_do_peeloff()
[all …]
Dsctputil.h47 void sctp_print_out_track_log(struct sctp_tcb *stcb);
63 #define sctp_get_associd(stcb) ((sctp_assoc_t)stcb->asoc.assoc_id) argument
87 sctp_notify_stream_reset_add(struct sctp_tcb *stcb, uint16_t numberin,
90 sctp_notify_stream_reset_tsn(struct sctp_tcb *stcb, uint32_t sending_tsn, uint32_t recv_tsn, int fl…
108 struct sctp_tcb *stcb,
121 struct sctp_tcb *stcb,
162 struct sctp_tcb *stcb, int waitflags);
211 int sctp_connectx_helper_add(struct sctp_tcb *stcb, struct sockaddr *addr,
283 int sctp_local_addr_count(struct sctp_tcb *stcb);
291 #define sctp_free_bufspace(stcb, asoc, tp1, chk_cnt) \ argument
[all …]
Dsctp_output.c2063 sctp_add_addresses_to_i_ia(struct sctp_inpcb *inp, struct sctp_tcb *stcb, in sctp_add_addresses_to_i_ia() argument
2099 if (sctp_is_addr_restricted(stcb, sctp_ifap)) { in sctp_add_addresses_to_i_ia()
2133 if (sctp_is_addr_restricted(stcb, sctp_ifap)) { in sctp_add_addresses_to_i_ia()
2428 sctp_is_addr_restricted(struct sctp_tcb *stcb, struct sctp_ifa *ifa) in sctp_is_addr_restricted() argument
2432 if (stcb == NULL) { in sctp_is_addr_restricted()
2436 LIST_FOREACH(laddr, &stcb->asoc.sctp_restricted_addrs, sctp_nxt_addr) { in sctp_is_addr_restricted()
2595 struct sctp_tcb *stcb, in sctp_choose_boundspecific_stcb() argument
2638 (sctp_is_addr_restricted(stcb, sifa))) || in sctp_choose_boundspecific_stcb()
2640 (sctp_is_addr_restricted(stcb, sifa)) && in sctp_choose_boundspecific_stcb()
2641 (!sctp_is_addr_pending(stcb, sifa)))) { in sctp_choose_boundspecific_stcb()
[all …]
Dsctp_pcb.c927 sctp_does_stcb_own_this_addr(struct sctp_tcb *stcb, struct sockaddr *to) argument
943 loopback_scope = stcb->asoc.scope.loopback_scope;
945 ipv4_local_scope = stcb->asoc.scope.ipv4_local_scope;
946 ipv4_addr_legal = stcb->asoc.scope.ipv4_addr_legal;
949 local_scope = stcb->asoc.scope.local_scope;
950 site_scope = stcb->asoc.scope.site_scope;
951 ipv6_addr_legal = stcb->asoc.scope.ipv6_addr_legal;
954 conn_addr_legal = stcb->asoc.scope.conn_addr_legal;
958 vrf = sctp_find_vrf(stcb->asoc.vrf_id);
965 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_BOUNDALL) {
[all …]
Dsctp_auth.c566 sctp_auth_key_acquire(struct sctp_tcb *stcb, uint16_t key_id) in sctp_auth_key_acquire() argument
571 skey = sctp_find_sharedkey(&stcb->asoc.shared_keys, key_id); in sctp_auth_key_acquire()
578 __FUNCTION__, (void *)stcb, key_id, skey->refcount); in sctp_auth_key_acquire()
583 sctp_auth_key_release(struct sctp_tcb *stcb, uint16_t key_id, int so_locked in sctp_auth_key_release() argument
592 skey = sctp_find_sharedkey(&stcb->asoc.shared_keys, key_id); in sctp_auth_key_release()
599 __FUNCTION__, (void *)stcb, key_id, skey->refcount); in sctp_auth_key_release()
604 sctp_ulp_notify(SCTP_NOTIFY_AUTH_FREE_KEY, stcb, in sctp_auth_key_release()
608 __FUNCTION__, (void *)stcb, key_id, skey->refcount); in sctp_auth_key_release()
1225 sctp_clear_cachedkeys(struct sctp_tcb *stcb, uint16_t keyid) argument
1227 if (stcb == NULL)
[all …]
Dsctp_cc_functions.c60 sctp_set_initial_cc_param(struct sctp_tcb *stcb, struct sctp_nets *net) in sctp_set_initial_cc_param() argument
65 assoc = &stcb->asoc; in sctp_set_initial_cc_param()
79 if ((stcb->asoc.sctp_cmt_on_off == SCTP_CMT_RPV1) || in sctp_set_initial_cc_param()
80 (stcb->asoc.sctp_cmt_on_off == SCTP_CMT_RPV2)) { in sctp_set_initial_cc_param()
90 stcb->asoc.my_vtag, ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), net, in sctp_set_initial_cc_param()
95 sctp_log_cwnd(stcb, net, 0, SCTP_CWND_INITIALIZATION); in sctp_set_initial_cc_param()
100 sctp_cwnd_update_after_fr(struct sctp_tcb *stcb, in sctp_cwnd_update_after_fr() argument
184 stcb->asoc.my_vtag, ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), net, in sctp_cwnd_update_after_fr()
188 sctp_log_cwnd(stcb, net, (net->cwnd - old_cwnd), in sctp_cwnd_update_after_fr()
217 stcb->sctp_ep, stcb, net, SCTP_FROM_SCTP_INDATA+SCTP_LOC_32 ); in sctp_cwnd_update_after_fr()
[all …]
Dsctp_ss_functions.c55 sctp_ss_default_init(struct sctp_tcb *stcb, struct sctp_association *asoc, in sctp_ss_default_init() argument
67 for (i = 0; i < stcb->asoc.streamoutcnt; i++) { in sctp_ss_default_init()
68 stcb->asoc.ss_functions.sctp_ss_add_to_stream(stcb, &stcb->asoc, in sctp_ss_default_init()
69 &stcb->asoc.strmout[i], in sctp_ss_default_init()
76 sctp_ss_default_clear(struct sctp_tcb *stcb, struct sctp_association *asoc, in sctp_ss_default_clear() argument
80 SCTP_TCB_SEND_LOCK(stcb); in sctp_ss_default_clear()
90 SCTP_TCB_SEND_UNLOCK(stcb); in sctp_ss_default_clear()
104 sctp_ss_default_add(struct sctp_tcb *stcb, struct sctp_association *asoc, in sctp_ss_default_add() argument
109 SCTP_TCB_SEND_LOCK(stcb); in sctp_ss_default_add()
119 SCTP_TCB_SEND_UNLOCK(stcb); in sctp_ss_default_add()
[all …]
Dsctp_auth.h147 extern void sctp_auth_key_acquire(struct sctp_tcb *stcb, uint16_t keyid);
148 extern void sctp_auth_key_release(struct sctp_tcb *stcb, uint16_t keyid,
187 extern void sctp_clear_cachedkeys(struct sctp_tcb *stcb, uint16_t keyid);
189 extern int sctp_delete_sharedkey(struct sctp_tcb *stcb, uint16_t keyid);
191 extern int sctp_auth_setactivekey(struct sctp_tcb *stcb, uint16_t keyid);
193 extern int sctp_deact_sharedkey(struct sctp_tcb *stcb, uint16_t keyid);
196 extern void sctp_auth_get_cookie_params(struct sctp_tcb *stcb, struct mbuf *m,
199 struct sctp_auth_chunk *auth, struct sctp_tcb *stcb, uint16_t key_id);
202 struct sctp_tcb *stcb, uint8_t chunk);
203 extern int sctp_handle_auth(struct sctp_tcb *stcb, struct sctp_auth_chunk *ch,
[all …]
Dsctp_structs.h147 struct sctp_tcb *stcb; /* current* assoc */ member
527 struct sctp_tcb *stcb; /* assoc, used for window update */ member
669 void *stcb; member
715 void (*sctp_set_initial_cc_param)(struct sctp_tcb *stcb, struct sctp_nets *net);
716 void (*sctp_cwnd_update_after_sack)(struct sctp_tcb *stcb,
719 void (*sctp_cwnd_update_exit_pf)(struct sctp_tcb *stcb, struct sctp_nets *net);
720 void (*sctp_cwnd_update_after_fr)(struct sctp_tcb *stcb,
722 void (*sctp_cwnd_update_after_timeout)(struct sctp_tcb *stcb,
724 void (*sctp_cwnd_update_after_ecn_echo)(struct sctp_tcb *stcb,
726 void (*sctp_cwnd_update_after_packet_dropped)(struct sctp_tcb *stcb,
[all …]
Dsctp_indata.h44 sctp_build_readq_entry(struct sctp_tcb *stcb,
70 (_ctl)->stcb = (in_it); \
89 sctp_calc_rwnd(struct sctp_tcb *stcb, struct sctp_association *asoc);
92 sctp_express_handle_sack(struct sctp_tcb *stcb, uint32_t cumack,
97 struct sctp_tcb *stcb,
126 void sctp_slide_mapping_arrays(struct sctp_tcb *stcb);
Dsctp_sysctl.c223 copy_out_local_addresses(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sysctl_req *req) in copy_out_local_addresses() argument
238 if (stcb) { in copy_out_local_addresses()
240 loopback_scope = stcb->asoc.scope.loopback_scope; in copy_out_local_addresses()
241 ipv4_local_scope = stcb->asoc.scope.ipv4_local_scope; in copy_out_local_addresses()
242 local_scope = stcb->asoc.scope.local_scope; in copy_out_local_addresses()
243 site_scope = stcb->asoc.scope.site_scope; in copy_out_local_addresses()
244 ipv4_addr_legal = stcb->asoc.scope.ipv4_addr_legal; in copy_out_local_addresses()
245 ipv6_addr_legal = stcb->asoc.scope.ipv6_addr_legal; in copy_out_local_addresses()
247 conn_addr_legal = stcb->asoc.scope.conn_addr_legal; in copy_out_local_addresses()
293 if (stcb) { in copy_out_local_addresses()
[all …]
Dsctp_input.h56 sctp_find_stream_reset(struct sctp_tcb *stcb, uint32_t seq,
59 void sctp_reset_in_stream(struct sctp_tcb *stcb, uint32_t number_entries,
63 int sctp_is_there_unsent_data(struct sctp_tcb *stcb, int so_locked);
Dsctp_os_userspace.h636 #define SCTP_LTRACE_ERR_RET_PKT(m, inp, stcb, net, file, err) \ argument
639 (void *)m, (void *)inp, (void *)stcb, (void *)net, file, __LINE__, err);
640 #define SCTP_LTRACE_ERR_RET(inp, stcb, net, file, err) \ argument
643 (void *)inp, (void *)stcb, (void *)net, file, __LINE__, err);
645 #define SCTP_LTRACE_ERR_RET_PKT(m, inp, stcb, net, file, err) argument
646 #define SCTP_LTRACE_ERR_RET(inp, stcb, net, file, err) argument
1061 sctp_route_t *ro, void *stcb,
1064 #define SCTP_IP_OUTPUT(result, o_pak, ro, stcb, vrf_id) sctp_userspace_ip_output(&result, o_pak, ro… argument
1068 struct route_in6 *ro, void *stcb,
1070 …ine SCTP_IP6_OUTPUT(result, o_pak, ro, ifp, stcb, vrf_id) sctp_userspace_ip6_output(&result, o_pak… argument
[all …]
Dsctp_output.h48 struct sctp_tcb *stcb,
68 struct sctp_tcb *stcb,
111 sctp_remove_from_wheel(struct sctp_tcb *stcb,
141 void sctp_move_chunks_from_net(struct sctp_tcb *stcb, struct sctp_nets *net);
Dsctp_asconf.h66 struct sctp_tcb *stcb,
90 sctp_asconf_send_nat_state_update(struct sctp_tcb *stcb,
Dsctp_timer.h79 sctp_strreset_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb,
Dsctp_uio.h803 void *stcb; /* FIXME: LP64 issue */ member
812 void *stcb; /* FIXME: LP64 issue */ member
871 void *stcb; /* FIXME: LP64 issue */ member
879 void *stcb; /* FIXME: LP64 issue */ member
899 void *stcb; /* FIXME: LP64 issue */ member
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet6/
Dsctp6_usrreq.c353 struct sctphdr *sh, struct sctp_tcb *stcb, struct sctp_nets *net) argument
357 if ((inp == NULL) || (stcb == NULL) || (net == NULL) ||
362 if (ntohl(sh->v_tag) != (stcb->asoc.peer_vtag))
377 sctp_timer_stop(SCTP_TIMER_TYPE_PATHMTURAISE, inp, stcb, NULL, SCTP_FROM_SCTP6_USRREQ+SCTP_LOC_1);
387 if (stcb->asoc.smallest_mtu > nxtsz) {
391 stcb->asoc.smallest_mtu = nxtsz;
394 TAILQ_FOREACH(chk, &stcb->asoc.send_queue, sctp_next) {
399 TAILQ_FOREACH(chk, &stcb->asoc.sent_queue, sctp_next) {
407 stcb->asoc.sent_queue_retran_cnt++;
415 stcb->asoc.total_flight -= chk->send_size;
[all …]

12