Lines Matching refs:th_seq
565 if (th->th_seq != tp->rcv_nxt) { in tcp_reass()
598 if (th->th_seq != tp->rcv_nxt && in tcp_reass()
621 if (SEQ_GT(q->tqe_th->th_seq, th->th_seq)) { in tcp_reass()
635 i = p->tqe_th->th_seq + p->tqe_len - th->th_seq; in tcp_reass()
642 tp->t_dsack_lseq = th->th_seq; in tcp_reass()
643 tp->t_dsack_rseq = th->th_seq + in tcp_reass()
678 th->th_seq += i; in tcp_reass()
682 if (th->th_seq != tp->rcv_nxt) { in tcp_reass()
704 int i = (th->th_seq + *tlenp) - q->tqe_th->th_seq; in tcp_reass()
717 tp->t_dsack_lseq = q->tqe_th->th_seq; in tcp_reass()
731 q->tqe_th->th_seq += i; in tcp_reass()
763 if (!q || q->tqe_th->th_seq != tp->rcv_nxt) { in tcp_reass()
806 } while (q && q->tqe_th->th_seq == tp->rcv_nxt); in tcp_reass()
1620 if (th->th_seq == tp->rcv_nxt) { in tcp_tfo_rcv_ack()
1623 } else if (SEQ_GT(th->th_seq, tp->rcv_nxt)) { in tcp_tfo_rcv_ack()
1641 (SEQ_LT(tp->snd_wl1, th->th_seq) || in tcp_update_window()
1642 (tp->snd_wl1 == th->th_seq && (SEQ_LT(tp->snd_wl2, th->th_ack) || in tcp_update_window()
1650 tp->snd_wl1 = th->th_seq; in tcp_update_window()
1693 if (tcp_hdr->th_seq != tp->irs) { in tcp_syn_data_valid()
2672 tp->irs = tpi->th->th_seq; in tcp_setup_server_socket()
2849 th->th_seq, th->th_ack, th->th_win); in tcp_input()
2908 th->th_seq, th->th_ack, th->th_win); in tcp_input()
3010 NTOHL(th->th_seq); in tcp_input()
3307 tpi.irs = th->th_seq - 1; in tcp_input()
3500 th->th_seq, th->th_ack, tlen, thflags, in tcp_input()
3546 SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
3547 SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd))) { in tcp_input()
3552 if (th->th_seq == tp->iss + 1 && ace == 0) { in tcp_input()
3568 SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
3569 SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd)) { in tcp_input()
3665 th->th_seq == tp->rcv_nxt && LIST_EMPTY(&tp->t_segq)) { in tcp_input()
3736 th->th_seq == tp->rcv_nxt && in tcp_input()
3746 SEQ_LEQ(th->th_seq, tp->last_ack_sent)) { in tcp_input()
3939 tp->snd_wl1 = th->th_seq; in tcp_input()
3989 th->th_seq, th->th_ack, th->th_win); in tcp_input()
3993 th->th_seq, th->th_ack, th->th_win); in tcp_input()
4105 (tp->irs == th->th_seq) && in tcp_input()
4170 tp->irs = th->th_seq; in tcp_input()
4343 th->th_seq++; in tcp_input()
4352 tp->snd_wl1 = th->th_seq - 1; in tcp_input()
4353 tp->rcv_up = th->th_seq; in tcp_input()
4478 if ((SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
4479 SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd)) || in tcp_input()
4481 ((tp->last_ack_sent == th->th_seq) || in tcp_input()
4482 (tp->last_ack_sent - 1 == th->th_seq)))) { in tcp_input()
4483 if (tp->last_ack_sent == th->th_seq || tp->last_ack_sent - 1 == th->th_seq) { in tcp_input()
4588 if (tp->t_state == TCPS_SYN_RECEIVED && SEQ_LT(th->th_seq, tp->irs)) { in tcp_input()
4606 bool higher_seq = SEQ_GT(th->th_seq, tp->rcv_nxt); in tcp_input()
4623 todrop = tp->rcv_nxt - th->th_seq; in tcp_input()
4630 th->th_seq++; in tcp_input()
4686 tp->t_dsack_lseq = th->th_seq; in tcp_input()
4687 tp->t_dsack_rseq = th->th_seq + todrop; in tcp_input()
4697 th->th_seq += todrop; in tcp_input()
4754 todrop = (th->th_seq + tlen) - (tp->rcv_nxt + tp->rcv_wnd); in tcp_input()
4766 if (tp->rcv_wnd == 0 && th->th_seq == tp->rcv_nxt) { in tcp_input()
4799 SEQ_LEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
4800 SEQ_LEQ(tp->last_ack_sent, th->th_seq + tlen + in tcp_input()
4834 th->th_seq++; in tcp_input()
4947 tp->snd_wl1 = th->th_seq - 1; in tcp_input()
5902 if (SEQ_GT(th->th_seq + th->th_urp, tp->rcv_up)) { in tcp_input()
5903 tp->rcv_up = th->th_seq + th->th_urp; in tcp_input()
5974 tcp_seq save_start = th->th_seq; in tcp_input()
5975 tcp_seq save_end = th->th_seq + tlen; in tcp_input()
5978 if (th->th_seq == tp->rcv_nxt) { in tcp_input()
6004 if (th->th_seq == tp->rcv_nxt && LIST_EMPTY(&tp->t_segq)) { in tcp_input()
6072 if (SEQ_LT(tp->rcv_high, th->th_seq + tlen)) { in tcp_input()
6073 tp->rcv_high = th->th_seq + tlen; in tcp_input()
6114 th->th_seq, th->th_ack, th->th_win); in tcp_input()
6118 th->th_seq, th->th_ack, th->th_win); in tcp_input()
6324 tcp_respond(tp, mtod(m, void *), m->m_len, th, m, th->th_seq + tlen, in tcp_input()
6360 HTONL(th->th_seq); in tcp_input()