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()
2755 th->th_seq, th->th_ack, tlen, thflags, in tcp_input()
2818 SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
2819 SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd))) { in tcp_input()
2835 SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
2836 SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd)) { in tcp_input()
2936 th->th_seq == tp->rcv_nxt && LIST_EMPTY(&tp->t_segq)) { in tcp_input()
3007 th->th_seq == tp->rcv_nxt && in tcp_input()
3017 SEQ_LEQ(th->th_seq, tp->last_ack_sent)) { in tcp_input()
3155 tp->snd_wl1 = th->th_seq; in tcp_input()
3209 th->th_seq, th->th_ack, th->th_win); in tcp_input()
3213 th->th_seq, th->th_ack, th->th_win); in tcp_input()
3363 tp->irs = th->th_seq; in tcp_input()
3496 (tp->irs == th->th_seq) && in tcp_input()
3603 tp->irs = th->th_seq; in tcp_input()
3892 th->th_seq++; in tcp_input()
3901 tp->snd_wl1 = th->th_seq - 1; in tcp_input()
3902 tp->rcv_up = th->th_seq; in tcp_input()
4021 if ((SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
4022 SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd)) || in tcp_input()
4024 ((tp->last_ack_sent == th->th_seq) || in tcp_input()
4025 ((tp->last_ack_sent - 1) == th->th_seq)))) { in tcp_input()
4026 if (tp->last_ack_sent == th->th_seq) { in tcp_input()
4148 if (tp->t_state == TCPS_SYN_RECEIVED && SEQ_LT(th->th_seq, tp->irs)) { in tcp_input()
4158 todrop = tp->rcv_nxt - th->th_seq; in tcp_input()
4165 th->th_seq++; in tcp_input()
4221 tp->t_dsack_lseq = th->th_seq; in tcp_input()
4222 tp->t_dsack_rseq = th->th_seq + todrop; in tcp_input()
4234 th->th_seq += todrop; in tcp_input()
4290 todrop = (th->th_seq + tlen) - (tp->rcv_nxt + tp->rcv_wnd); in tcp_input()
4303 SEQ_GT(th->th_seq, tp->rcv_nxt)) { in tcp_input()
4316 if (tp->rcv_wnd == 0 && th->th_seq == tp->rcv_nxt) { in tcp_input()
4349 SEQ_LEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
4350 SEQ_LEQ(tp->last_ack_sent, th->th_seq + tlen + in tcp_input()
4382 th->th_seq++; in tcp_input()
4490 tp->snd_wl1 = th->th_seq - 1; in tcp_input()
5326 if (SEQ_GT(th->th_seq + th->th_urp, tp->rcv_up)) { in tcp_input()
5327 tp->rcv_up = th->th_seq + th->th_urp; in tcp_input()
5397 tcp_seq save_start = th->th_seq; in tcp_input()
5398 tcp_seq save_end = th->th_seq + tlen; in tcp_input()
5412 if (th->th_seq == tp->rcv_nxt && LIST_EMPTY(&tp->t_segq)) { in tcp_input()
5484 if (SEQ_LT(tp->rcv_high, th->th_seq + tlen)) { in tcp_input()
5485 tp->rcv_high = th->th_seq + tlen; in tcp_input()
5528 th->th_seq, th->th_ack, th->th_win); in tcp_input()
5532 th->th_seq, th->th_ack, th->th_win); in tcp_input()
5735 tcp_respond(tp, mtod(m, void *), th, m, th->th_seq + tlen, in tcp_input()