/freebsd-10.0-release/sys/netinet/ |
H A D | sctp_timer.c | 87 sctp_threshold_management(struct sctp_inpcb *inp, struct sctp_tcb *stcb, argument 102 stcb, 0, 110 sctp_send_hb(stcb, net, SCTP_SO_NOT_LOCKED); 111 sctp_timer_stop(SCTP_TIMER_TYPE_HEARTBEAT, stcb->sctp_ep, stcb, net, SCTP_FROM_SCTP_TIMER + SCTP_LOC_3); 112 sctp_timer_start(SCTP_TIMER_TYPE_HEARTBEAT, stcb->sctp_ep, stcb, net); 116 if (stcb == NULL) 123 stcb->asoc.overall_error_count, 124 (stcb 178 sctp_find_alternate_net(struct sctp_tcb *stcb, struct sctp_nets *net, int mode) argument 412 sctp_backoff_on_timeout(struct sctp_tcb *stcb, struct sctp_nets *net, int win_probe, int num_marked, int num_abandoned) argument 433 sctp_recover_sent_list(struct sctp_tcb *stcb) argument 475 sctp_mark_all_for_resend(struct sctp_tcb *stcb, struct sctp_nets *net, struct sctp_nets *alt, int window_probe, int *num_marked, int *num_abandoned) argument 805 sctp_t3rxt_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument 990 sctp_t1init_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument 1038 sctp_cookie_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net SCTP_UNUSED) argument 1114 sctp_strreset_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument 1175 sctp_asconf_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument 1267 sctp_delete_prim_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net SCTP_UNUSED) argument 1290 sctp_shutdown_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument 1313 sctp_shutdownack_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument 1336 sctp_audit_stream_queues_for_size(struct sctp_inpcb *inp, struct sctp_tcb *stcb) argument 1401 sctp_heartbeat_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument 1464 sctp_pathmtu_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument 1520 sctp_autoclose_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument [all...] |
H A D | sctp_input.c | 56 sctp_stop_all_cookie_timers(struct sctp_tcb *stcb) argument 65 SCTP_TCB_LOCK_ASSERT(stcb); 66 TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) { 69 stcb->sctp_ep, 70 stcb, 74 stcb->sctp_ep, 75 stcb, 86 struct sctp_tcb *stcb, int *abort_no_unlock, 94 (void *)stcb); 95 if (stcb 83 sctp_handle_init(struct mbuf *m, int iphlen, int offset, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_init_chunk *cp, struct sctp_inpcb *inp, struct sctp_tcb *stcb, int *abort_no_unlock, uint8_t use_mflowid, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument 212 sctp_is_there_unsent_data(struct sctp_tcb *stcb, int so_locked SCTP_UNUSED ) argument 277 sctp_process_init(struct sctp_init_chunk *cp, struct sctp_tcb *stcb) argument 427 sctp_process_init_ack(struct mbuf *m, int iphlen, int offset, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_init_ack_chunk *cp, struct sctp_tcb *stcb, struct sctp_nets *net, int *abort_no_unlock, uint8_t use_mflowid, uint32_t mflowid, uint32_t vrf_id) argument 557 sctp_handle_heartbeat_ack(struct sctp_heartbeat_chunk *cp, struct sctp_tcb *stcb, struct sctp_nets *net) argument 701 sctp_handle_nat_colliding_state(struct sctp_tcb *stcb) argument 747 sctp_handle_nat_missing_state(struct sctp_tcb *stcb, struct sctp_nets *net) argument 764 sctp_handle_abort(struct sctp_abort_chunk *abort, struct sctp_tcb *stcb, struct sctp_nets *net) argument 835 sctp_start_net_timers(struct sctp_tcb *stcb) argument 864 sctp_handle_shutdown(struct sctp_shutdown_chunk *cp, struct sctp_tcb *stcb, struct sctp_nets *net, int *abort_flag) argument 970 sctp_handle_shutdown_ack(struct sctp_shutdown_ack_chunk *cp SCTP_UNUSED, struct sctp_tcb *stcb, struct sctp_nets *net) argument 1068 sctp_process_unrecog_chunk(struct sctp_tcb *stcb, struct sctp_paramhdr *phdr, struct sctp_nets *net) argument 1096 sctp_process_unrecog_param(struct sctp_tcb *stcb, struct sctp_paramhdr *phdr) argument 1133 sctp_handle_error(struct sctp_chunkhdr *ch, struct sctp_tcb *stcb, struct sctp_nets *net) argument 1289 sctp_handle_init_ack(struct mbuf *m, int iphlen, int offset, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_init_ack_chunk *cp, struct sctp_tcb *stcb, struct sctp_nets *net, int *abort_no_unlock, uint8_t use_mflowid, uint32_t mflowid, uint32_t vrf_id) argument 1447 sctp_process_cookie_existing(struct mbuf *m, int iphlen, int offset, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_state_cookie *cookie, int cookie_len, struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets **netp, struct sockaddr *init_src, int *notification, int auth_skipped, uint32_t auth_offset, uint32_t auth_len, uint8_t use_mflowid, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument 2040 struct sctp_tcb *stcb; local 2405 sctp_handle_cookie_echo(struct mbuf *m, int iphlen, int offset, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_cookie_echo_chunk *cp, struct sctp_inpcb **inp_p, struct sctp_tcb **stcb, struct sctp_nets **netp, int auth_skipped, uint32_t auth_offset, uint32_t auth_len, struct sctp_tcb **locked_tcb, uint8_t use_mflowid, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument 2906 sctp_handle_cookie_ack(struct sctp_cookie_ack_chunk *cp SCTP_UNUSED, struct sctp_tcb *stcb, struct sctp_nets *net) argument 3016 sctp_handle_ecn_echo(struct sctp_ecne_chunk *cp, struct sctp_tcb *stcb) argument 3139 sctp_handle_ecn_cwr(struct sctp_cwr_chunk *cp, struct sctp_tcb *stcb, struct sctp_nets *net) argument 3182 sctp_handle_shutdown_complete(struct sctp_shutdown_complete_chunk *cp SCTP_UNUSED, struct sctp_tcb *stcb, struct sctp_nets *net) argument 3239 process_chunk_drop(struct sctp_tcb *stcb, struct sctp_chunk_desc *desc, struct sctp_nets *net, uint8_t flg) argument 3477 sctp_reset_in_stream(struct sctp_tcb *stcb, uint32_t number_entries, uint16_t * list) argument 3505 sctp_reset_out_streams(struct sctp_tcb *stcb, uint32_t number_entries, uint16_t * list) argument 3529 sctp_find_stream_reset(struct sctp_tcb *stcb, uint32_t seq, struct sctp_tmit_chunk **bchk) argument 3574 sctp_clean_up_stream_reset(struct sctp_tcb *stcb) argument 3600 sctp_handle_stream_reset_response(struct sctp_tcb *stcb, uint32_t seq, uint32_t action, struct sctp_stream_reset_response *respin) argument 3741 sctp_handle_str_reset_request_in(struct sctp_tcb *stcb, struct sctp_tmit_chunk *chk, struct sctp_stream_reset_in_request *req, int trunc) argument 3795 sctp_handle_str_reset_request_tsn(struct sctp_tcb *stcb, struct sctp_tmit_chunk *chk, struct sctp_stream_reset_tsn_request *req) argument 3860 sctp_handle_str_reset_request_out(struct sctp_tcb *stcb, struct sctp_tmit_chunk *chk, struct sctp_stream_reset_out_request *req, int trunc) argument 3936 sctp_handle_str_reset_add_strm(struct sctp_tcb *stcb, struct sctp_tmit_chunk *chk, struct sctp_stream_reset_add_strm *str_add) argument 4021 sctp_handle_str_reset_add_out_strm(struct sctp_tcb *stcb, struct sctp_tmit_chunk *chk, struct sctp_stream_reset_add_strm *str_add) argument 4081 sctp_handle_stream_reset(struct sctp_tcb *stcb, struct mbuf *m, int offset, struct sctp_chunkhdr *ch_req) argument 4256 sctp_handle_packet_dropped(struct sctp_pktdrop_chunk *cp, struct sctp_tcb *stcb, struct sctp_nets *net, uint32_t limit) argument 4417 sctp_process_control(struct mbuf *m, int iphlen, int *offset, int length, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_chunkhdr *ch, struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets **netp, int *fwd_tsn_seen, uint8_t use_mflowid, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument 5632 struct sctp_tcb *stcb = NULL; local [all...] |
H A D | sctp_var.h | 51 #define sctp_stcb_feature_on(inp, stcb, feature) {\ 52 if (stcb) { \ 53 stcb->asoc.sctp_features |= feature; \ 58 #define sctp_stcb_feature_off(inp, stcb, feature) {\ 59 if (stcb) { \ 60 stcb->asoc.sctp_features &= ~feature; \ 65 #define sctp_stcb_is_feature_on(inp, stcb, feature) \ 66 (((stcb != NULL) && \ 67 ((stcb->asoc.sctp_features & feature) == feature)) || \ 68 ((stcb [all...] |
H A D | sctp_input.h | 52 sctp_find_stream_reset(struct sctp_tcb *stcb, uint32_t seq, 56 sctp_reset_in_stream(struct sctp_tcb *stcb, uint32_t number_entries, 60 int sctp_is_there_unsent_data(struct sctp_tcb *stcb, int so_locked);
|
H A D | sctp_asconf.c | 147 struct sctp_tcb *stcb, int send_hb, int response_required) 193 sin->sin_port = stcb->rport; 216 sin6->sin6_port = stcb->rport; 247 } else if (sctp_add_remote_addr(stcb, sa, &net, SCTP_DONOT_SETSCOPE, 256 sctp_ulp_notify(SCTP_NOTIFY_ASCONF_ADD_IP, stcb, 0, sa, SCTP_SO_NOT_LOCKED); 261 sctp_timer_start(SCTP_TIMER_TYPE_PATHMTURAISE, stcb->sctp_ep, stcb, net); 262 sctp_timer_start(SCTP_TIMER_TYPE_HEARTBEAT, stcb->sctp_ep, 263 stcb, net); 265 sctp_send_hb(stcb, ne 146 sctp_process_asconf_add_ip(struct sockaddr *src, struct sctp_asconf_paramhdr *aph, struct sctp_tcb *stcb, int send_hb, int response_required) argument 272 sctp_asconf_del_remote_addrs_except(struct sctp_tcb *stcb, struct sockaddr *src) argument 300 sctp_process_asconf_delete_ip(struct sockaddr *src, struct sctp_asconf_paramhdr *aph, struct sctp_tcb *stcb, int response_required) argument 435 sctp_process_asconf_set_primary(struct sockaddr *src, struct sctp_asconf_paramhdr *aph, struct sctp_tcb *stcb, int response_required) argument 590 sctp_handle_asconf(struct mbuf *m, unsigned int offset, struct sockaddr *src, struct sctp_asconf_chunk *cp, struct sctp_tcb *stcb, int first) argument 931 sctp_asconf_cleanup(struct sctp_tcb *stcb, struct sctp_nets *net) argument 950 sctp_asconf_nets_cleanup(struct sctp_tcb *stcb, struct sctp_ifn *ifn) argument 989 sctp_assoc_immediate_retrans(struct sctp_tcb *stcb, struct sctp_nets *dstnet) argument 1039 sctp_net_immediate_retrans(struct sctp_tcb *stcb, struct sctp_nets *net) argument 1066 sctp_path_check_and_react(struct sctp_tcb *stcb, struct sctp_ifa *newifa) argument 1172 sctp_asconf_addr_mgmt_ack(struct sctp_tcb *stcb, struct sctp_ifa *addr, uint32_t flag) argument 1210 sctp_asconf_queue_mgmt(struct sctp_tcb *stcb, struct sctp_ifa *ifa, uint16_t type) argument 1336 sctp_asconf_queue_add(struct sctp_tcb *stcb, struct sctp_ifa *ifa, uint16_t type) argument 1423 sctp_asconf_queue_sa_delete(struct sctp_tcb *stcb, struct sockaddr *sa) argument 1533 sctp_asconf_find_param(struct sctp_tcb *stcb, uint32_t correlation_id) argument 1553 sctp_asconf_process_error(struct sctp_tcb *stcb, struct sctp_asconf_paramhdr *aph) argument 1608 sctp_asconf_process_param_ack(struct sctp_tcb *stcb, struct sctp_asconf_addr *aparam, uint32_t flag) argument 1649 sctp_asconf_ack_clear(struct sctp_tcb *stcb) argument 1657 sctp_handle_asconf_ack(struct mbuf *m, int offset, struct sctp_asconf_ack_chunk *cp, struct sctp_tcb *stcb, struct sctp_nets *net, int *abort_no_unlock) argument 1840 sctp_is_scopeid_in_nets(struct sctp_tcb *stcb, struct sockaddr *sa) argument 1877 sctp_addr_mgmt_assoc(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_ifa *ifa, uint16_t type, int addr_locked) argument 2086 sctp_asconf_iterator_stcb(struct sctp_inpcb *inp, struct sctp_tcb *stcb, void *ptr, uint32_t val SCTP_UNUSED) argument 2274 sctp_set_primary_ip_address_sa(struct sctp_tcb *stcb, struct sockaddr *sa) argument 2318 struct sctp_tcb *stcb; local 2344 sctp_is_addr_pending(struct sctp_tcb *stcb, struct sctp_ifa *sctp_ifa) argument 2436 sctp_find_valid_localaddr(struct sctp_tcb *stcb, int addr_locked) argument 2533 sctp_find_valid_localaddr_ep(struct sctp_tcb *stcb) argument 2558 sctp_compose_asconf(struct sctp_tcb *stcb, int *retlen, int addr_locked) argument 2755 sctp_process_initack_addresses(struct sctp_tcb *stcb, struct mbuf *m, unsigned int offset, unsigned int length) argument 3034 sctp_check_address_list_ep(struct sctp_tcb *stcb, struct mbuf *m, int offset, int length, struct sockaddr *init_addr) argument 3069 sctp_check_address_list_all(struct sctp_tcb *stcb, struct mbuf *m, int offset, int length, struct sockaddr *init_addr, uint16_t local_scope, uint16_t site_scope, uint16_t ipv4_scope, uint16_t loopback_scope) argument 3159 sctp_check_address_list(struct sctp_tcb *stcb, struct mbuf *m, int offset, int length, struct sockaddr *init_addr, uint16_t local_scope, uint16_t site_scope, uint16_t ipv4_scope, uint16_t loopback_scope) argument 3279 sctp_asconf_send_nat_state_update(struct sctp_tcb *stcb, struct sctp_nets *net) argument [all...] |
H A D | sctp_usrreq.c | 100 sctp_pathmtu_adjustment(struct sctp_tcb *stcb, uint16_t nxtsz) argument 106 stcb->asoc.smallest_mtu = nxtsz; 109 if (sctp_auth_is_required_chunk(SCTP_DATA, stcb->asoc.peer_auth_chunks)) { 110 overhead += sctp_get_auth_chunk_len(stcb->asoc.peer_hmac_id); 112 TAILQ_FOREACH(chk, &stcb->asoc.send_queue, sctp_next) { 117 TAILQ_FOREACH(chk, &stcb->asoc.sent_queue, sctp_next) { 126 sctp_total_flight_decrease(stcb, chk); 129 sctp_ucount_incr(stcb->asoc.sent_queue_retran_cnt); 149 struct sctp_tcb *stcb, 159 if ((inp == NULL) || (stcb 148 sctp_notify_mbuf(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net, struct ip *ip, struct sctphdr *sh) argument 220 sctp_notify(struct sctp_inpcb *inp, struct ip *ip, struct sctphdr *sh, struct sockaddr *to, struct sctp_tcb *stcb, struct sctp_nets *net) argument 329 struct sctp_tcb *stcb = NULL; local 384 struct sctp_tcb *stcb; local 736 struct sctp_tcb *stcb; local 977 struct sctp_tcb *stcb; local 1115 sctp_fill_up_addresses_vrf(struct sctp_inpcb *inp, struct sctp_tcb *stcb, size_t limit, struct sockaddr_storage *sas, uint32_t vrf_id) argument 1346 sctp_fill_up_addresses(struct sctp_inpcb *inp, struct sctp_tcb *stcb, size_t limit, struct sockaddr_storage *sas) argument 1451 struct sctp_tcb *stcb = NULL; local 1642 struct sctp_tcb *stcb = NULL; local 3357 struct sctp_tcb *stcb = NULL; local 5912 struct sctp_tcb *stcb = NULL; local 6229 struct sctp_tcb *stcb; local 6369 struct sctp_tcb *stcb; local 6447 struct sctp_tcb *stcb; local [all...] |
H A D | sctputil.h | 45 void sctp_print_out_track_log(struct sctp_tcb *stcb); 64 #define sctp_get_associd(stcb) ((sctp_assoc_t)stcb->asoc.assoc_id) 88 sctp_notify_stream_reset_add(struct sctp_tcb *stcb, uint16_t numberin, 91 sctp_notify_stream_reset_tsn(struct sctp_tcb *stcb, uint32_t sending_tsn, uint32_t recv_tsn, int flag); 109 struct sctp_tcb *stcb, 122 struct sctp_tcb *stcb, 164 struct sctp_tcb *stcb, int waitflags); 212 sctp_connectx_helper_add(struct sctp_tcb *stcb, struct sockaddr *addr, 266 int sctp_local_addr_count(struct sctp_tcb *stcb); [all...] |
H A D | sctputil.c | 65 sctp_sblog(struct sockbuf *sb, struct sctp_tcb *stcb, int from, int incr) argument 69 sctp_clog.x.sb.stcb = stcb; 71 if (stcb) 72 sctp_clog.x.sb.stcb_sbcc = stcb->asoc.sb_cc; 86 sctp_log_closing(struct sctp_inpcb *inp, struct sctp_tcb *stcb, int16_t loc) argument 92 if (stcb) { 93 sctp_clog.x.close.stcb = (void *)stcb; 94 sctp_clog.x.close.state = (uint16_t) stcb 127 sctp_log_strm_del_alt(struct sctp_tcb *stcb, uint32_t tsn, uint16_t sseq, uint16_t stream, int from) argument 147 sctp_log_nagle_event(struct sctp_tcb *stcb, int action) argument 275 sctp_log_cwnd(struct sctp_tcb *stcb, struct sctp_nets *net, int augment, uint8_t from) argument 310 sctp_log_lock(struct sctp_inpcb *inp, struct sctp_tcb *stcb, uint8_t from) argument 354 sctp_log_maxburst(struct sctp_tcb *stcb, struct sctp_nets *net, int error, int burst, uint8_t from) argument 444 sctp_wakeup_log(struct sctp_tcb *stcb, uint32_t wake_cnt, int from) argument 571 sctp_auditing(int from, struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument 720 sctp_stop_timers_for_shutdown(struct sctp_tcb *stcb) argument 881 sctp_init_asoc(struct sctp_inpcb *inp, struct sctp_tcb *stcb, uint32_t override_tag, uint32_t vrf_id) argument 1405 struct sctp_tcb *stcb; local 1842 sctp_timer_start(int t_type, struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument 2136 sctp_timer_stop(int t_type, struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net, uint32_t from) argument 2344 sctp_calculate_rto(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_nets *net, struct timeval *told, int safe, int rtt_from_sack) argument 2584 sctp_notify_assoc_change(uint16_t state, struct sctp_tcb *stcb, uint16_t error, struct sctp_abort_chunk *abort, uint8_t from_peer, int so_locked SCTP_UNUSED ) argument 2732 sctp_notify_peer_addr_change(struct sctp_tcb *stcb, uint32_t state, struct sockaddr *sa, uint32_t error) argument 2811 sctp_notify_send_failed(struct sctp_tcb *stcb, uint8_t sent, uint32_t error, struct sctp_tmit_chunk *chk, int so_locked SCTP_UNUSED ) argument 2926 sctp_notify_send_failed2(struct sctp_tcb *stcb, uint32_t error, struct sctp_stream_queue_pending *sp, int so_locked SCTP_UNUSED ) argument 3029 sctp_notify_adaptation_layer(struct sctp_tcb *stcb) argument 3076 sctp_notify_partial_delivery_indication(struct sctp_tcb *stcb, uint32_t error, uint32_t val, int so_locked SCTP_UNUSED ) argument 3171 sctp_notify_shutdown_event(struct sctp_tcb *stcb) argument 3240 sctp_notify_sender_dry_event(struct sctp_tcb *stcb, int so_locked SCTP_UNUSED ) argument 3291 sctp_notify_stream_reset_add(struct sctp_tcb *stcb, uint16_t numberin, uint16_t numberout, int flag) argument 3347 sctp_notify_stream_reset_tsn(struct sctp_tcb *stcb, uint32_t sending_tsn, uint32_t recv_tsn, int flag) argument 3399 sctp_notify_stream_reset(struct sctp_tcb *stcb, int number_entries, uint16_t * list, int flag) argument 3463 sctp_notify_remote_error(struct sctp_tcb *stcb, uint16_t error, struct sctp_error_chunk *chunk) argument 3520 sctp_ulp_notify(uint32_t notification, struct sctp_tcb *stcb, uint32_t error, void *data, int so_locked SCTP_UNUSED ) argument 3700 sctp_report_all_outbound(struct sctp_tcb *stcb, uint16_t error, int holds_lock, int so_locked SCTP_UNUSED ) argument 3812 sctp_abort_notification(struct sctp_tcb *stcb, uint8_t from_peer, uint16_t error, struct sctp_abort_chunk *abort, int so_locked SCTP_UNUSED ) argument 3842 sctp_abort_association(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct mbuf *m, int iphlen, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct mbuf *op_err, uint8_t use_mflowid, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument 3892 sctp_print_out_track_log(struct sctp_tcb *stcb) argument 3955 sctp_abort_an_association(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct mbuf *op_err, int so_locked SCTP_UNUSED ) argument 4269 sctp_pull_off_control_to_new_inp(struct sctp_inpcb *old_inp, struct sctp_inpcb *new_inp, struct sctp_tcb *stcb, int waitflags) argument 4345 sctp_add_to_readq(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_queued_to_read *control, struct sockbuf *sb, int end, int inp_read_lock_held, int so_locked SCTP_UNUSED ) argument 4472 sctp_append_to_readq(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_queued_to_read *control, struct mbuf *m, int end, int ctls_cumack, struct sockbuf *sb) argument 4651 sctp_free_bufspace(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_tmit_chunk *tp1, int chk_cnt) argument 4685 sctp_release_pr_sctp_chunk(struct sctp_tcb *stcb, struct sctp_tmit_chunk *tp1, uint8_t sent, int so_locked SCTP_UNUSED ) argument 5050 sctp_user_rcvd(struct sctp_tcb *stcb, uint32_t * freed_so_far, int hold_rlock, uint32_t rwnd_req) argument 5154 struct sctp_tcb *stcb = NULL; local 6244 sctp_connectx_helper_add(struct sctp_tcb *stcb, struct sockaddr *addr, int totaddr, int *error) argument 6325 struct sctp_tcb *stcb = NULL; local 6614 sctp_local_addr_count(struct sctp_tcb *stcb) argument [all...] |
H A D | sctp_peeloff.c | 53 struct sctp_tcb *stcb; local 70 stcb = sctp_findassociation_ep_asocid(inp, assoc_id, 1); 71 if (stcb == NULL) { 72 SCTP_LTRACE_ERR_RET(inp, stcb, NULL, SCTP_FROM_SCTP_PEELOFF, ENOENT); 75 state = SCTP_GET_STATE((&stcb->asoc)); 78 SCTP_TCB_UNLOCK(stcb); 79 SCTP_LTRACE_ERR_RET(inp, stcb, NULL, SCTP_FROM_SCTP_PEELOFF, ENOTCONN); 82 SCTP_TCB_UNLOCK(stcb); 91 struct sctp_tcb *stcb; local 99 stcb [all...] |
H A D | sctp_indata.c | 60 sctp_set_rwnd(struct sctp_tcb *stcb, struct sctp_association *asoc) argument 62 asoc->my_rwnd = sctp_calc_rwnd(stcb, asoc); 67 sctp_calc_rwnd(struct sctp_tcb *stcb, struct sctp_association *asoc) argument 77 if (stcb->sctp_socket == NULL) 80 if (stcb->asoc.sb_cc == 0 && 84 calc = max(SCTP_SB_LIMIT_RCV(stcb->sctp_socket), SCTP_MINIMAL_RWND); 88 calc = (uint32_t) sctp_sbspace(&stcb->asoc, &stcb->sctp_socket->so_rcv); 104 calc = sctp_sbspace_sub(calc, stcb->asoc.my_rwnd_control_len); 109 if (calc < stcb 121 sctp_build_readq_entry(struct sctp_tcb *stcb, struct sctp_nets *net, uint32_t tsn, uint32_t ppid, uint32_t context, uint16_t stream_no, uint16_t stream_seq, uint8_t flags, struct mbuf *dm) argument 165 sctp_build_readq_entry_chk(struct sctp_tcb *stcb, struct sctp_tmit_chunk *chk) argument 368 sctp_service_reassembly(struct sctp_tcb *stcb, struct sctp_association *asoc) argument 544 sctp_queue_data_to_stream(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_queued_to_read *control, int *abort_flag) argument 772 sctp_deliver_reasm_check(struct sctp_tcb *stcb, struct sctp_association *asoc) argument 844 sctp_queue_data_for_reasm(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_tmit_chunk *chk, int *abort_flag) argument 1425 sctp_process_a_data_chunk(struct sctp_tcb *stcb, struct sctp_association *asoc, struct mbuf **m, int offset, struct sctp_data_chunk *ch, int chk_length, struct sctp_nets *net, uint32_t * high_tsn, int *abort_flag, int *break_flag, int last_chunk) argument 2198 sctp_slide_mapping_arrays(struct sctp_tcb *stcb) argument 2367 sctp_sack_check(struct sctp_tcb *stcb, int was_a_gap) argument 2457 sctp_service_queues(struct sctp_tcb *stcb, struct sctp_association *asoc) argument 2518 sctp_process_data(struct mbuf **mm, int iphlen, int *offset, int length, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net, uint32_t * high_tsn, uint8_t use_mflowid, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument 2799 sctp_process_segment_range(struct sctp_tcb *stcb, struct sctp_tmit_chunk **p_tp1, uint32_t last_tsn, uint16_t frag_strt, uint16_t frag_end, int nr_sacking, int *num_frs, uint32_t * biggest_newly_acked_tsn, uint32_t * this_sack_lowest_newack, int *rto_ok) argument 3033 sctp_handle_segments(struct mbuf *m, int *offset, struct sctp_tcb *stcb, struct sctp_association *asoc, uint32_t last_tsn, uint32_t * biggest_tsn_acked, uint32_t * biggest_newly_acked_tsn, uint32_t * this_sack_lowest_newack, int num_seg, int num_nr_seg, int *rto_ok) argument 3097 sctp_check_for_revoked(struct sctp_tcb *stcb, struct sctp_association *asoc, uint32_t cumack, uint32_t biggest_tsn_acked) argument 3156 sctp_strike_gap_ack_chunks(struct sctp_tcb *stcb, struct sctp_association *asoc, uint32_t biggest_tsn_acked, uint32_t biggest_tsn_newly_acked, uint32_t this_sack_lowest_newack, int accum_moved) argument 3599 sctp_try_advance_peer_ack_point(struct sctp_tcb *stcb, struct sctp_association *asoc) argument 3736 sctp_window_probe_recovery(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_tmit_chunk *tp1) argument 3771 sctp_express_handle_sack(struct sctp_tcb *stcb, uint32_t cumack, uint32_t rwnd, int *abort_now, int ecne_seen) argument 4323 sctp_handle_sack(struct mbuf *m, int offset_seg, int offset_dup, struct sctp_tcb *stcb, uint16_t num_seg, uint16_t num_nr_seg, uint16_t num_dup, int *abort_now, uint8_t flags, uint32_t cum_ack, uint32_t rwnd, int ecne_seen) argument 5196 sctp_update_acked(struct sctp_tcb *stcb, struct sctp_shutdown_chunk *cp, int *abort_flag) argument 5210 sctp_kick_prsctp_reorder_queue(struct sctp_tcb *stcb, struct sctp_stream_in *strmin) argument 5271 sctp_flush_reassm_for_str_seq(struct sctp_tcb *stcb, struct sctp_association *asoc, uint16_t stream, uint16_t seq) argument 5344 sctp_handle_forward_tsn(struct sctp_tcb *stcb, struct sctp_forward_tsn_chunk *fwd, int *abort_flag, struct mbuf *m, int offset) argument [all...] |
H A D | sctp_pcb.c | 828 sctp_does_stcb_own_this_addr(struct sctp_tcb *stcb, struct sockaddr *to) argument 844 loopback_scope = stcb->asoc.scope.loopback_scope; 846 ipv4_local_scope = stcb->asoc.scope.ipv4_local_scope; 847 ipv4_addr_legal = stcb->asoc.scope.ipv4_addr_legal; 850 local_scope = stcb->asoc.scope.local_scope; 851 site_scope = stcb->asoc.scope.site_scope; 852 ipv6_addr_legal = stcb->asoc.scope.ipv6_addr_legal; 856 vrf = sctp_find_vrf(stcb->asoc.vrf_id); 862 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_BOUNDALL) { 869 if (sctp_is_addr_restricted(stcb, sctp_if 1009 struct sctp_tcb *stcb; local 1231 struct sctp_tcb *stcb = NULL; local 1516 struct sctp_tcb *stcb; local 1560 struct sctp_tcb *stcb; local 1937 struct sctp_tcb *stcb; local 1991 struct sctp_tcb *stcb; local 2092 struct sctp_tcb *stcb; local 2194 struct sctp_tcb *stcb; local 2260 struct sctp_tcb *stcb; local 2592 sctp_move_pcb_and_assoc(struct sctp_inpcb *old_inp, struct sctp_inpcb *new_inp, struct sctp_tcb *stcb) argument 3677 sctp_findnet(struct sctp_tcb *stcb, struct sockaddr *addr) argument 3709 sctp_add_remote_addr(struct sctp_tcb *stcb, struct sockaddr *newaddr, struct sctp_nets **netp, int set_scope, int from) argument 4090 sctp_aloc_a_assoc_id(struct sctp_inpcb *inp, struct sctp_tcb *stcb) argument 4136 struct sctp_tcb *stcb; local 4294 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); local 4307 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); local 4342 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); local 4371 sctp_remove_net(struct sctp_tcb *stcb, struct sctp_nets *net) argument 4430 sctp_del_remote_addr(struct sctp_tcb *stcb, struct sockaddr *remaddr) argument 4600 sctp_free_assoc(struct sctp_inpcb *inp, struct sctp_tcb *stcb, int from_inpcbfree, int from_location) argument 5151 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); local 5157 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); local 5207 sctp_destination_is_reachable(struct sctp_tcb *stcb, struct sockaddr *destaddr) argument 5353 sctp_select_primary_destination(struct sctp_tcb *stcb) argument 5403 struct sctp_tcb *stcb; local 5456 sctp_add_local_addr_restricted(struct sctp_tcb *stcb, struct sctp_ifa *ifa) argument 5531 sctp_del_local_addr_restricted(struct sctp_tcb *stcb, struct sctp_ifa *ifa) argument 6007 sctp_load_addresses_from_init(struct sctp_tcb *stcb, struct mbuf *m, int offset, int limit, struct sockaddr *src, struct sockaddr *dst, struct sockaddr *altsa) argument 6628 sctp_set_primary_addr(struct sctp_tcb *stcb, struct sockaddr *sa, struct sctp_nets *net) argument 6676 struct sctp_tcb *stcb; local 6743 sctp_drain_mbufs(struct sctp_tcb *stcb) argument 6871 struct sctp_tcb *stcb; local [all...] |
H A D | sctp_output.c | 2027 sctp_add_addresses_to_i_ia(struct sctp_inpcb *inp, struct sctp_tcb *stcb, argument 2063 if (sctp_is_addr_restricted(stcb, sctp_ifap)) { 2092 if (sctp_is_addr_restricted(stcb, sctp_ifap)) { 2379 sctp_is_addr_restricted(struct sctp_tcb *stcb, struct sctp_ifa *ifa) argument 2383 if (stcb == NULL) { 2387 LIST_FOREACH(laddr, &stcb->asoc.sctp_restricted_addrs, sctp_nxt_addr) { 2543 struct sctp_tcb *stcb, 2586 (sctp_is_addr_restricted(stcb, sifa))) || 2588 (sctp_is_addr_restricted(stcb, sifa)) && 2589 (!sctp_is_addr_pending(stcb, sif 2542 sctp_choose_boundspecific_stcb(struct sctp_inpcb *inp, struct sctp_tcb *stcb, sctp_route_t * ro, uint32_t vrf_id, uint8_t dest_is_priv, uint8_t dest_is_loop, int non_asoc_addr_ok, sa_family_t fam) argument 2702 sctp_select_nth_preferred_addr_from_ifn_boundall(struct sctp_ifn *ifn, struct sctp_tcb *stcb, int non_asoc_addr_ok, uint8_t dest_is_loop, uint8_t dest_is_priv, int addr_wanted, sa_family_t fam, sctp_route_t * ro ) argument 2808 sctp_count_num_preferred_boundall(struct sctp_ifn *ifn, struct sctp_tcb *stcb, int non_asoc_addr_ok, uint8_t dest_is_loop, uint8_t dest_is_priv, sa_family_t fam) argument 2850 sctp_choose_boundall(struct sctp_tcb *stcb, struct sctp_nets *net, sctp_route_t * ro, uint32_t vrf_id, uint8_t dest_is_priv, uint8_t dest_is_loop, int non_asoc_addr_ok, sa_family_t fam) argument 3161 sctp_source_address_selection(struct sctp_inpcb *inp, struct sctp_tcb *stcb, sctp_route_t * ro, struct sctp_nets *net, int non_asoc_addr_ok, uint32_t vrf_id) argument 3419 sctp_process_cmsgs_for_init(struct sctp_tcb *stcb, struct mbuf *control, int *error) argument 3580 struct sctp_tcb *stcb; local 3768 sctp_get_ect(struct sctp_tcb *stcb) argument 3779 sctp_handle_no_route(struct sctp_tcb *stcb, struct sctp_nets *net, int so_locked) argument 3825 sctp_lowlevel_chunk_output(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net, struct sockaddr *to, struct mbuf *m, uint32_t auth_offset, struct sctp_auth_chunk *auth, uint16_t auth_keyid, int nofragment_flag, int ecn_ok, int out_of_asoc_ok, uint16_t src_port, uint16_t dest_port, uint32_t v_tag, uint16_t port, union sctp_sockstore *over_addr, uint8_t use_mflowid, uint32_t mflowid, int so_locked SCTP_UNUSED ) argument 4550 sctp_send_initiate(struct sctp_inpcb *inp, struct sctp_tcb *stcb, int so_locked SCTP_UNUSED ) argument 5341 sctp_send_initiate_ack(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct mbuf *init_pkt, int iphlen, int offset, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_init_chunk *init_chk, uint8_t use_mflowid, uint32_t mflowid, uint32_t vrf_id, uint16_t port, int hold_inp_lock) argument 5961 sctp_prune_prsctp(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_sndrcvinfo *srcv, int dataout) argument 6042 sctp_get_frag_point(struct sctp_tcb *stcb, struct sctp_association *asoc) argument 6135 sctp_msg_append(struct sctp_tcb *stcb, struct sctp_nets *net, struct mbuf *m, struct sctp_sndrcvinfo *srcv, int hold_stcb_lock) argument 6409 sctp_sendall_iterator(struct sctp_inpcb *inp, struct sctp_tcb *stcb, void *ptr, uint32_t val SCTP_UNUSED) argument 6734 sctp_toss_old_cookies(struct sctp_tcb *stcb, struct sctp_association *asoc) argument 6752 sctp_toss_old_asconf(struct sctp_tcb *stcb) argument 6782 sctp_clean_up_datalist(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_tmit_chunk **data_list, int bundle_at, struct sctp_nets *net) argument 6874 sctp_clean_up_ctl(struct sctp_tcb *stcb, struct sctp_association *asoc, int so_locked SCTP_UNUSED ) argument 6917 sctp_can_we_split_this(struct sctp_tcb *stcb, uint32_t length, uint32_t goal_mtu, uint32_t frag_point, int eeor_on) argument 6978 sctp_move_to_outqueue(struct sctp_tcb *stcb, struct sctp_stream_out *strq, uint32_t goal_mtu, uint32_t frag_point, int *locked, int *giveup, int eeor_mode, int *bail, int so_locked SCTP_UNUSED ) argument 7488 sctp_fill_outqueue(struct sctp_tcb *stcb, struct sctp_nets *net, int frag_point, int eeor_mode, int *quit_now, int so_locked SCTP_UNUSED ) argument 7588 sctp_move_chunks_from_net(struct sctp_tcb *stcb, struct sctp_nets *net) argument 7616 sctp_med_chunk_output(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_association *asoc, int *num_out, int *reason_code, int control_only, int from_where, struct timeval *now, int *now_filled, int frag_point, int so_locked SCTP_UNUSED ) argument 8752 sctp_queue_op_err(struct sctp_tcb *stcb, struct mbuf *op_err) argument 8800 sctp_send_cookie_echo(struct mbuf *m, int offset, struct sctp_tcb *stcb, struct sctp_nets *net) argument 8889 sctp_send_heartbeat_ack(struct sctp_tcb *stcb, struct mbuf *m, int offset, int chk_length, struct sctp_nets *net) argument 8956 sctp_send_cookie_ack(struct sctp_tcb *stcb) argument 9005 sctp_send_shutdown_ack(struct sctp_tcb *stcb, struct sctp_nets *net) argument 9048 sctp_send_shutdown(struct sctp_tcb *stcb, struct sctp_nets *net) argument 9092 sctp_send_asconf(struct sctp_tcb *stcb, struct sctp_nets *net, int addr_locked) argument 9139 sctp_send_asconf_ack(struct sctp_tcb *stcb) argument 9240 sctp_chunk_retransmission(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_association *asoc, int *cnt_out, struct timeval *now, int *now_filled, int *fr_done, int so_locked SCTP_UNUSED ) argument 9752 sctp_timer_validation(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_association *asoc) argument 9777 sctp_chunk_output(struct sctp_inpcb *inp, struct sctp_tcb *stcb, int from_where, int so_locked SCTP_UNUSED ) argument 10079 send_forward_tsn(struct sctp_tcb *stcb, struct sctp_association *asoc) argument 10258 sctp_send_sack(struct sctp_tcb *stcb, int so_locked SCTP_UNUSED ) argument 10669 sctp_send_abort_tcb(struct sctp_tcb *stcb, struct mbuf *operr, int so_locked SCTP_UNUSED ) argument 10763 sctp_send_shutdown_complete(struct sctp_tcb *stcb, struct sctp_nets *net, int reflect_vtag) argument 11079 sctp_send_hb(struct sctp_tcb *stcb, struct sctp_nets *net, int so_locked SCTP_UNUSED ) argument 11181 sctp_send_ecn_echo(struct sctp_tcb *stcb, struct sctp_nets *net, uint32_t high_tsn) argument 11245 sctp_send_packet_dropped(struct sctp_tcb *stcb, struct sctp_nets *net, struct mbuf *m, int len, int iphlen, int bad_crc) argument 11393 sctp_send_cwr(struct sctp_tcb *stcb, struct sctp_nets *net, uint32_t high_tsn, uint8_t override) argument 11692 sctp_send_str_reset_req(struct sctp_tcb *stcb, int number_entries, uint16_t * list, uint8_t send_out_req, uint8_t send_in_req, uint8_t send_tsn_req, uint8_t add_stream, uint16_t adding_o, uint16_t adding_i, uint8_t peer_asked) argument 11936 sctp_copy_it_in(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_sndrcvinfo *srcv, struct uio *uio, struct sctp_nets *net, int max_send_len, int user_marks_eor, int *error) argument 12098 struct sctp_tcb *stcb = NULL; local 13259 sctp_add_auth_chunk(struct mbuf *m, struct mbuf **m_end, struct sctp_auth_chunk **auth_ret, uint32_t * offset, struct sctp_tcb *stcb, uint8_t chunk) argument [all...] |
H A D | sctp_auth.c | 564 sctp_auth_key_acquire(struct sctp_tcb *stcb, uint16_t key_id) argument 569 skey = sctp_find_sharedkey(&stcb->asoc.shared_keys, key_id); 575 "%s: stcb %p key %u refcount acquire to %d\n", 576 __FUNCTION__, (void *)stcb, key_id, skey->refcount); 581 sctp_auth_key_release(struct sctp_tcb *stcb, uint16_t key_id, int so_locked argument 590 skey = sctp_find_sharedkey(&stcb->asoc.shared_keys, key_id); 596 "%s: stcb %p key %u refcount release to %d\n", 597 __FUNCTION__, (void *)stcb, key_id, skey->refcount); 602 sctp_ulp_notify(SCTP_NOTIFY_AUTH_FREE_KEY, stcb, 605 "%s: stcb 1201 sctp_clear_cachedkeys(struct sctp_tcb *stcb, uint16_t keyid) argument 1224 struct sctp_tcb *stcb; local 1242 sctp_delete_sharedkey(struct sctp_tcb *stcb, uint16_t keyid) argument 1308 sctp_auth_setactivekey(struct sctp_tcb *stcb, uint16_t keyid) argument 1354 sctp_deact_sharedkey(struct sctp_tcb *stcb, uint16_t keyid) argument 1416 sctp_auth_get_cookie_params(struct sctp_tcb *stcb, struct mbuf *m, uint32_t offset, uint32_t length) argument 1553 sctp_fill_hmac_digest_m(struct mbuf *m, uint32_t auth_offset, struct sctp_auth_chunk *auth, struct sctp_tcb *stcb, uint16_t keyid) argument 1641 sctp_handle_auth(struct sctp_tcb *stcb, struct sctp_auth_chunk *auth, struct mbuf *m, uint32_t offset) argument 1762 sctp_notify_authentication(struct sctp_tcb *stcb, uint32_t indication, uint16_t keyid, uint16_t alt_keyid, int so_locked SCTP_UNUSED ) argument 1965 sctp_initialize_auth_params(struct sctp_inpcb *inp, struct sctp_tcb *stcb) argument [all...] |
H A D | sctp_ss_functions.c | 50 sctp_ss_default_init(struct sctp_tcb *stcb, struct sctp_association *asoc, argument 61 for (i = 0; i < stcb->asoc.streamoutcnt; i++) { 62 stcb->asoc.ss_functions.sctp_ss_add_to_stream(stcb, &stcb->asoc, 63 &stcb->asoc.strmout[i], 70 sctp_ss_default_clear(struct sctp_tcb *stcb, struct sctp_association *asoc, argument 74 SCTP_TCB_SEND_LOCK(stcb); 85 SCTP_TCB_SEND_UNLOCK(stcb); 99 sctp_ss_default_add(struct sctp_tcb *stcb, struc argument 130 sctp_ss_default_remove(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq, struct sctp_stream_queue_pending *sp SCTP_UNUSED, int holds_lock) argument 248 sctp_ss_rr_add(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq, struct sctp_stream_queue_pending *sp SCTP_UNUSED, int holds_lock) argument 342 sctp_ss_prio_clear(struct sctp_tcb *stcb, struct sctp_association *asoc, int clear_values, int holds_lock) argument 380 sctp_ss_prio_add(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq, struct sctp_stream_queue_pending *sp SCTP_UNUSED, int holds_lock) argument 414 sctp_ss_prio_remove(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq, struct sctp_stream_queue_pending *sp SCTP_UNUSED, int holds_lock) argument 507 sctp_ss_prio_set_value(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq, uint16_t value) argument 524 sctp_ss_fb_clear(struct sctp_tcb *stcb, struct sctp_association *asoc, int clear_values, int holds_lock) argument 561 sctp_ss_fb_add(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq, struct sctp_stream_queue_pending *sp SCTP_UNUSED, int holds_lock) argument 582 sctp_ss_fb_remove(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq, struct sctp_stream_queue_pending *sp SCTP_UNUSED, int holds_lock) argument 683 sctp_ss_fcfs_init(struct sctp_tcb *stcb, struct sctp_association *asoc, int holds_lock) argument 717 sctp_ss_fcfs_clear(struct sctp_tcb *stcb, struct sctp_association *asoc, int clear_values, int holds_lock) argument 742 sctp_ss_fcfs_add(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq SCTP_UNUSED, struct sctp_stream_queue_pending *sp, int holds_lock) argument 770 sctp_ss_fcfs_remove(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq SCTP_UNUSED, struct sctp_stream_queue_pending *sp, int holds_lock) argument [all...] |
H A D | sctp_cc_functions.c | 56 sctp_set_initial_cc_param(struct sctp_tcb *stcb, struct sctp_nets *net) argument 61 assoc = &stcb->asoc; 75 if ((stcb->asoc.sctp_cmt_on_off == SCTP_CMT_RPV1) || 76 (stcb->asoc.sctp_cmt_on_off == SCTP_CMT_RPV2)) { 85 stcb->asoc.my_vtag, ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), net, 89 sctp_log_cwnd(stcb, net, 0, SCTP_CWND_INITIALIZATION); 94 sctp_cwnd_update_after_fr(struct sctp_tcb *stcb, argument 182 stcb 235 cc_bw_same(struct sctp_tcb *stcb, struct sctp_nets *net, uint64_t nbw, uint64_t rtt_offset, uint64_t vtag, uint8_t inst_ind) argument 370 cc_bw_decrease(struct sctp_tcb *stcb, struct sctp_nets *net, uint64_t nbw, uint64_t rtt_offset, uint64_t vtag, uint8_t inst_ind) argument 508 cc_bw_increase(struct sctp_tcb *stcb, struct sctp_nets *net, uint64_t nbw, uint64_t vtag) argument 551 cc_bw_limit(struct sctp_tcb *stcb, struct sctp_nets *net, uint64_t nbw) argument 662 sctp_cwnd_update_after_sack_common(struct sctp_tcb *stcb, struct sctp_association *asoc, int accum_moved, int reneged_all SCTP_UNUSED, int will_exit, int use_rtcc) argument 977 sctp_cwnd_update_exit_pf_common(struct sctp_tcb *stcb, struct sctp_nets *net) argument 992 sctp_cwnd_update_after_timeout(struct sctp_tcb *stcb, struct sctp_nets *net) argument 1065 sctp_cwnd_update_after_ecn_echo_common(struct sctp_tcb *stcb, struct sctp_nets *net, int in_window, int num_pkt_lost, int use_rtcc) argument 1128 sctp_cwnd_update_after_packet_dropped(struct sctp_tcb *stcb, struct sctp_nets *net, struct sctp_pktdrop_chunk *cp, uint32_t * bottle_bw, uint32_t * on_queue) argument 1248 sctp_cwnd_update_after_output(struct sctp_tcb *stcb, struct sctp_nets *net, int burst_limit) argument 1269 sctp_cwnd_update_after_sack(struct sctp_tcb *stcb, struct sctp_association *asoc, int accum_moved, int reneged_all, int will_exit) argument 1278 sctp_cwnd_update_after_ecn_echo(struct sctp_tcb *stcb, struct sctp_nets *net, int in_window, int num_pkt_lost) argument 1291 sctp_cwnd_update_rtcc_after_ecn_echo(struct sctp_tcb *stcb, struct sctp_nets *net, int in_window, int num_pkt_lost) argument 1321 sctp_cwnd_new_rtcc_transmission_begins(struct sctp_tcb *stcb, struct sctp_nets *net) argument 1384 sctp_set_rtcc_initial_cc_param(struct sctp_tcb *stcb, struct sctp_nets *net) argument 1421 sctp_cwnd_rtcc_socket_option(struct sctp_tcb *stcb, int setorget, struct sctp_cc_option *cc_opt) argument 1489 sctp_cwnd_update_rtcc_after_sack(struct sctp_tcb *stcb, struct sctp_association *asoc, int accum_moved, int reneged_all, int will_exit) argument 1592 sctp_hs_cwnd_increase(struct sctp_tcb *stcb, struct sctp_nets *net) argument 1629 sctp_hs_cwnd_decrease(struct sctp_tcb *stcb, struct sctp_nets *net) argument 1669 sctp_hs_cwnd_update_after_fr(struct sctp_tcb *stcb, struct sctp_association *asoc) argument 1734 sctp_hs_cwnd_update_after_sack(struct sctp_tcb *stcb, struct sctp_association *asoc, int accum_moved, int reneged_all SCTP_UNUSED, int will_exit) argument 1873 htcp_cwnd_undo(struct sctp_tcb *stcb, struct sctp_nets *net) argument 2025 htcp_cong_avoid(struct sctp_tcb *stcb, struct sctp_nets *net) argument 2089 htcp_min_cwnd(struct sctp_tcb *stcb, struct sctp_nets *net) argument 2107 sctp_htcp_set_initial_cc_param(struct sctp_tcb *stcb, struct sctp_nets *net) argument 2123 sctp_htcp_cwnd_update_after_sack(struct sctp_tcb *stcb, struct sctp_association *asoc, int accum_moved, int reneged_all SCTP_UNUSED, int will_exit) argument 2191 sctp_htcp_cwnd_update_after_fr(struct sctp_tcb *stcb, struct sctp_association *asoc) argument 2263 sctp_htcp_cwnd_update_after_timeout(struct sctp_tcb *stcb, struct sctp_nets *net) argument 2279 sctp_htcp_cwnd_update_after_ecn_echo(struct sctp_tcb *stcb, struct sctp_nets *net, int in_window, int num_pkt_lost SCTP_UNUSED) argument [all...] |
H A D | sctp_indata.h | 42 sctp_build_readq_entry(struct sctp_tcb *stcb, 68 (_ctl)->stcb = (in_it); \ 87 sctp_calc_rwnd(struct sctp_tcb *stcb, struct sctp_association *asoc); 90 sctp_express_handle_sack(struct sctp_tcb *stcb, uint32_t cumack, 95 struct sctp_tcb *stcb, 122 void sctp_slide_mapping_arrays(struct sctp_tcb *stcb);
|
H A D | sctp_asconf.h | 66 struct sctp_tcb *stcb, 88 sctp_asconf_send_nat_state_update(struct sctp_tcb *stcb,
|
H A D | sctp_auth.h | 151 extern void sctp_auth_key_acquire(struct sctp_tcb *stcb, uint16_t keyid); 153 sctp_auth_key_release(struct sctp_tcb *stcb, uint16_t keyid, 199 extern void sctp_clear_cachedkeys(struct sctp_tcb *stcb, uint16_t keyid); 201 extern int sctp_delete_sharedkey(struct sctp_tcb *stcb, uint16_t keyid); 203 extern int sctp_auth_setactivekey(struct sctp_tcb *stcb, uint16_t keyid); 205 extern int sctp_deact_sharedkey(struct sctp_tcb *stcb, uint16_t keyid); 209 sctp_auth_get_cookie_params(struct sctp_tcb *stcb, struct mbuf *m, 213 struct sctp_auth_chunk *auth, struct sctp_tcb *stcb, uint16_t key_id); 217 struct sctp_tcb *stcb, uint8_t chunk); 219 sctp_handle_auth(struct sctp_tcb *stcb, struc [all...] |
H A D | sctp_sysctl.c | 187 copy_out_local_addresses(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sysctl_req *req) argument 199 if (stcb) { 201 loopback_scope = stcb->asoc.scope.loopback_scope; 202 ipv4_local_scope = stcb->asoc.scope.ipv4_local_scope; 203 local_scope = stcb->asoc.scope.local_scope; 204 site_scope = stcb->asoc.scope.site_scope; 205 ipv4_addr_legal = stcb->asoc.scope.ipv4_addr_legal; 206 ipv6_addr_legal = stcb->asoc.scope.ipv6_addr_legal; 238 if (stcb) { 243 if (sctp_is_addr_restricted(stcb, sctp_if 354 struct sctp_tcb *stcb; local [all...] |
H A D | sctp_structs.h | 139 struct sctp_tcb *stcb; /* current* assoc */ member in struct:sctp_iterator 478 struct sctp_tcb *stcb; /* assoc, used for window update */ member in struct:sctp_queued_to_read 617 void *stcb; member in struct:sctp_tsn_log 638 * pad that bulks up both the inp and stcb. The non 663 void (*sctp_set_initial_cc_param) (struct sctp_tcb *stcb, struct sctp_nets *net); 664 void (*sctp_cwnd_update_after_sack) (struct sctp_tcb *stcb, 667 void (*sctp_cwnd_update_exit_pf) (struct sctp_tcb *stcb, struct sctp_nets *net); 668 void (*sctp_cwnd_update_after_fr) (struct sctp_tcb *stcb, 670 void (*sctp_cwnd_update_after_timeout) (struct sctp_tcb *stcb, 672 void (*sctp_cwnd_update_after_ecn_echo) (struct sctp_tcb *stcb, [all...] |
H A D | sctp_output.h | 46 struct sctp_tcb *stcb, 66 struct sctp_tcb *stcb, 106 sctp_remove_from_wheel(struct sctp_tcb *stcb, 135 void sctp_move_chunks_from_net(struct sctp_tcb *stcb, struct sctp_nets *net);
|
H A D | sctp_timer.h | 77 sctp_strreset_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb,
|
H A D | sctp_os_bsd.h | 195 #define SCTP_LTRACE_ERR_RET_PKT(m, inp, stcb, net, file, err) \ 197 SCTP_PRINTF("mbuf:%p inp:%p stcb:%p net:%p file:%x line:%d error:%d\n", \ 198 m, inp, stcb, net, file, __LINE__, err); 199 #define SCTP_LTRACE_ERR_RET(inp, stcb, net, file, err) \ 201 SCTP_PRINTF("inp:%p stcb:%p net:%p file:%x line:%d error:%d\n", \ 202 inp, stcb, net, file, __LINE__, err); 204 #define SCTP_LTRACE_ERR_RET_PKT(m, inp, stcb, net, file, err) 205 #define SCTP_LTRACE_ERR_RET(inp, stcb, net, file, err) 442 #define SCTP_IP_OUTPUT(result, o_pak, ro, stcb, vrf_id) \ 445 struct sctp_tcb *local_stcb = stcb; \ [all...] |
H A D | sctp_uio.h | 774 void *stcb; /* FIXME: LP64 issue */ member in struct:sctp_str_log 783 void *stcb; /* FIXME: LP64 issue */ member in struct:sctp_sb_log 842 void *stcb; /* FIXME: LP64 issue */ member in struct:sctp_nagle_log 850 void *stcb; /* FIXME: LP64 issue */ member in struct:sctp_sbwake_log 870 void *stcb; /* FIXME: LP64 issue */ member in struct:sctp_log_closing
|
/freebsd-10.0-release/sys/netinet6/ |
H A D | sctp6_usrreq.c | 205 struct sctphdr *sh, struct sctp_tcb *stcb, struct sctp_nets *net) 209 if ((inp == NULL) || (stcb == NULL) || (net == NULL) || 214 if (ntohl(sh->v_tag) != (stcb->asoc.peer_vtag)) 229 sctp_timer_stop(SCTP_TIMER_TYPE_PATHMTURAISE, inp, stcb, NULL, SCTP_FROM_SCTP6_USRREQ + SCTP_LOC_1); 239 if (stcb->asoc.smallest_mtu > nxtsz) { 243 stcb->asoc.smallest_mtu = nxtsz; 246 TAILQ_FOREACH(chk, &stcb->asoc.send_queue, sctp_next) { 251 TAILQ_FOREACH(chk, &stcb->asoc.sent_queue, sctp_next) { 259 stcb->asoc.sent_queue_retran_cnt++; 267 stcb 204 sctp6_notify_mbuf(struct sctp_inpcb *inp, struct icmp6_hdr *icmp6, struct sctphdr *sh, struct sctp_tcb *stcb, struct sctp_nets *net) argument 281 sctp6_notify(struct sctp_inpcb *inp, struct icmp6_hdr *icmph, struct sctphdr *sh, struct sockaddr *to, struct sctp_tcb *stcb, struct sctp_nets *net) argument 398 struct sctp_tcb *stcb = NULL; local 462 struct sctp_tcb *stcb; local 842 struct sctp_tcb *stcb; local 1015 struct sctp_tcb *stcb; local 1090 struct sctp_tcb *stcb; local [all...] |