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

12

/freebsd-11-stable/sys/netinet/
H A Dsctp_timer.c89 sctp_threshold_management(struct sctp_inpcb *inp, struct sctp_tcb *stcb, argument
104 stcb, 0,
112 sctp_send_hb(stcb, net, SCTP_SO_NOT_LOCKED);
114 inp, stcb, net,
116 sctp_timer_start(SCTP_TIMER_TYPE_HEARTBEAT, inp, stcb, net);
120 if (stcb == NULL)
127 stcb->asoc.overall_error_count,
128 (stcb->asoc.overall_error_count + 1),
132 stcb->asoc.overall_error_count++;
137 stcb
170 sctp_find_alternate_net(struct sctp_tcb *stcb, struct sctp_nets *net, int mode) argument
402 sctp_backoff_on_timeout(struct sctp_tcb *stcb, struct sctp_nets *net, int win_probe, int num_marked, int num_abandoned) argument
427 sctp_recover_sent_list(struct sctp_tcb *stcb) argument
473 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
804 sctp_t3rxt_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument
996 sctp_t1init_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument
1044 sctp_cookie_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net SCTP_UNUSED) argument
1109 sctp_strreset_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument
1172 sctp_asconf_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument
1268 sctp_delete_prim_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net SCTP_UNUSED) argument
1291 sctp_shutdown_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument
1314 sctp_shutdownack_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument
1337 sctp_audit_stream_queues_for_size(struct sctp_inpcb *inp, struct sctp_tcb *stcb) argument
1402 sctp_heartbeat_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument
1465 sctp_pathmtu_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument
1525 sctp_autoclose_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument
[all...]
H A Dsctp_input.c58 sctp_stop_all_cookie_timers(struct sctp_tcb *stcb) argument
67 SCTP_TCB_LOCK_ASSERT(stcb);
68 TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) {
71 stcb->sctp_ep,
72 stcb,
76 stcb->sctp_ep,
77 stcb,
88 struct sctp_tcb *stcb, struct sctp_nets *net, int *abort_no_unlock,
96 (void *)stcb);
97 if (stcb
85 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, struct sctp_nets *net, int *abort_no_unlock, uint8_t mflowtype, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument
215 sctp_is_there_unsent_data(struct sctp_tcb *stcb, int so_locked SCTP_UNUSED ) argument
286 sctp_process_init(struct sctp_init_chunk *cp, struct sctp_tcb *stcb) argument
437 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 mflowtype, uint32_t mflowid, uint32_t vrf_id) argument
567 sctp_handle_heartbeat_ack(struct sctp_heartbeat_chunk *cp, struct sctp_tcb *stcb, struct sctp_nets *net) argument
712 sctp_handle_nat_colliding_state(struct sctp_tcb *stcb) argument
770 sctp_handle_nat_missing_state(struct sctp_tcb *stcb, struct sctp_nets *net) argument
788 sctp_handle_abort(struct sctp_abort_chunk *abort, struct sctp_tcb *stcb, struct sctp_nets *net) argument
859 sctp_start_net_timers(struct sctp_tcb *stcb) argument
888 sctp_handle_shutdown(struct sctp_shutdown_chunk *cp, struct sctp_tcb *stcb, struct sctp_nets *net, int *abort_flag) argument
1020 sctp_handle_shutdown_ack(struct sctp_shutdown_ack_chunk *cp SCTP_UNUSED, struct sctp_tcb *stcb, struct sctp_nets *net) argument
1113 sctp_process_unrecog_chunk(struct sctp_tcb *stcb, uint8_t chunk_type, struct sctp_nets *net) argument
1140 sctp_process_unrecog_param(struct sctp_tcb *stcb, uint16_t parameter_type) argument
1174 sctp_handle_error(struct sctp_chunkhdr *ch, struct sctp_tcb *stcb, struct sctp_nets *net, uint32_t limit) argument
1354 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 mflowtype, uint32_t mflowid, uint32_t vrf_id) argument
1512 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 mflowtype, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument
2092 struct sctp_tcb *stcb; local
2455 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 mflowtype, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument
2957 sctp_handle_cookie_ack(struct sctp_cookie_ack_chunk *cp SCTP_UNUSED, struct sctp_tcb *stcb, struct sctp_nets *net) argument
3078 sctp_handle_ecn_echo(struct sctp_ecne_chunk *cp, struct sctp_tcb *stcb) argument
3201 sctp_handle_ecn_cwr(struct sctp_cwr_chunk *cp, struct sctp_tcb *stcb, struct sctp_nets *net) argument
3241 sctp_handle_shutdown_complete(struct sctp_shutdown_complete_chunk *cp SCTP_UNUSED, struct sctp_tcb *stcb, struct sctp_nets *net) argument
3296 process_chunk_drop(struct sctp_tcb *stcb, struct sctp_chunk_desc *desc, struct sctp_nets *net, uint8_t flg) argument
3537 sctp_reset_in_stream(struct sctp_tcb *stcb, uint32_t number_entries, uint16_t *list) argument
3565 sctp_reset_out_streams(struct sctp_tcb *stcb, uint32_t number_entries, uint16_t *list) argument
3590 sctp_reset_clear_pending(struct sctp_tcb *stcb, uint32_t number_entries, uint16_t *list) argument
3613 sctp_find_stream_reset(struct sctp_tcb *stcb, uint32_t seq, struct sctp_tmit_chunk **bchk) argument
3658 sctp_clean_up_stream_reset(struct sctp_tcb *stcb) argument
3682 sctp_handle_stream_reset_response(struct sctp_tcb *stcb, uint32_t seq, uint32_t action, struct sctp_stream_reset_response *respin) argument
3849 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
3915 sctp_handle_str_reset_request_tsn(struct sctp_tcb *stcb, struct sctp_tmit_chunk *chk, struct sctp_stream_reset_tsn_request *req) argument
3980 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
4057 sctp_handle_str_reset_add_strm(struct sctp_tcb *stcb, struct sctp_tmit_chunk *chk, struct sctp_stream_reset_add_strm *str_add) argument
4150 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
4210 sctp_handle_stream_reset(struct sctp_tcb *stcb, struct mbuf *m, int offset, struct sctp_chunkhdr *ch_req) argument
4387 sctp_handle_packet_dropped(struct sctp_pktdrop_chunk *cp, struct sctp_tcb *stcb, struct sctp_nets *net, uint32_t limit) argument
4549 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 mflowtype, uint32_t mflowid, uint16_t fibnum, uint32_t vrf_id, uint16_t port) argument
5533 struct sctp_tcb *stcb = NULL; local
[all...]
H A Dsctp_var.h51 #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 Dsctp_input.h50 sctp_find_stream_reset(struct sctp_tcb *stcb, uint32_t seq,
54 sctp_reset_in_stream(struct sctp_tcb *stcb, uint32_t number_entries,
58 int sctp_is_there_unsent_data(struct sctp_tcb *stcb, int so_locked);
H A Dsctp_usrreq.c103 sctp_pathmtu_adjustment(struct sctp_tcb *stcb, uint16_t nxtsz) argument
109 stcb->asoc.smallest_mtu = nxtsz;
112 if (sctp_auth_is_required_chunk(SCTP_DATA, stcb->asoc.peer_auth_chunks)) {
113 overhead += sctp_get_auth_chunk_len(stcb->asoc.peer_hmac_id);
115 TAILQ_FOREACH(chk, &stcb->asoc.send_queue, sctp_next) {
120 TAILQ_FOREACH(chk, &stcb->asoc.sent_queue, sctp_next) {
129 sctp_total_flight_decrease(stcb, chk);
131 sctp_ucount_incr(stcb->asoc.sent_queue_retran_cnt);
153 struct sctp_tcb *stcb,
167 SCTP_TCB_UNLOCK(stcb);
152 sctp_notify(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net, uint8_t icmp_type, uint8_t icmp_code, uint16_t ip_len, uint32_t next_mtu) argument
263 struct sctp_tcb *stcb; local
367 struct sctp_tcb *stcb; local
688 struct sctp_tcb *stcb; local
895 struct sctp_tcb *stcb; local
1012 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
1247 sctp_fill_up_addresses(struct sctp_inpcb *inp, struct sctp_tcb *stcb, size_t limit, struct sockaddr_storage *sas) argument
1360 struct sctp_tcb *stcb = NULL; local
1541 struct sctp_tcb *stcb = NULL; local
3768 struct sctp_tcb *stcb = NULL; local
6985 struct sctp_tcb *stcb = NULL; local
7303 struct sctp_tcb *stcb; local
7436 struct sctp_tcb *stcb; local
7515 struct sctp_tcb *stcb; local
[all...]
H A Dsctputil.c71 sctp_sblog(struct sockbuf *sb, struct sctp_tcb *stcb, int from, int incr) argument
76 sctp_clog.x.sb.stcb = stcb;
78 if (stcb)
79 sctp_clog.x.sb.stcb_sbcc = stcb->asoc.sb_cc;
94 sctp_log_closing(struct sctp_inpcb *inp, struct sctp_tcb *stcb, int16_t loc) argument
101 if (stcb) {
102 sctp_clog.x.close.stcb = (void *)stcb;
103 sctp_clog.x.close.state = (uint16_t)stcb
139 sctp_log_strm_del_alt(struct sctp_tcb *stcb, uint32_t tsn, uint16_t sseq, uint16_t stream, int from) argument
161 sctp_log_nagle_event(struct sctp_tcb *stcb, int action) argument
313 sctp_log_cwnd(struct sctp_tcb *stcb, struct sctp_nets *net, int augment, uint8_t from) argument
350 sctp_log_lock(struct sctp_inpcb *inp, struct sctp_tcb *stcb, uint8_t from) argument
396 sctp_log_maxburst(struct sctp_tcb *stcb, struct sctp_nets *net, int error, int burst, uint8_t from) argument
498 sctp_wakeup_log(struct sctp_tcb *stcb, uint32_t wake_cnt, int from) argument
629 sctp_auditing(int from, struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument
778 sctp_stop_timers_for_shutdown(struct sctp_tcb *stcb) argument
802 sctp_stop_association_timers(struct sctp_tcb *stcb, bool stop_assoc_kill_timer) argument
1039 sctp_init_asoc(struct sctp_inpcb *inp, struct sctp_tcb *stcb, uint32_t override_tag, uint32_t vrf_id, uint16_t o_strms) argument
1606 struct sctp_tcb *stcb; local
2046 sctp_timer_start(int t_type, struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net) argument
2331 sctp_timer_stop(int t_type, struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net, uint32_t from) argument
2535 sctp_calculate_rto(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_nets *net, struct timeval *old, int rtt_from_sack) argument
2755 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
2915 sctp_notify_peer_addr_change(struct sctp_tcb *stcb, uint32_t state, struct sockaddr *sa, uint32_t error, int so_locked SCTP_UNUSED ) argument
3008 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
3144 sctp_notify_send_failed2(struct sctp_tcb *stcb, uint32_t error, struct sctp_stream_queue_pending *sp, int so_locked SCTP_UNUSED ) argument
3246 sctp_notify_adaptation_layer(struct sctp_tcb *stcb) argument
3294 sctp_notify_partial_delivery_indication(struct sctp_tcb *stcb, uint32_t error, uint32_t val, int so_locked SCTP_UNUSED ) argument
3387 sctp_notify_shutdown_event(struct sctp_tcb *stcb) argument
3457 sctp_notify_sender_dry_event(struct sctp_tcb *stcb, int so_locked SCTP_UNUSED ) argument
3509 sctp_notify_stream_reset_add(struct sctp_tcb *stcb, uint16_t numberin, uint16_t numberout, int flag) argument
3565 sctp_notify_stream_reset_tsn(struct sctp_tcb *stcb, uint32_t sending_tsn, uint32_t recv_tsn, int flag) argument
3617 sctp_notify_stream_reset(struct sctp_tcb *stcb, int number_entries, uint16_t *list, int flag) argument
3682 sctp_notify_remote_error(struct sctp_tcb *stcb, uint16_t error, struct sctp_error_chunk *chunk) argument
3748 sctp_ulp_notify(uint32_t notification, struct sctp_tcb *stcb, uint32_t error, void *data, int so_locked SCTP_UNUSED ) argument
3928 sctp_report_all_outbound(struct sctp_tcb *stcb, uint16_t error, int so_locked SCTP_UNUSED ) argument
4033 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
4066 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 mflowtype, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument
4112 sctp_print_out_track_log(struct sctp_tcb *stcb) argument
4174 sctp_abort_an_association(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct mbuf *op_err, int so_locked SCTP_UNUSED ) argument
4482 sctp_pull_off_control_to_new_inp(struct sctp_inpcb *old_inp, struct sctp_inpcb *new_inp, struct sctp_tcb *stcb, int waitflags) argument
4558 sctp_wakeup_the_read_socket(struct sctp_inpcb *inp, struct sctp_tcb *stcb, int so_locked SCTP_UNUSED ) argument
4597 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
4750 sctp_free_bufspace(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_tmit_chunk *tp1, int chk_cnt) argument
4784 sctp_release_pr_sctp_chunk(struct sctp_tcb *stcb, struct sctp_tmit_chunk *tp1, uint8_t sent, int so_locked SCTP_UNUSED ) argument
5177 sctp_user_rcvd(struct sctp_tcb *stcb, uint32_t *freed_so_far, int hold_rlock, uint32_t rwnd_req) argument
5283 struct sctp_tcb *stcb = NULL; local
6370 sctp_connectx_helper_add(struct sctp_tcb *stcb, struct sockaddr *addr, int totaddr, int *error) argument
6457 struct sctp_tcb *stcb; local
6741 sctp_local_addr_count(struct sctp_tcb *stcb) argument
7000 struct sctp_tcb *stcb; local
7107 struct sctp_tcb *stcb; local
[all...]
H A Dsctp_asconf.c152 struct sctp_tcb *stcb, int send_hb, int response_required)
199 sin->sin_port = stcb->rport;
222 sin6->sin6_port = stcb->rport;
254 } else if (sctp_add_remote_addr(stcb, sa, &net, stcb->asoc.port,
269 sctp_ulp_notify(SCTP_NOTIFY_ASCONF_ADD_IP, stcb, 0, sa, SCTP_SO_NOT_LOCKED);
270 sctp_timer_start(SCTP_TIMER_TYPE_PATHMTURAISE, stcb->sctp_ep, stcb, net);
271 sctp_timer_start(SCTP_TIMER_TYPE_HEARTBEAT, stcb->sctp_ep,
272 stcb, ne
151 sctp_process_asconf_add_ip(struct sockaddr *src, struct sctp_asconf_paramhdr *aph, struct sctp_tcb *stcb, int send_hb, int response_required) argument
282 sctp_asconf_del_remote_addrs_except(struct sctp_tcb *stcb, struct sockaddr *src) argument
311 sctp_process_asconf_delete_ip(struct sockaddr *src, struct sctp_asconf_paramhdr *aph, struct sctp_tcb *stcb, int response_required) argument
449 sctp_process_asconf_set_primary(struct sockaddr *src, struct sctp_asconf_paramhdr *aph, struct sctp_tcb *stcb, int response_required) argument
607 sctp_handle_asconf(struct mbuf *m, unsigned int offset, struct sockaddr *src, struct sctp_asconf_chunk *cp, struct sctp_tcb *stcb, int first) argument
940 sctp_asconf_cleanup(struct sctp_tcb *stcb, struct sctp_nets *net) argument
957 sctp_asconf_nets_cleanup(struct sctp_tcb *stcb, struct sctp_ifn *ifn) argument
996 sctp_assoc_immediate_retrans(struct sctp_tcb *stcb, struct sctp_nets *dstnet) argument
1052 sctp_net_immediate_retrans(struct sctp_tcb *stcb, struct sctp_nets *net) argument
1079 sctp_path_check_and_react(struct sctp_tcb *stcb, struct sctp_ifa *newifa) argument
1187 sctp_asconf_addr_mgmt_ack(struct sctp_tcb *stcb, struct sctp_ifa *addr, uint32_t flag) argument
1225 sctp_asconf_queue_mgmt(struct sctp_tcb *stcb, struct sctp_ifa *ifa, uint16_t type) argument
1351 sctp_asconf_queue_add(struct sctp_tcb *stcb, struct sctp_ifa *ifa, uint16_t type) argument
1449 sctp_asconf_queue_sa_delete(struct sctp_tcb *stcb, struct sockaddr *sa) argument
1553 sctp_asconf_find_param(struct sctp_tcb *stcb, uint32_t correlation_id) argument
1625 sctp_asconf_process_param_ack(struct sctp_tcb *stcb, struct sctp_asconf_addr *aparam, uint32_t flag) argument
1672 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
1863 sctp_is_scopeid_in_nets(struct sctp_tcb *stcb, struct sockaddr *sa) argument
1899 sctp_addr_mgmt_assoc(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_ifa *ifa, uint16_t type, int addr_locked) argument
2118 sctp_asconf_iterator_stcb(struct sctp_inpcb *inp, struct sctp_tcb *stcb, void *ptr, uint32_t val SCTP_UNUSED) argument
2316 sctp_set_primary_ip_address_sa(struct sctp_tcb *stcb, struct sockaddr *sa) argument
2356 sctp_is_addr_pending(struct sctp_tcb *stcb, struct sctp_ifa *sctp_ifa) argument
2451 sctp_find_valid_localaddr(struct sctp_tcb *stcb, int addr_locked) argument
2557 sctp_find_valid_localaddr_ep(struct sctp_tcb *stcb) argument
2582 sctp_compose_asconf(struct sctp_tcb *stcb, int *retlen, int addr_locked) argument
2779 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
3065 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
3160 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
3287 sctp_asconf_send_nat_state_update(struct sctp_tcb *stcb, struct sctp_nets *net) argument
[all...]
H A Dsctputil.h45 void sctp_print_out_track_log(struct sctp_tcb *stcb);
61 #define sctp_get_associd(stcb) ((sctp_assoc_t)stcb->asoc.assoc_id)
86 sctp_notify_stream_reset_add(struct sctp_tcb *stcb, uint16_t numberin,
89 sctp_notify_stream_reset_tsn(struct sctp_tcb *stcb, uint32_t sending_tsn, uint32_t recv_tsn, int flag);
106 sctp_wakeup_the_read_socket(struct sctp_inpcb *inp, struct sctp_tcb *stcb,
115 struct sctp_tcb *stcb,
160 struct sctp_tcb *stcb, int waitflags);
212 sctp_connectx_helper_add(struct sctp_tcb *stcb, struct sockaddr *addr,
265 int sctp_local_addr_count(struct sctp_tcb *stcb);
[all...]
H A Dsctp_peeloff.c53 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);
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 Dsctp_output.c2028 sctp_add_addresses_to_i_ia(struct sctp_inpcb *inp, struct sctp_tcb *stcb, argument
2078 if (sctp_is_addr_restricted(stcb, sctp_ifap)) {
2121 if (sctp_is_addr_restricted(stcb, sctp_ifap)) {
2408 sctp_is_addr_restricted(struct sctp_tcb *stcb, struct sctp_ifa *ifa) argument
2412 if (stcb == NULL) {
2416 LIST_FOREACH(laddr, &stcb->asoc.sctp_restricted_addrs, sctp_nxt_addr) {
2589 struct sctp_tcb *stcb,
2646 (sctp_is_addr_restricted(stcb, sifa))) ||
2648 (sctp_is_addr_restricted(stcb, sifa)) &&
2649 (!sctp_is_addr_pending(stcb, sif
2588 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
2776 sctp_select_nth_preferred_addr_from_ifn_boundall(struct sctp_ifn *ifn, struct sctp_inpcb *inp, 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
2896 sctp_count_num_preferred_boundall(struct sctp_ifn *ifn, struct sctp_inpcb *inp, struct sctp_tcb *stcb, int non_asoc_addr_ok, uint8_t dest_is_loop, uint8_t dest_is_priv, sa_family_t fam) argument
2954 sctp_choose_boundall(struct sctp_inpcb *inp, 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
3308 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
3569 sctp_process_cmsgs_for_init(struct sctp_tcb *stcb, struct mbuf *control, int *error) argument
3741 struct sctp_tcb *stcb; local
3915 sctp_get_ect(struct sctp_tcb *stcb) argument
3926 sctp_handle_no_route(struct sctp_tcb *stcb, struct sctp_nets *net, int so_locked) argument
3971 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 mflowtype, uint32_t mflowid, int so_locked SCTP_UNUSED ) argument
4675 sctp_send_initiate(struct sctp_inpcb *inp, struct sctp_tcb *stcb, int so_locked SCTP_UNUSED ) argument
5493 sctp_send_initiate_ack(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *src_net, 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 mflowtype, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument
6178 sctp_prune_prsctp(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_sndrcvinfo *srcv, int dataout) argument
6259 sctp_get_frag_point(struct sctp_tcb *stcb, struct sctp_association *asoc) argument
6352 sctp_msg_append(struct sctp_tcb *stcb, struct sctp_nets *net, struct mbuf *m, struct sctp_sndrcvinfo *srcv, int hold_stcb_lock) argument
6621 sctp_sendall_iterator(struct sctp_inpcb *inp, struct sctp_tcb *stcb, void *ptr, uint32_t val SCTP_UNUSED) argument
6939 sctp_toss_old_cookies(struct sctp_tcb *stcb, struct sctp_association *asoc) argument
6957 sctp_toss_old_asconf(struct sctp_tcb *stcb) argument
6987 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
7079 sctp_clean_up_ctl(struct sctp_tcb *stcb, struct sctp_association *asoc, int so_locked SCTP_UNUSED ) argument
7122 sctp_can_we_split_this(struct sctp_tcb *stcb, uint32_t length, uint32_t space_left, uint32_t frag_point, int eeor_on) argument
7181 sctp_move_to_outqueue(struct sctp_tcb *stcb, struct sctp_stream_out *strq, uint32_t space_left, uint32_t frag_point, int *giveup, int eeor_mode, int *bail, int so_locked SCTP_UNUSED ) argument
7718 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
7808 sctp_move_chunks_from_net(struct sctp_tcb *stcb, struct sctp_nets *net) argument
7836 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
8952 sctp_queue_op_err(struct sctp_tcb *stcb, struct mbuf *op_err) argument
9016 sctp_send_cookie_echo(struct mbuf *m, int offset, int limit, struct sctp_tcb *stcb, struct sctp_nets *net) argument
9104 sctp_send_heartbeat_ack(struct sctp_tcb *stcb, struct mbuf *m, int offset, int chk_length, struct sctp_nets *net) argument
9159 sctp_send_cookie_ack(struct sctp_tcb *stcb) argument
9207 sctp_send_shutdown_ack(struct sctp_tcb *stcb, struct sctp_nets *net) argument
9250 sctp_send_shutdown(struct sctp_tcb *stcb, struct sctp_nets *net) argument
9315 sctp_send_asconf(struct sctp_tcb *stcb, struct sctp_nets *net, int addr_locked) argument
9365 sctp_send_asconf_ack(struct sctp_tcb *stcb) argument
9458 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
9986 sctp_timer_validation(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_association *asoc) argument
10011 sctp_chunk_output(struct sctp_inpcb *inp, struct sctp_tcb *stcb, int from_where, int so_locked SCTP_UNUSED ) argument
10321 send_forward_tsn(struct sctp_tcb *stcb, struct sctp_association *asoc) argument
10535 sctp_send_sack(struct sctp_tcb *stcb, int so_locked SCTP_UNUSED ) argument
10933 sctp_send_abort_tcb(struct sctp_tcb *stcb, struct mbuf *operr, int so_locked SCTP_UNUSED ) argument
11037 sctp_send_shutdown_complete(struct sctp_tcb *stcb, struct sctp_nets *net, int reflect_vtag) argument
11351 sctp_send_hb(struct sctp_tcb *stcb, struct sctp_nets *net, int so_locked SCTP_UNUSED ) argument
11460 sctp_send_ecn_echo(struct sctp_tcb *stcb, struct sctp_nets *net, uint32_t high_tsn) argument
11525 sctp_send_packet_dropped(struct sctp_tcb *stcb, struct sctp_nets *net, struct mbuf *m, int len, int iphlen, int bad_crc) argument
11674 sctp_send_cwr(struct sctp_tcb *stcb, struct sctp_nets *net, uint32_t high_tsn, uint8_t override) argument
11736 sctp_add_stream_reset_out(struct sctp_tcb *stcb, struct sctp_tmit_chunk *chk, uint32_t seq, uint32_t resp_seq, uint32_t last_sent) argument
11907 sctp_send_deferred_reset_response(struct sctp_tcb *stcb, struct sctp_stream_reset_list *ent, int response) argument
12066 sctp_send_stream_reset_out_if_possible(struct sctp_tcb *stcb, int so_locked) argument
12138 sctp_send_str_reset_req(struct sctp_tcb *stcb, uint16_t number_entries, uint16_t *list, 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
12409 sctp_copy_it_in(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_sndrcvinfo *srcv, struct uio *uio, struct sctp_nets *net, ssize_t max_send_len, int user_marks_eor, int *error) argument
12570 struct sctp_tcb *stcb = NULL; local
13794 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 Dsctp_indata.c65 struct sctp_tcb *stcb,
71 sctp_set_rwnd(struct sctp_tcb *stcb, struct sctp_association *asoc) argument
73 asoc->my_rwnd = sctp_calc_rwnd(stcb, asoc);
78 sctp_calc_rwnd(struct sctp_tcb *stcb, struct sctp_association *asoc) argument
88 if (stcb->sctp_socket == NULL) {
96 if (stcb->asoc.sb_cc == 0 &&
100 calc = max(SCTP_SB_LIMIT_RCV(stcb->sctp_socket), SCTP_MINIMAL_RWND);
104 calc = (uint32_t)sctp_sbspace(&stcb->asoc, &stcb->sctp_socket->so_rcv);
119 calc = sctp_sbspace_sub(calc, stcb
136 sctp_build_readq_entry(struct sctp_tcb *stcb, struct sctp_nets *net, uint32_t tsn, uint32_t ppid, uint32_t context, uint16_t sid, uint32_t mid, uint8_t flags, struct mbuf *dm) argument
426 sctp_abort_in_reasm(struct sctp_tcb *stcb, struct sctp_queued_to_read *control, struct sctp_tmit_chunk *chk, int *abort_flag, int opspot) argument
462 sctp_clean_up_control(struct sctp_tcb *stcb, struct sctp_queued_to_read *control) argument
491 sctp_queue_data_to_stream(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_queued_to_read *control, int *abort_flag, int *need_reasm) argument
666 struct sctp_tcb *stcb; local
708 struct sctp_tcb *stcb; local
798 sctp_handle_old_unordered_data(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_in *strm, struct sctp_queued_to_read *control, uint32_t pd_point, int inp_read_lock_held) argument
943 sctp_inject_old_unordered_data(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_queued_to_read *control, struct sctp_tmit_chunk *chk, int *abort_flag) argument
1082 sctp_deliver_reasm_check(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_in *strm, int inp_read_lock_held) argument
1307 sctp_add_chk_to_control(struct sctp_queued_to_read *control, struct sctp_stream_in *strm, struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_tmit_chunk *chk, int hold_rlock) argument
1387 sctp_queue_data_for_reasm(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_queued_to_read *control, struct sctp_tmit_chunk *chk, int created_control, int *abort_flag, uint32_t tsn) argument
1703 sctp_process_a_data_chunk(struct sctp_tcb *stcb, struct sctp_association *asoc, struct mbuf **m, int offset, int chk_length, struct sctp_nets *net, uint32_t *high_tsn, int *abort_flag, int *break_flag, int last_chunk, uint8_t chk_type) argument
2422 sctp_slide_mapping_arrays(struct sctp_tcb *stcb) argument
2589 sctp_sack_check(struct sctp_tcb *stcb, int was_a_gap) argument
2682 sctp_process_data(struct mbuf **mm, int iphlen, int *offset, int length, struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net, uint32_t *high_tsn) argument
2977 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
3217 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
3281 sctp_check_for_revoked(struct sctp_tcb *stcb, struct sctp_association *asoc, uint32_t cumack, uint32_t biggest_tsn_acked) argument
3340 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
3791 sctp_try_advance_peer_ack_point(struct sctp_tcb *stcb, struct sctp_association *asoc) argument
3932 sctp_window_probe_recovery(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_tmit_chunk *tp1) argument
3967 sctp_express_handle_sack(struct sctp_tcb *stcb, uint32_t cumack, uint32_t rwnd, int *abort_now, int ecne_seen) argument
4467 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
5314 sctp_update_acked(struct sctp_tcb *stcb, struct sctp_shutdown_chunk *cp, int *abort_flag) argument
5328 sctp_kick_prsctp_reorder_queue(struct sctp_tcb *stcb, struct sctp_stream_in *strmin) argument
5478 sctp_flush_reassm_for_str_seq(struct sctp_tcb *stcb, struct sctp_association *asoc, uint16_t stream, uint32_t mid, int ordered, uint32_t cumtsn) argument
5579 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 Dsctp_ss_functions.c50 sctp_ss_default_init(struct sctp_tcb *stcb, struct sctp_association *asoc, argument
56 SCTP_TCB_SEND_LOCK(stcb);
66 for (i = 0; i < stcb->asoc.streamoutcnt; i++) {
67 stcb->asoc.ss_functions.sctp_ss_add_to_stream(stcb, &stcb->asoc,
68 &stcb->asoc.strmout[i],
72 SCTP_TCB_SEND_UNLOCK(stcb);
78 sctp_ss_default_clear(struct sctp_tcb *stcb, struct sctp_association *asoc, argument
82 SCTP_TCB_SEND_LOCK(stcb);
100 sctp_ss_default_init_stream(struct sctp_tcb *stcb, struct sctp_stream_out *strq, struct sctp_stream_out *with_strq) argument
116 sctp_ss_default_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
147 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
231 sctp_ss_default_scheduled(struct sctp_tcb *stcb, struct sctp_nets *net SCTP_UNUSED, struct sctp_association *asoc, struct sctp_stream_out *strq, int moved_how_much SCTP_UNUSED) argument
302 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
396 sctp_ss_prio_clear(struct sctp_tcb *stcb, struct sctp_association *asoc, int clear_values, int holds_lock) argument
422 sctp_ss_prio_init_stream(struct sctp_tcb *stcb, struct sctp_stream_out *strq, struct sctp_stream_out *with_strq) argument
443 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
477 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
573 sctp_ss_prio_set_value(struct sctp_tcb *stcb, struct sctp_association *asoc, struct sctp_stream_out *strq, uint16_t value) argument
590 sctp_ss_fb_clear(struct sctp_tcb *stcb, struct sctp_association *asoc, int clear_values, int holds_lock) argument
615 sctp_ss_fb_init_stream(struct sctp_tcb *stcb, struct sctp_stream_out *strq, struct sctp_stream_out *with_strq) argument
636 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
657 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
729 sctp_ss_fb_scheduled(struct sctp_tcb *stcb, struct sctp_nets *net SCTP_UNUSED, struct sctp_association *asoc, struct sctp_stream_out *strq, int moved_how_much SCTP_UNUSED) argument
772 sctp_ss_fcfs_init(struct sctp_tcb *stcb, struct sctp_association *asoc, int holds_lock) argument
812 sctp_ss_fcfs_clear(struct sctp_tcb *stcb, struct sctp_association *asoc, int clear_values, int holds_lock) argument
835 sctp_ss_fcfs_init_stream(struct sctp_tcb *stcb, struct sctp_stream_out *strq, struct sctp_stream_out *with_strq) argument
851 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
879 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 Dsctp_pcb.c836 sctp_does_stcb_own_this_addr(struct sctp_tcb *stcb, struct sockaddr *to) argument
849 loopback_scope = stcb->asoc.scope.loopback_scope;
851 ipv4_local_scope = stcb->asoc.scope.ipv4_local_scope;
852 ipv4_addr_legal = stcb->asoc.scope.ipv4_addr_legal;
855 local_scope = stcb->asoc.scope.local_scope;
856 site_scope = stcb->asoc.scope.site_scope;
857 ipv6_addr_legal = stcb->asoc.scope.ipv6_addr_legal;
861 vrf = sctp_find_vrf(stcb->asoc.vrf_id);
868 if (stcb->sctp_ep->sctp_flags & SCTP_PCB_FLAGS_BOUNDALL) {
875 if (sctp_is_addr_restricted(stcb, sctp_if
1023 struct sctp_tcb *stcb; local
1279 struct sctp_tcb *stcb = NULL; local
1562 struct sctp_tcb *stcb; local
1606 struct sctp_tcb *stcb; local
2001 struct sctp_tcb *stcb; local
2054 struct sctp_tcb *stcb; local
2151 struct sctp_tcb *stcb; local
2247 struct sctp_tcb *stcb; local
2306 struct sctp_tcb *stcb; local
2640 sctp_move_pcb_and_assoc(struct sctp_inpcb *old_inp, struct sctp_inpcb *new_inp, struct sctp_tcb *stcb) argument
3697 sctp_findnet(struct sctp_tcb *stcb, struct sockaddr *addr) argument
3729 sctp_add_remote_addr(struct sctp_tcb *stcb, struct sockaddr *newaddr, struct sctp_nets **netp, uint16_t port, int set_scope, int from) argument
4150 sctp_aloc_a_assoc_id(struct sctp_inpcb *inp, struct sctp_tcb *stcb) argument
4194 struct sctp_tcb *stcb; local
4350 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); local
4362 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); local
4398 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); local
4429 sctp_remove_net(struct sctp_tcb *stcb, struct sctp_nets *net) argument
4495 sctp_del_remote_addr(struct sctp_tcb *stcb, struct sockaddr *remaddr) argument
4652 sctp_clean_up_stream(struct sctp_tcb *stcb, struct sctp_readhead *rh) argument
4701 sctp_free_assoc(struct sctp_inpcb *inp, struct sctp_tcb *stcb, int from_inpcbfree, int from_location) argument
5193 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); local
5199 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); local
5245 sctp_destination_is_reachable(struct sctp_tcb *stcb, struct sockaddr *destaddr) argument
5336 struct sctp_tcb *stcb; local
5396 sctp_select_primary_destination(struct sctp_tcb *stcb) argument
5446 struct sctp_tcb *stcb; local
5498 sctp_add_local_addr_restricted(struct sctp_tcb *stcb, struct sctp_ifa *ifa) argument
5533 sctp_del_local_addr_restricted(struct sctp_tcb *stcb, struct sctp_ifa *ifa) argument
6033 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, uint16_t port) argument
6710 sctp_set_primary_addr(struct sctp_tcb *stcb, struct sockaddr *sa, struct sctp_nets *net) argument
6758 struct sctp_tcb *stcb; local
6819 sctp_drain_mbufs(struct sctp_tcb *stcb) argument
7034 struct sctp_tcb *stcb; local
[all...]
H A Dsctp_auth.c549 sctp_auth_key_acquire(struct sctp_tcb *stcb, uint16_t key_id) argument
554 skey = sctp_find_sharedkey(&stcb->asoc.shared_keys, key_id);
560 "%s: stcb %p key %u refcount acquire to %d\n",
561 __func__, (void *)stcb, key_id, skey->refcount);
566 sctp_auth_key_release(struct sctp_tcb *stcb, uint16_t key_id, int so_locked argument
575 skey = sctp_find_sharedkey(&stcb->asoc.shared_keys, key_id);
580 "%s: stcb %p key %u refcount release to %d\n",
581 __func__, (void *)stcb, key_id, skey->refcount);
586 sctp_ulp_notify(SCTP_NOTIFY_AUTH_FREE_KEY, stcb,
589 "%s: stcb
1188 sctp_clear_cachedkeys(struct sctp_tcb *stcb, uint16_t keyid) argument
1211 struct sctp_tcb *stcb; local
1229 sctp_delete_sharedkey(struct sctp_tcb *stcb, uint16_t keyid) argument
1295 sctp_auth_setactivekey(struct sctp_tcb *stcb, uint16_t keyid) argument
1342 sctp_deact_sharedkey(struct sctp_tcb *stcb, uint16_t keyid) argument
1405 sctp_auth_get_cookie_params(struct sctp_tcb *stcb, struct mbuf *m, uint32_t offset, uint32_t length) argument
1545 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
1634 sctp_handle_auth(struct sctp_tcb *stcb, struct sctp_auth_chunk *auth, struct mbuf *m, uint32_t offset) argument
1754 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 Dsctp_cc_functions.c69 sctp_set_initial_cc_param(struct sctp_tcb *stcb, struct sctp_nets *net) argument
74 assoc = &stcb->asoc;
88 if ((stcb->asoc.sctp_cmt_on_off == SCTP_CMT_RPV1) ||
89 (stcb->asoc.sctp_cmt_on_off == SCTP_CMT_RPV2)) {
99 stcb->asoc.my_vtag, ((stcb->sctp_ep->sctp_lport << 16) | (stcb->rport)), net,
103 sctp_log_cwnd(stcb, net, 0, SCTP_CWND_INITIALIZATION);
108 sctp_cwnd_update_after_fr(struct sctp_tcb *stcb, argument
198 stcb
252 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
387 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
528 cc_bw_increase(struct sctp_tcb *stcb, struct sctp_nets *net, uint64_t nbw, uint64_t vtag) argument
571 cc_bw_limit(struct sctp_tcb *stcb, struct sctp_nets *net, uint64_t nbw) argument
682 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
999 sctp_cwnd_update_exit_pf_common(struct sctp_tcb *stcb, struct sctp_nets *net) argument
1014 sctp_cwnd_update_after_timeout(struct sctp_tcb *stcb, struct sctp_nets *net) argument
1087 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
1151 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
1269 sctp_cwnd_update_after_output(struct sctp_tcb *stcb, struct sctp_nets *net, int burst_limit) argument
1291 sctp_cwnd_update_after_sack(struct sctp_tcb *stcb, struct sctp_association *asoc, int accum_moved, int reneged_all, int will_exit) argument
1300 sctp_cwnd_update_after_ecn_echo(struct sctp_tcb *stcb, struct sctp_nets *net, int in_window, int num_pkt_lost) argument
1313 sctp_cwnd_update_rtcc_after_ecn_echo(struct sctp_tcb *stcb, struct sctp_nets *net, int in_window, int num_pkt_lost) argument
1343 sctp_cwnd_new_rtcc_transmission_begins(struct sctp_tcb *stcb, struct sctp_nets *net) argument
1406 sctp_set_rtcc_initial_cc_param(struct sctp_tcb *stcb, struct sctp_nets *net) argument
1443 sctp_cwnd_rtcc_socket_option(struct sctp_tcb *stcb, int setorget, struct sctp_cc_option *cc_opt) argument
1511 sctp_cwnd_update_rtcc_after_sack(struct sctp_tcb *stcb, struct sctp_association *asoc, int accum_moved, int reneged_all, int will_exit) argument
1614 sctp_hs_cwnd_increase(struct sctp_tcb *stcb, struct sctp_nets *net) argument
1647 sctp_hs_cwnd_decrease(struct sctp_tcb *stcb, struct sctp_nets *net) argument
1688 sctp_hs_cwnd_update_after_fr(struct sctp_tcb *stcb, struct sctp_association *asoc) argument
1754 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
1892 htcp_cwnd_undo(struct sctp_tcb *stcb, struct sctp_nets *net) argument
2048 htcp_cong_avoid(struct sctp_tcb *stcb, struct sctp_nets *net) argument
2116 htcp_min_cwnd(struct sctp_tcb *stcb, struct sctp_nets *net) argument
2133 sctp_htcp_set_initial_cc_param(struct sctp_tcb *stcb, struct sctp_nets *net) argument
2150 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
2218 sctp_htcp_cwnd_update_after_fr(struct sctp_tcb *stcb, struct sctp_association *asoc) argument
2292 sctp_htcp_cwnd_update_after_timeout(struct sctp_tcb *stcb, struct sctp_nets *net) argument
2308 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 Dsctp_indata.h42 sctp_build_readq_entry(struct sctp_tcb *stcb,
67 (_ctl)->stcb = (in_it); \
84 sctp_calc_rwnd(struct sctp_tcb *stcb, struct sctp_association *asoc);
87 sctp_express_handle_sack(struct sctp_tcb *stcb, uint32_t cumack,
92 struct sctp_tcb *stcb,
114 void sctp_slide_mapping_arrays(struct sctp_tcb *stcb);
H A Dsctp_asconf.h66 struct sctp_tcb *stcb,
85 sctp_asconf_send_nat_state_update(struct sctp_tcb *stcb,
H A Dsctp_auth.h150 extern void sctp_auth_key_acquire(struct sctp_tcb *stcb, uint16_t keyid);
152 sctp_auth_key_release(struct sctp_tcb *stcb, uint16_t keyid,
198 extern void sctp_clear_cachedkeys(struct sctp_tcb *stcb, uint16_t keyid);
200 extern int sctp_delete_sharedkey(struct sctp_tcb *stcb, uint16_t keyid);
202 extern int sctp_auth_setactivekey(struct sctp_tcb *stcb, uint16_t keyid);
204 extern int sctp_deact_sharedkey(struct sctp_tcb *stcb, uint16_t keyid);
208 sctp_auth_get_cookie_params(struct sctp_tcb *stcb, struct mbuf *m,
212 struct sctp_auth_chunk *auth, struct sctp_tcb *stcb, uint16_t key_id);
216 struct sctp_tcb *stcb, uint8_t chunk);
218 sctp_handle_auth(struct sctp_tcb *stcb, struc
[all...]
H A Dsctp_sysctl.c188 sctp_sysctl_copy_out_local_addresses(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sysctl_req *req) argument
200 if (stcb) {
202 loopback_scope = stcb->asoc.scope.loopback_scope;
203 ipv4_local_scope = stcb->asoc.scope.ipv4_local_scope;
204 local_scope = stcb->asoc.scope.local_scope;
205 site_scope = stcb->asoc.scope.site_scope;
206 ipv4_addr_legal = stcb->asoc.scope.ipv4_addr_legal;
207 ipv6_addr_legal = stcb->asoc.scope.ipv6_addr_legal;
239 if (stcb) {
244 if (sctp_is_addr_restricted(stcb, sctp_if
354 struct sctp_tcb *stcb; local
[all...]
H A Dsctp_output.h46 struct sctp_tcb *stcb,
66 struct sctp_tcb *stcb,
107 sctp_remove_from_wheel(struct sctp_tcb *stcb,
136 void sctp_move_chunks_from_net(struct sctp_tcb *stcb, struct sctp_nets *net);
139 #define SCTP_DATA_CHUNK_OVERHEAD(stcb) ((stcb)->asoc.idata_supported ? \
H A Dsctp_structs.h140 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
660 void *stcb; member in struct:sctp_tsn_log
682 * pad that bulks up both the inp and stcb. The non
707 void (*sctp_set_initial_cc_param) (struct sctp_tcb *stcb, struct sctp_nets *net);
708 void (*sctp_cwnd_update_after_sack) (struct sctp_tcb *stcb,
711 void (*sctp_cwnd_update_exit_pf) (struct sctp_tcb *stcb, struct sctp_nets *net);
712 void (*sctp_cwnd_update_after_fr) (struct sctp_tcb *stcb,
714 void (*sctp_cwnd_update_after_timeout) (struct sctp_tcb *stcb,
716 void (*sctp_cwnd_update_after_ecn_echo) (struct sctp_tcb *stcb,
[all...]
H A Dsctp_timer.h73 sctp_strreset_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb,
H A Dsctp_os_bsd.h178 #define SCTP_LTRACE_ERR_RET_PKT(m, inp, stcb, net, file, err) \
180 SCTP_PRINTF("mbuf:%p inp:%p stcb:%p net:%p file:%x line:%d error:%d\n", \
181 m, inp, stcb, net, file, __LINE__, err);
182 #define SCTP_LTRACE_ERR_RET(inp, stcb, net, file, err) \
184 SCTP_PRINTF("inp:%p stcb:%p net:%p file:%x line:%d error:%d\n", \
185 inp, stcb, net, file, __LINE__, err);
187 #define SCTP_LTRACE_ERR_RET_PKT(m, inp, stcb, net, file, err)
188 #define SCTP_LTRACE_ERR_RET(inp, stcb, net, file, err)
415 #define SCTP_IP_OUTPUT(result, o_pak, ro, stcb, vrf_id) \
418 struct sctp_tcb *local_stcb = stcb; \
[all...]
H A Dsctp_uio.h795 void *stcb; /* FIXME: LP64 issue */ member in struct:sctp_str_log
804 void *stcb; /* FIXME: LP64 issue */ member in struct:sctp_sb_log
863 void *stcb; /* FIXME: LP64 issue */ member in struct:sctp_nagle_log
871 void *stcb; /* FIXME: LP64 issue */ member in struct:sctp_sbwake_log
891 void *stcb; /* FIXME: LP64 issue */ member in struct:sctp_log_closing
/freebsd-11-stable/sys/netinet6/
H A Dsctp6_usrreq.c174 struct sctp_tcb *stcb,
197 stcb, 0, (void *)net, SCTP_SO_NOT_LOCKED);
200 SCTP_TCB_UNLOCK(stcb);
205 sctp_abort_notification(stcb, 1, 0, NULL, SCTP_SO_NOT_LOCKED);
208 atomic_add_int(&stcb->asoc.refcnt, 1);
209 SCTP_TCB_UNLOCK(stcb);
211 SCTP_TCB_LOCK(stcb);
212 atomic_subtract_int(&stcb->asoc.refcnt, 1);
214 (void)sctp_free_assoc(inp, stcb, SCTP_NORMAL_PROC,
220 SCTP_TCB_UNLOCK(stcb);
173 sctp6_notify(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *net, uint8_t icmp6_type, uint8_t icmp6_code, uint32_t next_mtu) argument
268 struct sctp_tcb *stcb; local
416 struct sctp_tcb *stcb; local
800 struct sctp_tcb *stcb; local
970 struct sctp_tcb *stcb; local
1050 struct sctp_tcb *stcb; local
[all...]

Completed in 390 milliseconds

12