Lines Matching refs:tlen

106     struct tcpcb *tp, int drop_hdrlen, int tlen, uint8_t iptos,
317 #define DELAY_ACK(tp, tlen) \ argument
320 (tlen <= tp->t_maxopd) && \
402 int tlen, int rstreason) in tcp_dropwithreset() argument
419 tlen++; in tcp_dropwithreset()
420 tcp_respond(tp, instance, ip6, th, th->th_seq + tlen, (tcp_seq) 0, TH_RST | TH_ACK); in tcp_dropwithreset()
461 int tlen = 0, off; in tcp_input() local
480 tlen = ntohs(ip6->ip6_plen); // assume *off == sizeof(*ip6) in tcp_input()
494 if (off < sizeof (struct tcphdr) || off > tlen) { in tcp_input()
497 tlen -= off; /* tlen is used instead of ti->ti_len */ in tcp_input()
605 if (tcp_twcheck(tp,/*inp, &to,*/ th, /*m,*/ tlen)) in tcp_input()
954 tcp_do_segment(ip6, th, msg, tp, drop_hdrlen, tlen, iptos, sig); in tcp_input()
989 tcp_do_segment(ip6, th, msg, tp, drop_hdrlen, tlen, iptos, sig); in tcp_input()
1005 tcp_dropwithreset(ip6, th, tp, tp->instance, tlen, rstreason); in tcp_input()
1007 tcp_dropwithreset(ip6, th, NULL, tpl->instance, tlen, rstreason); in tcp_input()
1024 struct tcpcb *tp, int drop_hdrlen, int tlen, uint8_t iptos, in tcp_do_segment() argument
1232 if (tlen == 0) { in tcp_do_segment()
1346 tlen <= cbuf_free_space(&tp->recvbuf)) { in tcp_do_segment()
1357 tp->rcv_nxt += tlen; in tcp_do_segment()
1431 …cbuf_write(&tp->recvbuf, msg, otMessageGetOffset(msg) + drop_hdrlen, tlen, cbuf_copy_from_message); in tcp_do_segment()
1432 if (tlen > 0) { in tcp_do_segment()
1455 if (DELAY_ACK(tp, tlen)) { in tcp_do_segment()
1587 if (DELAY_ACK(tp, tlen) && tlen != 0 && !tfo_partial_ack) in tcp_do_segment()
1642 if (tlen > tp->rcv_wnd) { in tcp_do_segment()
1643 todrop = tlen - tp->rcv_wnd; in tcp_do_segment()
1651 tlen = tp->rcv_wnd; in tcp_do_segment()
1796 if (tlen) in tcp_do_segment()
1828 if (todrop > tlen in tcp_do_segment()
1829 || (todrop == tlen && (thflags & TH_FIN) == 0)) { in tcp_do_segment()
1842 todrop = tlen; in tcp_do_segment()
1847 tlen -= todrop; in tcp_do_segment()
1870 todrop = (th->th_seq + tlen) - (tp->rcv_nxt + tp->rcv_wnd); in tcp_do_segment()
1872 if (todrop >= tlen) { in tcp_do_segment()
1894 tlen -= todrop; in tcp_do_segment()
1919 SEQ_LEQ(tp->last_ack_sent, th->th_seq + tlen + in tcp_do_segment()
2032 if (tlen == 0 && (thflags & TH_FIN) == 0) in tcp_do_segment()
2063 if (tlen == 0 && tiwin == tp->snd_wnd) { in tcp_do_segment()
2543 if ((tlen || (thflags & TH_FIN) || tfo_syn) && in tcp_do_segment()
2573 if (DELAY_ACK(tp, tlen) || tfo_syn) in tcp_do_segment()
2577 tp->rcv_nxt += tlen; in tcp_do_segment()
2587 …cbuf_write(&tp->recvbuf, msg, otMessageGetOffset(msg) + drop_hdrlen, tlen, cbuf_copy_from_message); in tcp_do_segment()
2588 if (tlen > 0) { in tcp_do_segment()
2591 } else if (tlen > 0) { in tcp_do_segment()
2627 thflags = tcp_reass(tp, th, &tlen, msg, otMessageGetOffset(msg) + drop_hdrlen, sig); in tcp_do_segment()
2631 if (tlen > 0 && (tp->t_flags & TF_SACK_PERMIT)) in tcp_do_segment()
2632 tcp_update_sack_list(tp, save_start, save_start + tlen); in tcp_do_segment()
2762 tcp_dropwithreset(ip6, th, tp, instance, tlen, rstreason); in tcp_do_segment()
2764 tcp_dropwithreset(ip6, th, NULL, instance, tlen, rstreason); in tcp_do_segment()