Lines Matching refs:send_size
7113 asoc->peers_rwnd, data_list[i]->send_size, SCTP_BASE_SYSCTL(sctp_peer_chunk_oh)); in sctp_clean_up_datalist()
7116 (uint32_t)(data_list[i]->send_size + SCTP_BASE_SYSCTL(sctp_peer_chunk_oh))); in sctp_clean_up_datalist()
7537 chk->book_size = chk->send_size = (uint16_t)(to_move + SCTP_DATA_CHUNK_OVERHEAD(stcb)); in sctp_move_to_outqueue()
7614 asoc->out_tsnlog[asoc->tsn_out_at].sz = chk->send_size; in sctp_move_to_outqueue()
7628 dchkh->ch.chunk_length = htons(chk->send_size); in sctp_move_to_outqueue()
7641 ndchkh->ch.chunk_length = htons(chk->send_size); in sctp_move_to_outqueue()
7644 if (chk->send_size < SCTP_SIZE32(chk->book_size)) { in sctp_move_to_outqueue()
7649 pads = SCTP_SIZE32(chk->book_size) - chk->send_size; in sctp_move_to_outqueue()
7655 chk->send_size += pads; in sctp_move_to_outqueue()
8127 if ((chk->send_size < (int)(mtu - omtu)) || in sctp_med_chunk_output()
8156 chk->send_size, chk->copy_by_ref); in sctp_med_chunk_output()
8164 if (mtu > (chk->send_size + omtu)) in sctp_med_chunk_output()
8165 mtu -= (chk->send_size + omtu); in sctp_med_chunk_output()
8168 to_out += (chk->send_size + omtu); in sctp_med_chunk_output()
8354 if ((chk->send_size <= (int)(mtu - omtu)) || in sctp_med_chunk_output()
8383 chk->send_size, chk->copy_by_ref); in sctp_med_chunk_output()
8391 if (mtu > (chk->send_size + omtu)) in sctp_med_chunk_output()
8392 mtu -= (chk->send_size + omtu); in sctp_med_chunk_output()
8395 to_out += (chk->send_size + omtu); in sctp_med_chunk_output()
8669 if ((chk->send_size > omtu) && ((chk->flags & CHUNK_FLAGS_FRAGMENT_OK) == 0)) { in sctp_med_chunk_output()
8683 chk->send_size, mtu); in sctp_med_chunk_output()
8693 if (((chk->send_size <= mtu) && (chk->send_size <= r_mtu)) || in sctp_med_chunk_output()
8694 ((chk->flags & CHUNK_FLAGS_FRAGMENT_OK) && (chk->send_size <= asoc->peers_rwnd))) { in sctp_med_chunk_output()
8729 chk->send_size, chk->copy_by_ref); in sctp_med_chunk_output()
8745 if (mtu > chk->send_size) in sctp_med_chunk_output()
8746 mtu -= chk->send_size; in sctp_med_chunk_output()
8750 if (r_mtu > chk->send_size) in sctp_med_chunk_output()
8751 r_mtu -= chk->send_size; in sctp_med_chunk_output()
8755 to_out += chk->send_size; in sctp_med_chunk_output()
9001 chk->send_size = (uint16_t)chunk_length; in sctp_queue_op_err()
9010 hdr->chunk_length = htons(chk->send_size); in sctp_queue_op_err()
9091 chk->send_size = SCTP_SIZE32(plen); in sctp_send_cookie_echo()
9147 chk->send_size = chk_length; in sctp_send_heartbeat_ack()
9184 chk->send_size = sizeof(struct sctp_chunkhdr); in sctp_send_cookie_ack()
9198 hdr->chunk_length = htons(chk->send_size); in sctp_send_cookie_ack()
9199 SCTP_BUF_LEN(cookie_ack) = chk->send_size; in sctp_send_cookie_ack()
9229 chk->send_size = sizeof(struct sctp_chunkhdr); in sctp_send_shutdown_ack()
9241 ack_cp->ch.chunk_length = htons(chk->send_size); in sctp_send_shutdown_ack()
9242 SCTP_BUF_LEN(m_shutdown_ack) = chk->send_size; in sctp_send_shutdown_ack()
9283 chk->send_size = sizeof(struct sctp_shutdown_chunk); in sctp_send_shutdown()
9295 shutdown_cp->ch.chunk_length = htons(chk->send_size); in sctp_send_shutdown()
9297 SCTP_BUF_LEN(m_shutdown) = chk->send_size; in sctp_send_shutdown()
9350 chk->send_size = len; in sctp_send_asconf()
9444 chk->send_size = ack->len; in sctp_send_asconf_ack()
9543 m = sctp_copy_mbufchain(chk->data, m, &endofchain, 0, chk->send_size, chk->copy_by_ref); in sctp_chunk_retransmission()
9725 if ((chk->send_size <= (mtu - dmtu)) || in sctp_chunk_retransmission()
9747 m = sctp_copy_mbufchain(chk->data, m, &endofchain, 0, chk->send_size, chk->copy_by_ref); in sctp_chunk_retransmission()
9757 if (mtu > (chk->send_size + dmtu)) in sctp_chunk_retransmission()
9758 mtu -= (chk->send_size + dmtu); in sctp_chunk_retransmission()
9784 if (fwd->send_size <= (mtu - dmtu)) { in sctp_chunk_retransmission()
9807 m = sctp_copy_mbufchain(fwd->data, m, &endofchain, 0, fwd->send_size, fwd->copy_by_ref); in sctp_chunk_retransmission()
9817 if (mtu > (fwd->send_size + dmtu)) in sctp_chunk_retransmission()
9818 mtu -= (fwd->send_size + dmtu); in sctp_chunk_retransmission()
9934 asoc->peers_rwnd, data_list[i]->send_size, SCTP_BASE_SYSCTL(sctp_peer_chunk_oh)); in sctp_chunk_retransmission()
9937 (uint32_t)(data_list[i]->send_size + in sctp_chunk_retransmission()
10474 chk->send_size = space_needed; in send_forward_tsn()
10477 fwdtsn->ch.chunk_length = htons(chk->send_size); in send_forward_tsn()
10485 SCTP_BUF_LEN(chk->data) = chk->send_size; in send_forward_tsn()
10626 a_chk->send_size = 0; /* fill in later */ in sctp_send_sack()
10900 a_chk->send_size = (uint16_t)(sizeof(struct sctp_sack_chunk) + in sctp_send_sack()
10903 SCTP_BUF_LEN(a_chk->data) = a_chk->send_size; in sctp_send_sack()
10910 sack->ch.chunk_length = htons(a_chk->send_size); in sctp_send_sack()
10912 a_chk->send_size = (uint16_t)(sizeof(struct sctp_nr_sack_chunk) + in sctp_send_sack()
10915 SCTP_BUF_LEN(a_chk->data) = a_chk->send_size; in sctp_send_sack()
10924 nr_sack->ch.chunk_length = htons(a_chk->send_size); in sctp_send_sack()
11405 chk->send_size = sizeof(struct sctp_heartbeat_chunk); in sctp_send_hb()
11407 chk->data = sctp_get_mbuf_for_msg(chk->send_size, 0, M_NOWAIT, 1, MT_HEADER); in sctp_send_hb()
11413 SCTP_BUF_LEN(chk->data) = chk->send_size; in sctp_send_hb()
11424 hb->ch.chunk_length = htons(chk->send_size); in sctp_send_hb()
11516 chk->send_size = sizeof(struct sctp_ecne_chunk); in sctp_send_ecn_echo()
11517 chk->data = sctp_get_mbuf_for_msg(chk->send_size, 0, M_NOWAIT, 1, MT_HEADER); in sctp_send_ecn_echo()
11523 SCTP_BUF_LEN(chk->data) = chk->send_size; in sctp_send_ecn_echo()
11578 chk->send_size = len; in sctp_send_packet_dropped()
11632 chk->book_size = SCTP_SIZE32((chk->send_size + sizeof(struct sctp_pktdrop_chunk) + in sctp_send_packet_dropped()
11642 chk->send_size = (uint16_t)(len - sizeof(struct sctp_pktdrop_chunk)); in sctp_send_packet_dropped()
11643 len = chk->send_size; in sctp_send_packet_dropped()
11652 chk->send_size += sizeof(struct sctp_pktdrop_chunk); in sctp_send_packet_dropped()
11653 SCTP_BUF_LEN(chk->data) = chk->send_size; in sctp_send_packet_dropped()
11664 drp->ch.chunk_length = htons(chk->send_size); in sctp_send_packet_dropped()
11730 chk->send_size = sizeof(struct sctp_cwr_chunk); in sctp_send_cwr()
11731 chk->data = sctp_get_mbuf_for_msg(chk->send_size, 0, M_NOWAIT, 1, MT_HEADER); in sctp_send_cwr()
11737 SCTP_BUF_LEN(chk->data) = chk->send_size; in sctp_send_cwr()
11819 chk->send_size = SCTP_SIZE32(chk->book_size); in sctp_add_stream_reset_out()
11820 SCTP_BUF_LEN(chk->data) = chk->send_size; in sctp_add_stream_reset_out()
11860 chk->send_size = SCTP_SIZE32(chk->book_size); in sctp_add_stream_reset_in()
11861 SCTP_BUF_LEN(chk->data) = chk->send_size; in sctp_add_stream_reset_in()
11886 chk->send_size = len + old_len; in sctp_add_stream_reset_tsn()
11887 chk->book_size = SCTP_SIZE32(chk->send_size); in sctp_add_stream_reset_tsn()
11889 SCTP_BUF_LEN(chk->data) = SCTP_SIZE32(chk->send_size); in sctp_add_stream_reset_tsn()
11917 chk->send_size = SCTP_SIZE32(chk->book_size); in sctp_add_stream_reset_result()
11918 SCTP_BUF_LEN(chk->data) = chk->send_size; in sctp_add_stream_reset_result()
11953 chk->send_size = SCTP_SIZE32(chk->book_size); in sctp_send_deferred_reset_response()
11975 SCTP_BUF_LEN(chk->data) = chk->send_size; in sctp_send_deferred_reset_response()
12010 chk->send_size = SCTP_SIZE32(chk->book_size); in sctp_add_stream_reset_result_tsn()
12012 SCTP_BUF_LEN(chk->data) = chk->send_size; in sctp_add_stream_reset_result_tsn()
12042 chk->send_size = len + old_len; in sctp_add_an_out_stream()
12043 chk->book_size = SCTP_SIZE32(chk->send_size); in sctp_add_an_out_stream()
12045 SCTP_BUF_LEN(chk->data) = SCTP_SIZE32(chk->send_size); in sctp_add_an_out_stream()
12074 chk->send_size = len + old_len; in sctp_add_an_in_stream()
12075 chk->book_size = SCTP_SIZE32(chk->send_size); in sctp_add_an_in_stream()
12077 SCTP_BUF_LEN(chk->data) = SCTP_SIZE32(chk->send_size); in sctp_add_an_in_stream()
12105 chk->send_size = SCTP_SIZE32(chk->book_size); in sctp_send_stream_reset_out_if_possible()
12128 SCTP_BUF_LEN(chk->data) = chk->send_size; in sctp_send_stream_reset_out_if_possible()
12210 chk->send_size = SCTP_SIZE32(chk->book_size); in sctp_send_str_reset_req()
12233 SCTP_BUF_LEN(chk->data) = chk->send_size; in sctp_send_str_reset_req()