/external/chromium_org/third_party/usrsctp/usrsctplib/netinet/ |
sctp_timer.c | 97 sctp_threshold_management(struct sctp_inpcb *inp, struct sctp_tcb *stcb, 112 stcb, 0, 120 sctp_send_hb(stcb, net, SCTP_SO_NOT_LOCKED); 121 sctp_timer_stop(SCTP_TIMER_TYPE_HEARTBEAT, stcb->sctp_ep, stcb, net, SCTP_FROM_SCTP_TIMER + SCTP_LOC_3); 122 sctp_timer_start(SCTP_TIMER_TYPE_HEARTBEAT, stcb->sctp_ep, stcb, net); 126 if (stcb == NULL) 133 stcb->asoc.overall_error_count, 134 (stcb->asoc.overall_error_count+1) [all...] |
sctp_input.c | 65 sctp_stop_all_cookie_timers(struct sctp_tcb *stcb) 74 SCTP_TCB_LOCK_ASSERT(stcb); 75 TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) { 78 stcb->sctp_ep, 79 stcb, 83 stcb->sctp_ep, 84 stcb, 95 struct sctp_tcb *stcb, int *abort_no_unlock, 105 (void *)stcb); 106 if (stcb == NULL) 2068 struct sctp_tcb *stcb; local 5736 struct sctp_tcb *stcb = NULL; local [all...] |
sctp_var.h | 55 #define sctp_stcb_feature_on(inp, stcb, feature) {\ 56 if (stcb) { \ 57 stcb->asoc.sctp_features |= feature; \ 62 #define sctp_stcb_feature_off(inp, stcb, feature) {\ 63 if (stcb) { \ 64 stcb->asoc.sctp_features &= ~feature; \ 69 #define sctp_stcb_is_feature_on(inp, stcb, feature) \ 70 (((stcb != NULL) && \ 71 ((stcb->asoc.sctp_features & feature) == feature)) || \ 72 ((stcb == NULL) && (inp != NULL) && [all...] |
sctp_usrreq.c | 271 sctp_pathmtu_adjustment(struct sctp_tcb *stcb, uint16_t nxtsz) 277 stcb->asoc.smallest_mtu = nxtsz; 280 if (sctp_auth_is_required_chunk(SCTP_DATA, stcb->asoc.peer_auth_chunks)) { 281 overhead += sctp_get_auth_chunk_len(stcb->asoc.peer_hmac_id); 283 TAILQ_FOREACH(chk, &stcb->asoc.send_queue, sctp_next) { 288 TAILQ_FOREACH(chk, &stcb->asoc.sent_queue, sctp_next) { 297 sctp_total_flight_decrease(stcb, chk); 300 sctp_ucount_incr(stcb->asoc.sent_queue_retran_cnt); 325 struct sctp_tcb *stcb, 335 if ((inp == NULL) || (stcb == NULL) || (net == NULL) | 529 struct sctp_tcb *stcb = NULL; local 601 struct sctp_tcb *stcb; local 1174 struct sctp_tcb *stcb; local 1410 struct sctp_tcb *stcb; local 2011 struct sctp_tcb *stcb = NULL; local 2214 struct sctp_tcb *stcb = NULL; local 4041 struct sctp_tcb *stcb = NULL; local 6816 struct sctp_tcb *stcb = NULL; local 7012 struct sctp_tcb *stcb = NULL; local 7386 struct sctp_tcb *stcb; local 7621 struct sctp_tcb *stcb; local 7715 struct sctp_tcb *stcb; local [all...] |
sctputil.c | 84 sctp_sblog(struct sockbuf *sb, struct sctp_tcb *stcb, int from, int incr) 89 sctp_clog.x.sb.stcb = stcb; 91 if (stcb) 92 sctp_clog.x.sb.stcb_sbcc = stcb->asoc.sb_cc; 107 sctp_log_closing(struct sctp_inpcb *inp, struct sctp_tcb *stcb, int16_t loc) 114 if (stcb) { 115 sctp_clog.x.close.stcb = (void *)stcb; 116 sctp_clog.x.close.state = (uint16_t)stcb->asoc.state 1501 struct sctp_tcb *stcb; local 5679 struct sctp_tcb *stcb = NULL; local [all...] |
sctp_asconf.c | 152 struct sctp_tcb *stcb, int send_hb, int response_required) 195 sin->sin_port = stcb->rport; 220 sin6->sin6_port = stcb->rport; 251 } else if (sctp_add_remote_addr(stcb, sa, &net, SCTP_DONOT_SETSCOPE, 260 sctp_ulp_notify(SCTP_NOTIFY_ASCONF_ADD_IP, stcb, 0, sa, SCTP_SO_NOT_LOCKED); 265 sctp_timer_start(SCTP_TIMER_TYPE_PATHMTURAISE, stcb->sctp_ep, stcb, net); 266 sctp_timer_start(SCTP_TIMER_TYPE_HEARTBEAT, stcb->sctp_ep, 267 stcb, net); 269 sctp_send_hb(stcb, net, SCTP_SO_NOT_LOCKED) 2330 struct sctp_tcb *stcb; local [all...] |
sctputil.h | 47 void sctp_print_out_track_log(struct sctp_tcb *stcb); 63 #define sctp_get_associd(stcb) ((sctp_assoc_t)stcb->asoc.assoc_id) 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 flag); 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); [all...] |
sctp_peeloff.c | 58 struct sctp_tcb *stcb; local 75 stcb = sctp_findassociation_ep_asocid(inp, assoc_id, 1); 76 if (stcb == NULL) { 77 SCTP_LTRACE_ERR_RET(inp, stcb, NULL, SCTP_FROM_SCTP_PEELOFF, ENOENT); 80 state = SCTP_GET_STATE((&stcb->asoc)); 83 SCTP_TCB_UNLOCK(stcb); 84 SCTP_LTRACE_ERR_RET(inp, stcb, NULL, SCTP_FROM_SCTP_PEELOFF, ENOTCONN); 87 SCTP_TCB_UNLOCK(stcb); 96 struct sctp_tcb *stcb; local 104 stcb = sctp_findassociation_ep_asocid(inp, assoc_id, 1) [all...] |
sctp_input.h | 56 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);
|
sctp_indata.c | 62 sctp_set_rwnd(struct sctp_tcb *stcb, struct sctp_association *asoc) 64 asoc->my_rwnd = sctp_calc_rwnd(stcb, asoc); 69 sctp_calc_rwnd(struct sctp_tcb *stcb, struct sctp_association *asoc) 79 if (stcb->sctp_socket == NULL) 82 if (stcb->asoc.sb_cc == 0 && 86 calc = max(SCTP_SB_LIMIT_RCV(stcb->sctp_socket), SCTP_MINIMAL_RWND); 90 calc = (uint32_t) sctp_sbspace(&stcb->asoc, &stcb->sctp_socket->so_rcv); 107 calc = sctp_sbspace_sub(calc, stcb->asoc.my_rwnd_control_len); 111 if (calc < stcb->asoc.my_rwnd_control_len) [all...] |
sctp_output.c | 2063 sctp_add_addresses_to_i_ia(struct sctp_inpcb *inp, struct sctp_tcb *stcb, 2099 if (sctp_is_addr_restricted(stcb, sctp_ifap)) { 2133 if (sctp_is_addr_restricted(stcb, sctp_ifap)) { 3650 struct sctp_tcb *stcb; local [all...] |
sctp_pcb.c | 927 sctp_does_stcb_own_this_addr(struct sctp_tcb *stcb, struct sockaddr *to) 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) 1149 struct sctp_tcb *stcb; local 1425 struct sctp_tcb *stcb = NULL; local 1791 struct sctp_tcb *stcb; local 1835 struct sctp_tcb *stcb; local 2280 struct sctp_tcb *stcb; local 2333 struct sctp_tcb *stcb; local 2434 struct sctp_tcb *stcb; local 2546 struct sctp_tcb *stcb; local 2613 struct sctp_tcb *stcb; local 4820 struct sctp_tcb *stcb; local 5006 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); local 5019 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); local 5054 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); local 5878 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); local 5884 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); local 6174 struct sctp_tcb *stcb; local 7644 struct sctp_tcb *stcb; local 7849 struct sctp_tcb *stcb; local [all...] |
sctp_auth.c | 566 sctp_auth_key_acquire(struct sctp_tcb *stcb, uint16_t key_id) 571 skey = sctp_find_sharedkey(&stcb->asoc.shared_keys, key_id); 577 "%s: stcb %p key %u refcount acquire to %d\n", 578 __FUNCTION__, (void *)stcb, key_id, skey->refcount); 583 sctp_auth_key_release(struct sctp_tcb *stcb, uint16_t key_id, int so_locked 592 skey = sctp_find_sharedkey(&stcb->asoc.shared_keys, key_id); 598 "%s: stcb %p key %u refcount release to %d\n", 599 __FUNCTION__, (void *)stcb, key_id, skey->refcount); 604 sctp_ulp_notify(SCTP_NOTIFY_AUTH_FREE_KEY, stcb, 607 "%s: stcb %p key %u no longer used, %d\n" 1248 struct sctp_tcb *stcb; local [all...] |
sctp_ss_functions.c | 55 sctp_ss_default_init(struct sctp_tcb *stcb, struct sctp_association *asoc, 67 for (i = 0; i < stcb->asoc.streamoutcnt; i++) { 68 stcb->asoc.ss_functions.sctp_ss_add_to_stream(stcb, &stcb->asoc, 69 &stcb->asoc.strmout[i], 76 sctp_ss_default_clear(struct sctp_tcb *stcb, struct sctp_association *asoc, 80 SCTP_TCB_SEND_LOCK(stcb); 90 SCTP_TCB_SEND_UNLOCK(stcb); 104 sctp_ss_default_add(struct sctp_tcb *stcb, struct sctp_association *asoc [all...] |
sctp_cc_functions.c | 60 sctp_set_initial_cc_param(struct sctp_tcb *stcb, struct sctp_nets *net) 65 assoc = &stcb->asoc; 79 if ((stcb->asoc.sctp_cmt_on_off == SCTP_CMT_RPV1) || 80 (stcb->asoc.sctp_cmt_on_off == SCTP_CMT_RPV2)) { 90 stcb->asoc.my_vtag, ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), net, 95 sctp_log_cwnd(stcb, net, 0, SCTP_CWND_INITIALIZATION); 100 sctp_cwnd_update_after_fr(struct sctp_tcb *stcb, 184 stcb->asoc.my_vtag, ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), net [all...] |
sctp_indata.h | 44 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);
|
sctp_auth.h | 147 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...] |
sctp_asconf.h | 66 struct sctp_tcb *stcb, 90 sctp_asconf_send_nat_state_update(struct sctp_tcb *stcb,
|
sctp_output.h | 48 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);
|
sctp_structs.h | 147 struct sctp_tcb *stcb; /* current* assoc */ member in struct:sctp_iterator 527 struct sctp_tcb *stcb; /* assoc, used for window update */ member in struct:sctp_queued_to_read 669 void *stcb; member in struct:sctp_tsn_log 690 * pad that bulks up both the inp and stcb. The non 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, [all...] |
sctp_sysctl.c | 223 copy_out_local_addresses(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sysctl_req *req) 238 if (stcb) { 240 loopback_scope = stcb->asoc.scope.loopback_scope; 241 ipv4_local_scope = stcb->asoc.scope.ipv4_local_scope; 242 local_scope = stcb->asoc.scope.local_scope; 243 site_scope = stcb->asoc.scope.site_scope; 244 ipv4_addr_legal = stcb->asoc.scope.ipv4_addr_legal; 245 ipv6_addr_legal = stcb->asoc.scope.ipv6_addr_legal; 247 conn_addr_legal = stcb->asoc.scope.conn_addr_legal; 293 if (stcb) { 432 struct sctp_tcb *stcb; variable in typeref:struct:sctp_tcb 529 SCTP_TCB_LOCK(stcb); variable 531 SCTP_TCB_UNLOCK(stcb); variable [all...] |
sctp_os_userspace.h | 636 #define SCTP_LTRACE_ERR_RET_PKT(m, inp, stcb, net, file, err) \ 638 SCTP_PRINTF("mbuf:%p inp:%p stcb:%p net:%p file:%x line:%d error:%d\n", \ 639 (void *)m, (void *)inp, (void *)stcb, (void *)net, file, __LINE__, err); 640 #define SCTP_LTRACE_ERR_RET(inp, stcb, net, file, err) \ 642 SCTP_PRINTF("inp:%p stcb:%p net:%p file:%x line:%d error:%d\n", \ 643 (void *)inp, (void *)stcb, (void *)net, file, __LINE__, err); 645 #define SCTP_LTRACE_ERR_RET_PKT(m, inp, stcb, net, file, err) 646 #define SCTP_LTRACE_ERR_RET(inp, stcb, net, file, err) 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, stcb, vrf_id) [all...] |
sctp_timer.h | 79 sctp_strreset_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb,
|
sctp_uio.h | 803 void *stcb; /* FIXME: LP64 issue */ member in struct:sctp_str_log 812 void *stcb; /* FIXME: LP64 issue */ member in struct:sctp_sb_log 871 void *stcb; /* FIXME: LP64 issue */ member in struct:sctp_nagle_log 879 void *stcb; /* FIXME: LP64 issue */ member in struct:sctp_sbwake_log 899 void *stcb; /* FIXME: LP64 issue */ member in struct:sctp_log_closing [all...] |
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet6/ |
sctp6_usrreq.c | 353 struct sctphdr *sh, struct sctp_tcb *stcb, struct sctp_nets *net) 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 561 struct sctp_tcb *stcb = NULL; local 635 struct sctp_tcb *stcb; local 1183 struct sctp_tcb *stcb; local 1383 struct sctp_tcb *stcb; local 1481 struct sctp_tcb *stcb; local [all...] |