/src/sys/netinet/ |
sctp_timer.c | 134 sctp_threshold_management(struct sctp_inpcb *inp, struct sctp_tcb *stcb, 151 if (net == stcb->asoc.primary_destination) { 155 stcb, 167 if (stcb == NULL) 172 stcb->asoc.overall_error_count++; 175 stcb->asoc.overall_error_count++; 180 &stcb->asoc, 181 stcb->asoc.overall_error_count, 189 if (stcb->asoc.overall_error_count > threshold) { 205 sctp_abort_an_association(inp, stcb, SCTP_FAILED_THRESHOLD, oper) [all...] |
sctp_input.c | 99 struct sctp_tcb *stcb, struct sctp_nets *net) 105 printf("sctp_handle_init: handling INIT tcb:%p\n", stcb); 113 sctp_abort_association(inp, stcb, m, iphlen, sh, op_err); 119 sctp_abort_association(inp, stcb, m, iphlen, sh, op_err); 126 sctp_abort_association(inp, stcb, m, iphlen, sh, op_err); 132 sctp_abort_association(inp, stcb, m, iphlen, sh, op_err); 138 sctp_abort_association(inp, stcb, m, iphlen, sh, op_err); 144 sctp_abort_association(inp, stcb, m, iphlen, sh, op_err); 155 sctp_send_initiate_ack(inp, stcb, m, iphlen, offset, sh, cp); 164 sctp_process_init(struct sctp_init_chunk *cp, struct sctp_tcb *stcb, 1413 struct sctp_tcb *stcb; local in function:sctp_process_cookie_new 4063 struct sctp_tcb *stcb = NULL; local in function:sctp_input [all...] |
sctp_usrreq.c | 237 struct sctp_tcb *stcb, 248 if ((inp == NULL) || (stcb == NULL) || (net == NULL) || 250 if (stcb != NULL) { 251 SCTP_TCB_UNLOCK(stcb); 256 if (ntohl(sh->v_tag) != (stcb->asoc.peer_vtag)) { 257 SCTP_TCB_UNLOCK(stcb); 264 SCTP_TCB_UNLOCK(stcb); 269 SCTP_TCB_UNLOCK(stcb); 284 sctp_timer_stop(SCTP_TIMER_TYPE_PATHMTURAISE, inp, stcb, NULL); 291 if (stcb->asoc.smallest_mtu > nxtsz) 434 struct sctp_tcb *stcb; local in function:sctp_ctlinput 709 struct sctp_tcb *stcb; local in function:sctp_disconnect 829 struct sctp_tcb *stcb; local in function:sctp_shutdown 1146 struct sctp_tcb *stcb = NULL; local in function:sctp_do_connect_x 1332 struct sctp_tcb *stcb = NULL; local in function:sctp_optsget 2381 struct sctp_tcb *stcb = NULL; local in function:sctp_optsset 3303 struct sctp_tcb *stcb; local in function:sctp_connect 3432 struct sctp_tcb *stcb=NULL; local in function:sctp_rcvd 3625 struct sctp_tcb *stcb; local in function:sctp_accept 3719 struct sctp_tcb *stcb; local in function:sctp_sockaddr 3781 struct sctp_tcb *stcb; local in function:sctp_peeraddr [all...] |
sctputil.c | 431 void sctp_auditing(int from, struct sctp_inpcb *inp, struct sctp_tcb *stcb, 453 if (stcb == NULL) { 464 (0x000000ff & stcb->asoc.sent_queue_retran_cnt); 472 TAILQ_FOREACH(chk, &stcb->asoc.sent_queue, sctp_next) { 480 if (resend_cnt != stcb->asoc.sent_queue_retran_cnt) { 488 resend_cnt, stcb->asoc.sent_queue_retran_cnt); 490 stcb->asoc.sent_queue_retran_cnt = resend_cnt; 493 (0x000000ff & stcb->asoc.sent_queue_retran_cnt); 499 if (tot_out != stcb->asoc.total_flight) { 508 (int)stcb->asoc.total_flight) 828 struct sctp_tcb *stcb; local in function:sctp_timeout_handler [all...] |
sctp_peeloff.c | 90 struct sctp_tcb *stcb; local in function:sctp_can_peel_off 95 stcb = sctp_findassociation_ep_asocid(inp, assoc_id); 96 if (stcb == NULL) { 107 struct sctp_tcb *stcb; local in function:sctp_do_peeloff 112 stcb = sctp_findassociation_ep_asocid(inp, assoc_id); 113 if (stcb == NULL) 125 * the stcb in the right place. 127 sctp_move_pcb_and_assoc(inp, n_inp, stcb); 133 sctp_grub_through_socket_buffer(inp, head, so, stcb); 142 struct sctp_tcb *stcb; local in function:sctp_get_peeloff [all...] |
sctp_var.h | 123 #define sctp_total_flight_decrease(stcb, tp1) do { \ 124 if (stcb->asoc.total_flight >= tp1->book_size) { \ 125 stcb->asoc.total_flight -= tp1->book_size; \ 126 if (stcb->asoc.total_flight_count > 0) \ 127 stcb->asoc.total_flight_count--; \ 129 stcb->asoc.total_flight = 0; \ 130 stcb->asoc.total_flight_count = 0; \ 134 #define sctp_total_flight_increase(stcb, tp1) do { \ 135 (stcb)->asoc.total_flight_count++; \ 136 (stcb)->asoc.total_flight += (tp1)->book_size; [all...] |
sctp_indata.c | 107 sctp_set_rwnd(struct sctp_tcb *stcb, struct sctp_association *asoc) 114 (u_long)stcb->sctp_socket->so_rcv.sb_cc, 115 (u_long)stcb->sctp_socket->so_rcv.sb_hiwat, 116 (u_long)stcb->sctp_socket->so_rcv.sb_lowat, 117 (u_long)stcb->sctp_socket->so_rcv.sb_mbcnt, 118 (u_long)stcb->sctp_socket->so_rcv.sb_mbmax); 120 sctp_sbspace(&stcb->sctp_socket->so_rcv), 126 if (stcb->sctp_socket->so_rcv.sb_cc == 0 && 131 asoc->my_rwnd = uimax(stcb->sctp_socket->so_rcv.sb_hiwat, 136 calc = (u_int32_t)sctp_sbspace(&stcb->sctp_socket->so_rcv) [all...] |
sctp_pcb.c | 129 struct sctp_tcb *stcb; local in function:SCTP_INP_RLOCK 130 LIST_FOREACH(stcb, &inp->sctp_asoc_list, sctp_tcblist) { 131 if (mtx_owned(&(stcb)->tcb_mtx)) 149 struct sctp_tcb *stcb; local in function:SCTP_INP_INFO_RLOCK 153 LIST_FOREACH(stcb, &inp->sctp_asoc_list, sctp_tcblist) { 154 if (mtx_owned(&(stcb)->tcb_mtx)) 173 struct sctp_tcb *stcb; local in function:sctp_validate_no_locks 181 LIST_FOREACH(stcb, &inp->sctp_asoc_list, sctp_tcblist) { 182 if (mtx_owned(&(stcb)->tcb_mtx)) 246 struct sctp_tcb *stcb; local in function:sctp_tcb_special_locate 378 struct sctp_tcb *stcb; local in function:sctp_findassociation_ep_asconf 486 struct sctp_tcb *stcb; local in function:sctp_findassociation_ep_addr 621 struct sctp_tcb *stcb; local in function:sctp_findassociation_ep_asocid 1064 struct sctp_tcb *stcb; local in function:sctp_findassoc_by_vtag 2615 struct sctp_tcb *stcb; local in function:sctp_aloc_assoc 3518 struct sctp_tcb *stcb; local in function:sctp_del_local_addr_ep 4349 struct sctp_tcb *stcb; local in function:sctp_is_vtag_good 4612 struct sctp_tcb *stcb; local in function:sctp_drain 4658 struct sctp_tcb *stcb = NULL; local in function:sctp_remove_from_socket_q [all...] |
sctp_asconf.c | 197 struct sctp_tcb *stcb, int response_required) 229 sin->sin_port = stcb->rport; 248 sin6->sin6_port = stcb->rport; 279 if (sctp_add_remote_addr(stcb, sa, 0, 6) != 0) { 290 sctp_ulp_notify(SCTP_NOTIFY_ASCONF_ADD_IP, stcb, 0, sa); 302 struct sctp_tcb *stcb, int response_required) 333 sin->sin_port = stcb->rport; 345 sin6->sin6_port = stcb->rport; 364 sin->sin_port = stcb->rport; 383 sin6->sin6_port = stcb->rport 1794 struct sctp_tcb *stcb; local in function:sctp_addr_mgmt_ep 1880 struct sctp_tcb *stcb; local in function:sctp_addr_mgmt_restrict_ep 1996 struct sctp_tcb *stcb; local in function:sctp_delete_ip_address 2088 struct sctp_tcb *stcb; local in function:sctp_set_primary_ip_address [all...] |
sctp_output.c | 450 sctp_is_addr_restricted(struct sctp_tcb *stcb, struct sockaddr *addr) 456 if (stcb == NULL) { 461 LIST_FOREACH(laddr, &stcb->asoc.sctp_local_addr_list, sctp_nxt_addr) { 469 LIST_FOREACH(laddr, &stcb->asoc.sctp_local_addr_list, sctp_nxt_addr) { 608 struct sctp_tcb *stcb, 641 printf("Have a STCB - asconf allowed, not bound all have a netgative list\n"); 655 (sctp_is_addr_restricted(stcb, (struct sockaddr *)sin))) { 669 (sctp_is_addr_restricted(stcb, (struct sockaddr *)sin))) { 682 starting_point = stcb->asoc.last_used_address; 684 if (stcb->asoc.last_used_address == NULL) 7089 struct sctp_tcb *stcb; local in function:sctp_output 9806 struct sctp_tcb *stcb=NULL; local in function:sctp_sosend [all...] |
sctp_timer.h | 60 int sctp_strreset_timer(struct sctp_inpcb *inp, struct sctp_tcb *stcb,
|
sctputil.h | 132 #define sctp_get_associd(stcb) ((sctp_assoc_t)stcb->asoc.my_vtag)
|
sctp_structs.h | 95 struct sctp_tcb *stcb; /* assoc */ member in struct:sctp_iterator
|
/src/sys/netinet6/ |
sctp6_usrreq.c | 125 struct sctp_tcb *stcb = NULL; local in function:sctp6_input 183 stcb = sctp_findassociation_addr(m, iphlen, offset - sizeof(*ch), 185 /* in6p's ref-count increased && stcb locked */ 186 if ((in6p) && (stcb)) { 187 sctp_send_packet_dropped(stcb, net, m, iphlen, 1); 188 sctp_chunk_output((struct sctp_inpcb *)in6p, stcb, 2); 189 } else if ((in6p != NULL) && (stcb == NULL)) { 210 stcb = sctp_findassociation_addr(m, iphlen, offset - sizeof(*ch), 229 } else if (stcb == NULL) { 279 in6p, stcb, net, ecn_bits) 436 struct sctp_tcb *stcb; local in function:sctp6_ctlinput 508 struct sctp_tcb *stcb; local in function:sctp6_getcred 716 struct sctp_tcb *stcb; local in function:sctp6_disconnect 920 struct sctp_tcb *stcb; local in function:sctp6_connect 1069 struct sctp_tcb *stcb; local in function:sctp6_getaddr 1130 struct sctp_tcb *stcb; local in function:sctp6_peeraddr [all...] |