Lines Matching refs:th_seq
594 if (th->th_seq != tp->rcv_nxt) { in tcp_reass()
618 if (th->th_seq != tp->rcv_nxt && in tcp_reass()
636 if (SEQ_GT(q->tqe_th->th_seq, th->th_seq)) { in tcp_reass()
650 i = p->tqe_th->th_seq + p->tqe_len - th->th_seq; in tcp_reass()
657 tp->t_dsack_lseq = th->th_seq; in tcp_reass()
658 tp->t_dsack_rseq = th->th_seq + in tcp_reass()
696 th->th_seq += i; in tcp_reass()
700 if (th->th_seq != tp->rcv_nxt) { in tcp_reass()
722 int i = (th->th_seq + *tlenp) - q->tqe_th->th_seq; in tcp_reass()
735 tp->t_dsack_lseq = q->tqe_th->th_seq; in tcp_reass()
749 q->tqe_th->th_seq += i; in tcp_reass()
788 if (!q || q->tqe_th->th_seq != tp->rcv_nxt) { in tcp_reass()
829 } while (q && q->tqe_th->th_seq == tp->rcv_nxt); in tcp_reass()
1706 if (th->th_seq == tp->rcv_nxt) { in tcp_tfo_rcv_ack()
1709 } else if (SEQ_GT(th->th_seq, tp->rcv_nxt)) { in tcp_tfo_rcv_ack()
1727 (SEQ_LT(tp->snd_wl1, th->th_seq) || in tcp_update_window()
1728 (tp->snd_wl1 == th->th_seq && (SEQ_LT(tp->snd_wl2, th->th_ack) || in tcp_update_window()
1736 tp->snd_wl1 = th->th_seq; in tcp_update_window()
1782 if (tcp_hdr->th_seq != tp->irs) { in tcp_syn_data_valid()
2002 th->th_seq, th->th_ack, th->th_win); in tcp_input()
2059 th->th_seq, th->th_ack, th->th_win); in tcp_input()
2158 NTOHL(th->th_seq); in tcp_input()
2790 th->th_seq, th->th_ack, tlen, thflags, in tcp_input()
2866 SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
2867 SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd))) { in tcp_input()
2872 if (th->th_seq == tp->iss + 1 && ace == 0) { in tcp_input()
2888 SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
2889 SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd)) { in tcp_input()
2989 th->th_seq == tp->rcv_nxt && LIST_EMPTY(&tp->t_segq)) { in tcp_input()
3060 th->th_seq == tp->rcv_nxt && in tcp_input()
3070 SEQ_LEQ(th->th_seq, tp->last_ack_sent)) { in tcp_input()
3216 tp->snd_wl1 = th->th_seq; in tcp_input()
3270 th->th_seq, th->th_ack, th->th_win); in tcp_input()
3274 th->th_seq, th->th_ack, th->th_win); in tcp_input()
3422 tp->irs = th->th_seq; in tcp_input()
3494 (tp->irs == th->th_seq) && in tcp_input()
3555 tp->irs = th->th_seq; in tcp_input()
3870 th->th_seq++; in tcp_input()
3879 tp->snd_wl1 = th->th_seq - 1; in tcp_input()
3880 tp->rcv_up = th->th_seq; in tcp_input()
4002 if ((SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
4003 SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd)) || in tcp_input()
4005 ((tp->last_ack_sent == th->th_seq) || in tcp_input()
4006 ((tp->last_ack_sent - 1) == th->th_seq)))) { in tcp_input()
4007 if (tp->last_ack_sent == th->th_seq) { in tcp_input()
4129 if (tp->t_state == TCPS_SYN_RECEIVED && SEQ_LT(th->th_seq, tp->irs)) { in tcp_input()
4139 todrop = tp->rcv_nxt - th->th_seq; in tcp_input()
4146 th->th_seq++; in tcp_input()
4202 tp->t_dsack_lseq = th->th_seq; in tcp_input()
4203 tp->t_dsack_rseq = th->th_seq + todrop; in tcp_input()
4215 th->th_seq += todrop; in tcp_input()
4271 todrop = (th->th_seq + tlen) - (tp->rcv_nxt + tp->rcv_wnd); in tcp_input()
4284 SEQ_GT(th->th_seq, tp->rcv_nxt)) { in tcp_input()
4297 if (tp->rcv_wnd == 0 && th->th_seq == tp->rcv_nxt) { in tcp_input()
4330 SEQ_LEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
4331 SEQ_LEQ(tp->last_ack_sent, th->th_seq + tlen + in tcp_input()
4363 th->th_seq++; in tcp_input()
4474 tp->snd_wl1 = th->th_seq - 1; in tcp_input()
5390 if (SEQ_GT(th->th_seq + th->th_urp, tp->rcv_up)) { in tcp_input()
5391 tp->rcv_up = th->th_seq + th->th_urp; in tcp_input()
5461 tcp_seq save_start = th->th_seq; in tcp_input()
5462 tcp_seq save_end = th->th_seq + tlen; in tcp_input()
5476 if (th->th_seq == tp->rcv_nxt && LIST_EMPTY(&tp->t_segq)) { in tcp_input()
5548 if (SEQ_LT(tp->rcv_high, th->th_seq + tlen)) { in tcp_input()
5549 tp->rcv_high = th->th_seq + tlen; in tcp_input()
5592 th->th_seq, th->th_ack, th->th_win); in tcp_input()
5596 th->th_seq, th->th_ack, th->th_win); in tcp_input()
5821 tcp_respond(tp, mtod(m, void *), th, m, th->th_seq + tlen, in tcp_input()