Lines Matching refs:th_seq
591 if (th->th_seq != tp->rcv_nxt) { in tcp_reass()
615 if (th->th_seq != tp->rcv_nxt && in tcp_reass()
633 if (SEQ_GT(q->tqe_th->th_seq, th->th_seq)) { in tcp_reass()
647 i = p->tqe_th->th_seq + p->tqe_len - th->th_seq; in tcp_reass()
654 tp->t_dsack_lseq = th->th_seq; in tcp_reass()
655 tp->t_dsack_rseq = th->th_seq + in tcp_reass()
693 th->th_seq += i; in tcp_reass()
713 int i = (th->th_seq + *tlenp) - q->tqe_th->th_seq; in tcp_reass()
726 tp->t_dsack_lseq = q->tqe_th->th_seq; in tcp_reass()
740 q->tqe_th->th_seq += i; in tcp_reass()
779 if (!q || q->tqe_th->th_seq != tp->rcv_nxt) { in tcp_reass()
820 } while (q && q->tqe_th->th_seq == tp->rcv_nxt); in tcp_reass()
1755 if (th->th_seq == tp->rcv_nxt) { in tcp_tfo_rcv_ack()
1758 } else if (SEQ_GT(th->th_seq, tp->rcv_nxt)) { in tcp_tfo_rcv_ack()
1776 (SEQ_LT(tp->snd_wl1, th->th_seq) || in tcp_update_window()
1777 (tp->snd_wl1 == th->th_seq && (SEQ_LT(tp->snd_wl2, th->th_ack) || in tcp_update_window()
1785 tp->snd_wl1 = th->th_seq; in tcp_update_window()
1831 if (tcp_hdr->th_seq != tp->irs) { in tcp_syn_data_valid()
1970 th->th_seq, th->th_ack, th->th_win); in tcp_input()
2027 th->th_seq, th->th_ack, th->th_win); in tcp_input()
2126 NTOHL(th->th_seq); in tcp_input()
2759 th->th_seq, th->th_ack, tlen, thflags, in tcp_input()
2822 SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
2823 SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd))) { in tcp_input()
2839 SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
2840 SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd)) { in tcp_input()
2940 th->th_seq == tp->rcv_nxt && LIST_EMPTY(&tp->t_segq)) { in tcp_input()
3011 th->th_seq == tp->rcv_nxt && in tcp_input()
3021 SEQ_LEQ(th->th_seq, tp->last_ack_sent)) { in tcp_input()
3159 tp->snd_wl1 = th->th_seq; in tcp_input()
3213 th->th_seq, th->th_ack, th->th_win); in tcp_input()
3217 th->th_seq, th->th_ack, th->th_win); in tcp_input()
3367 tp->irs = th->th_seq; in tcp_input()
3500 (tp->irs == th->th_seq) && in tcp_input()
3607 tp->irs = th->th_seq; in tcp_input()
3896 th->th_seq++; in tcp_input()
3905 tp->snd_wl1 = th->th_seq - 1; in tcp_input()
3906 tp->rcv_up = th->th_seq; in tcp_input()
4025 if ((SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
4026 SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd)) || in tcp_input()
4028 ((tp->last_ack_sent == th->th_seq) || in tcp_input()
4029 ((tp->last_ack_sent - 1) == th->th_seq)))) { in tcp_input()
4030 if (tp->last_ack_sent == th->th_seq) { in tcp_input()
4152 if (tp->t_state == TCPS_SYN_RECEIVED && SEQ_LT(th->th_seq, tp->irs)) { in tcp_input()
4162 todrop = tp->rcv_nxt - th->th_seq; in tcp_input()
4169 th->th_seq++; in tcp_input()
4225 tp->t_dsack_lseq = th->th_seq; in tcp_input()
4226 tp->t_dsack_rseq = th->th_seq + todrop; in tcp_input()
4238 th->th_seq += todrop; in tcp_input()
4294 todrop = (th->th_seq + tlen) - (tp->rcv_nxt + tp->rcv_wnd); in tcp_input()
4307 SEQ_GT(th->th_seq, tp->rcv_nxt)) { in tcp_input()
4320 if (tp->rcv_wnd == 0 && th->th_seq == tp->rcv_nxt) { in tcp_input()
4353 SEQ_LEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
4354 SEQ_LEQ(tp->last_ack_sent, th->th_seq + tlen + in tcp_input()
4386 th->th_seq++; in tcp_input()
4494 tp->snd_wl1 = th->th_seq - 1; in tcp_input()
5330 if (SEQ_GT(th->th_seq + th->th_urp, tp->rcv_up)) { in tcp_input()
5331 tp->rcv_up = th->th_seq + th->th_urp; in tcp_input()
5401 tcp_seq save_start = th->th_seq; in tcp_input()
5402 tcp_seq save_end = th->th_seq + tlen; in tcp_input()
5416 if (th->th_seq == tp->rcv_nxt && LIST_EMPTY(&tp->t_segq)) { in tcp_input()
5488 if (SEQ_LT(tp->rcv_high, th->th_seq + tlen)) { in tcp_input()
5489 tp->rcv_high = th->th_seq + tlen; in tcp_input()
5532 th->th_seq, th->th_ack, th->th_win); in tcp_input()
5536 th->th_seq, th->th_ack, th->th_win); in tcp_input()
5740 tcp_respond(tp, mtod(m, void *), th, m, th->th_seq + tlen, in tcp_input()