Lines Matching defs:seg_len
441 uint32_t seg_ack, int seg_len, tcpha_t *tcpha, ip_recv_attr_t *ira)
467 rgap = tcp->tcp_rwnd - (gap + seg_len);
471 (seg_len > -gap ? -gap : seg_len));
472 seg_len += gap;
473 if (seg_len < 0 || (seg_len == 0 && !(flags & TH_FIN))) {
477 if ((flags & TH_FIN) && seg_len == -1) {
502 seg_len = 0;
596 /* Fix seg_len and make sure there is something left. */
597 seg_len += rgap;
598 if (seg_len <= 0) {
603 seg_len = 0;
619 if (seg_seq != tcp->tcp_rnxt && seg_len > 0) {
622 seg_len = 0;
623 } else if (seg_len > 0) {
626 TCPS_UPDATE_MIB(tcps, tcpInDataInorderBytes, seg_len);
645 if (bytes_acked == 0 && seg_len == 0 &&