Lines Matching defs:seg_len
2496 uint32_t seg_len;
2565 seg_len = end - begin;
2566 if (seg_len > mss)
2567 seg_len = mss;
2575 xmit_mp = tcp_xmit_mp(tcp, snxt_mp, seg_len, &off,
2576 &tmp_mp, begin, B_TRUE, &seg_len, B_TRUE);
2581 usable_swnd -= seg_len;
2582 tcp->tcp_pipe += seg_len;
2583 tcp->tcp_sack_snxt = begin + seg_len;
2595 UPDATE_MIB(tcp_mib.tcpRetransBytes, seg_len);
2619 int seg_len;
2662 seg_len = (int)(mp->b_wptr - rptr) -
2743 seg_len, (tcph_t *)tcph, sock_id);
2913 if (seg_len == 0) {
2971 rgap = tcp->tcp_rwnd - (gap + seg_len);
2980 (seg_len != 0)) {
2988 (seg_len > -gap ? -gap : seg_len));
2989 /* Remove the old stuff from seg_len. */
2990 seg_len += gap;
2996 if (seg_len < 0 || (seg_len == 0 && !(flags & TH_FIN))) {
3011 * Adjust seg_len to the original value for tracing.
3013 seg_len -= gap;
3017 "seg_len %d, rnxt %u, snxt %u, %s",
3019 seg_len, tcp->tcp_rnxt, tcp->tcp_snxt,
3049 * We clear seg_len and flag fields related to
3053 seg_len = 0;
3089 * seg_len does not include the FIN, so if more than
3097 /* Fix seg_len and make sure there is something left. */
3098 seg_len += rgap;
3099 if (seg_len <= 0) {
3115 * process the ACK part. But we need to set seg_len
3121 seg_len = 0;
3131 rgap = seg_len;
3190 tcp->tcp_ofo_fin_seq = seg_seq + seg_len;
3194 if (seg_len > 0) {
3199 seg_seq, seg_seq + seg_len,
3213 seg_len = mp->b_cont ? msgdsize(mp) :
3222 seg_seq + seg_len == tcp->tcp_ofo_fin_seq) {
3235 * seg_len == 0 to determine if it is a pure
3238 seg_len = 0;
3242 } else if (seg_len > 0) {
3244 UPDATE_MIB(tcp_mib.tcpInDataInorderBytes, seg_len);
3251 seg_seq + seg_len == tcp->tcp_ofo_fin_seq) {
3467 if (!ofo_seg && seg_len == 0 && new_swnd == tcp->tcp_swnd) {
4061 if (seg_len) {
4075 if (seg_len == 0) {
4096 tcp->tcp_rnxt += seg_len;
4110 tcp_rcv_enqueue(tcp, mp, seg_len);
4113 tcp_rcv_enqueue(tcp, mp, seg_len);
5203 uint32_t seg_seq, uint32_t seg_ack, int seg_len, tcph_t *tcph,
5233 rgap = tcp->tcp_rwnd - (gap + seg_len);
5237 (seg_len > -gap ? -gap : seg_len));
5238 seg_len += gap;
5239 if (seg_len < 0 || (seg_len == 0 && !(flags & TH_FIN))) {
5244 if ((flags & TH_FIN) && seg_len == -1) {
5261 seg_len = 0;
5321 /* Fix seg_len and make sure there is something left. */
5322 seg_len += rgap;
5323 if (seg_len <= 0) {
5329 seg_len = 0;
5345 if (seg_seq != tcp->tcp_rnxt && seg_len > 0) {
5348 seg_len = 0;
5349 } else if (seg_len > 0) {
5351 UPDATE_MIB(tcp_mib.tcpInDataInorderBytes, seg_len);
5372 if (bytes_acked == 0 && seg_len == 0 &&
5727 mblk_t **end_mp, uint32_t seq, boolean_t sendall, uint32_t *seg_len,
5804 if (seg_len != NULL) {
5805 *seg_len = data_length;
6075 uint32_t seg_len;
6088 seg_len = msgdsize(mp) - (TCP_HDR_LENGTH(tcph) + ip_hdr_len);
6096 seg_len++;
6098 mp, 0, seg_seq + seg_len,
6842 tcp_rcv_enqueue(tcp_t *tcp, mblk_t *mp, uint_t seg_len)
6844 assert(seg_len == msgdsize(mp));
6853 tcp->tcp_rcv_cnt += seg_len;
6854 tcp->tcp_rwnd -= seg_len;