Lines Matching defs:tlen
508 #define DELAY_ACK(tp, tlen) \
511 (tlen <= tp->t_maxseg) && \
621 int tlen = 0, off;
654 tlen = sizeof(*ip6) + ntohs(ip6->ip6_plen) - off0;
661 th->th_sum = in6_cksum_pseudo(ip6, tlen,
665 th->th_sum = in6_cksum(m, IPPROTO_TCP, off0, tlen);
710 tlen = ntohs(ip->ip_len) - off0;
721 htonl(m->m_pkthdr.csum_data + tlen +
730 len = off0 + tlen;
733 ipov->ih_len = htons(tlen);
763 if (off < sizeof (struct tcphdr) || off > tlen) {
767 tlen -= off; /* tlen is used instead of ti->ti_len */
1003 if (tcp_twcheck(inp, &to, th, m, tlen))
1159 tlen, iptos);
1395 tp->t_fb->tfb_tcp_do_segment(tp, m, th, drop_hdrlen, tlen, iptos);
1418 tcp_dropwithreset(m, th, tp, tlen, rstreason);
1476 struct tcpcb *tp, int tlen)
1494 tp->rfbuf_cnt += tlen; /* add up */
1522 int drop_hdrlen, int tlen, uint8_t iptos)
1556 tlen, NULL, true);
1605 if (tcp_ecn_input_segment(tp, thflags, tlen,
1786 if (tlen == 0) {
1903 tlen <= sbspace(&so->so_rcv)) {
1915 tp->rcv_nxt += tlen;
1916 if (tlen &&
1936 TCPSTAT_ADD(tcps_rcvbyte, tlen);
1939 newsize = tcp_autorcvbuf(m, th, so, tp, tlen);
1959 if (DELAY_ACK(tp, tlen)) {
2080 if (DELAY_ACK(tp, tlen) && tlen != 0 && !tfo_partial_ack)
2128 if (tlen > tp->rcv_wnd) {
2129 todrop = tlen - tp->rcv_wnd;
2131 tlen = tp->rcv_wnd;
2258 TCPSTAT_ADD(tcps_rcvdupbyte, tlen);
2260 if (tlen)
2293 if (todrop > tlen
2294 || (todrop == tlen && (thflags & TH_FIN) == 0)) {
2307 todrop = tlen;
2328 tlen -= todrop;
2342 if ((tp->t_flags & TF_CLOSED) && tlen > 0 &&
2348 s, __func__, tcpstates[tp->t_state], tlen);
2364 todrop = (th->th_seq + tlen) - (tp->rcv_nxt + tp->rcv_wnd);
2367 if (todrop >= tlen) {
2368 TCPSTAT_ADD(tcps_rcvbyteafterwin, tlen);
2384 tlen -= todrop;
2408 SEQ_LEQ(tp->last_ack_sent, th->th_seq + tlen +
2541 if (tlen == 0 && (thflags & TH_FIN) == 0) {
2587 if (tlen == 0 &&
3146 if (tlen == 0 &&
3205 if (th->th_urp <= (uint32_t)tlen &&
3232 if ((tlen || (thflags & TH_FIN) || (tfo_syn && tlen > 0)) &&
3236 int save_tlen = tlen;
3254 if (DELAY_ACK(tp, tlen) || tfo_syn)
3258 tp->rcv_nxt += tlen;
3259 if (tlen &&
3270 TCPSTAT_ADD(tcps_rcvbyte, tlen);
3286 thflags = tcp_reass(tp, th, &temp, &tlen, m);
3292 if ((tlen == 0) && (SEQ_LT(save_start, save_rnxt))) {
3299 } else if ((tlen > 0) && SEQ_GT(tp->rcv_nxt, save_rnxt)) {
3313 } else if (tlen >= save_tlen) {
3317 } else if (tlen > 0) {
3319 save_start + tlen);
3337 if (tlen > 0) {
3344 tcpstates[tp->t_state], tlen);
3351 tcpstates[tp->t_state], tlen);
3470 tcp_dropwithreset(m, th, tp, tlen, rstreason);
3473 tcp_dropwithreset(m, th, NULL, tlen, rstreason);
3494 int tlen, int rstreason)
3543 tlen++;
3545 tlen++;
3546 tcp_respond(tp, mtod(m, void *), th, m, th->th_seq+tlen,