Lines Matching refs:th_seq
588 if (th->th_seq != tp->rcv_nxt) { in tcp_reass()
612 if (th->th_seq != tp->rcv_nxt && in tcp_reass()
630 if (SEQ_GT(q->tqe_th->th_seq, th->th_seq)) { in tcp_reass()
644 i = p->tqe_th->th_seq + p->tqe_len - th->th_seq; in tcp_reass()
651 tp->t_dsack_lseq = th->th_seq; in tcp_reass()
652 tp->t_dsack_rseq = th->th_seq + in tcp_reass()
690 th->th_seq += i; in tcp_reass()
694 if (th->th_seq != tp->rcv_nxt) { in tcp_reass()
716 int i = (th->th_seq + *tlenp) - q->tqe_th->th_seq; in tcp_reass()
729 tp->t_dsack_lseq = q->tqe_th->th_seq; in tcp_reass()
743 q->tqe_th->th_seq += i; in tcp_reass()
782 if (!q || q->tqe_th->th_seq != tp->rcv_nxt) { in tcp_reass()
823 } while (q && q->tqe_th->th_seq == tp->rcv_nxt); in tcp_reass()
1705 if (th->th_seq == tp->rcv_nxt) { in tcp_tfo_rcv_ack()
1708 } else if (SEQ_GT(th->th_seq, tp->rcv_nxt)) { in tcp_tfo_rcv_ack()
1726 (SEQ_LT(tp->snd_wl1, th->th_seq) || in tcp_update_window()
1727 (tp->snd_wl1 == th->th_seq && (SEQ_LT(tp->snd_wl2, th->th_ack) || in tcp_update_window()
1735 tp->snd_wl1 = th->th_seq; in tcp_update_window()
1775 if (tcp_hdr->th_seq != tp->irs) { in tcp_syn_data_valid()
2114 th->th_seq, th->th_ack, th->th_win); in tcp_input()
2171 th->th_seq, th->th_ack, th->th_win); in tcp_input()
2270 NTOHL(th->th_seq); in tcp_input()
2902 th->th_seq, th->th_ack, tlen, thflags, in tcp_input()
2975 SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
2976 SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd))) { in tcp_input()
2981 if (th->th_seq == tp->iss + 1 && ace == 0) { in tcp_input()
2997 SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
2998 SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd)) { in tcp_input()
3098 th->th_seq == tp->rcv_nxt && LIST_EMPTY(&tp->t_segq)) { in tcp_input()
3169 th->th_seq == tp->rcv_nxt && in tcp_input()
3179 SEQ_LEQ(th->th_seq, tp->last_ack_sent)) { in tcp_input()
3363 tp->snd_wl1 = th->th_seq; in tcp_input()
3417 th->th_seq, th->th_ack, th->th_win); in tcp_input()
3421 th->th_seq, th->th_ack, th->th_win); in tcp_input()
3583 tp->irs = th->th_seq; in tcp_input()
3655 (tp->irs == th->th_seq) && in tcp_input()
3718 tp->irs = th->th_seq; in tcp_input()
4043 th->th_seq++; in tcp_input()
4052 tp->snd_wl1 = th->th_seq - 1; in tcp_input()
4053 tp->rcv_up = th->th_seq; in tcp_input()
4178 if ((SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
4179 SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd)) || in tcp_input()
4181 ((tp->last_ack_sent == th->th_seq) || in tcp_input()
4182 (tp->last_ack_sent - 1 == th->th_seq)))) { in tcp_input()
4183 if (tp->last_ack_sent == th->th_seq || tp->last_ack_sent - 1 == th->th_seq) { in tcp_input()
4305 if (tp->t_state == TCPS_SYN_RECEIVED && SEQ_LT(th->th_seq, tp->irs)) { in tcp_input()
4315 todrop = tp->rcv_nxt - th->th_seq; in tcp_input()
4322 th->th_seq++; in tcp_input()
4378 tp->t_dsack_lseq = th->th_seq; in tcp_input()
4379 tp->t_dsack_rseq = th->th_seq + todrop; in tcp_input()
4391 th->th_seq += todrop; in tcp_input()
4447 todrop = (th->th_seq + tlen) - (tp->rcv_nxt + tp->rcv_wnd); in tcp_input()
4460 SEQ_GT(th->th_seq, tp->rcv_nxt)) { in tcp_input()
4473 if (tp->rcv_wnd == 0 && th->th_seq == tp->rcv_nxt) { in tcp_input()
4506 SEQ_LEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
4507 SEQ_LEQ(tp->last_ack_sent, th->th_seq + tlen + in tcp_input()
4539 th->th_seq++; in tcp_input()
4650 tp->snd_wl1 = th->th_seq - 1; in tcp_input()
5660 if (SEQ_GT(th->th_seq + th->th_urp, tp->rcv_up)) { in tcp_input()
5661 tp->rcv_up = th->th_seq + th->th_urp; in tcp_input()
5731 tcp_seq save_start = th->th_seq; in tcp_input()
5732 tcp_seq save_end = th->th_seq + tlen; in tcp_input()
5746 if (th->th_seq == tp->rcv_nxt && LIST_EMPTY(&tp->t_segq)) { in tcp_input()
5818 if (SEQ_LT(tp->rcv_high, th->th_seq + tlen)) { in tcp_input()
5819 tp->rcv_high = th->th_seq + tlen; in tcp_input()
5862 th->th_seq, th->th_ack, th->th_win); in tcp_input()
5866 th->th_seq, th->th_ack, th->th_win); in tcp_input()
6072 tcp_respond(tp, mtod(m, void *), th, m, th->th_seq + tlen, in tcp_input()
6108 HTONL(th->th_seq); in tcp_input()