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()
1707 if (th->th_seq == tp->rcv_nxt) { in tcp_tfo_rcv_ack()
1710 } else if (SEQ_GT(th->th_seq, tp->rcv_nxt)) { in tcp_tfo_rcv_ack()
1728 (SEQ_LT(tp->snd_wl1, th->th_seq) || in tcp_update_window()
1729 (tp->snd_wl1 == th->th_seq && (SEQ_LT(tp->snd_wl2, th->th_ack) || in tcp_update_window()
1737 tp->snd_wl1 = th->th_seq; in tcp_update_window()
1777 if (tcp_hdr->th_seq != tp->irs) { in tcp_syn_data_valid()
2117 th->th_seq, th->th_ack, th->th_win); in tcp_input()
2176 th->th_seq, th->th_ack, th->th_win); in tcp_input()
2277 NTOHL(th->th_seq); in tcp_input()
2938 th->th_seq, th->th_ack, tlen, thflags, in tcp_input()
3011 SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
3012 SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd))) { in tcp_input()
3017 if (th->th_seq == tp->iss + 1 && ace == 0) { in tcp_input()
3033 SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
3034 SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd)) { in tcp_input()
3134 th->th_seq == tp->rcv_nxt && LIST_EMPTY(&tp->t_segq)) { in tcp_input()
3205 th->th_seq == tp->rcv_nxt && in tcp_input()
3215 SEQ_LEQ(th->th_seq, tp->last_ack_sent)) { in tcp_input()
3400 tp->snd_wl1 = th->th_seq; in tcp_input()
3454 th->th_seq, th->th_ack, th->th_win); in tcp_input()
3458 th->th_seq, th->th_ack, th->th_win); in tcp_input()
3625 tp->irs = th->th_seq; in tcp_input()
3698 (tp->irs == th->th_seq) && in tcp_input()
3763 tp->irs = th->th_seq; in tcp_input()
4088 th->th_seq++; in tcp_input()
4097 tp->snd_wl1 = th->th_seq - 1; in tcp_input()
4098 tp->rcv_up = th->th_seq; in tcp_input()
4223 if ((SEQ_GEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
4224 SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd)) || in tcp_input()
4226 ((tp->last_ack_sent == th->th_seq) || in tcp_input()
4227 (tp->last_ack_sent - 1 == th->th_seq)))) { in tcp_input()
4228 if (tp->last_ack_sent == th->th_seq || tp->last_ack_sent - 1 == th->th_seq) { in tcp_input()
4352 if (tp->t_state == TCPS_SYN_RECEIVED && SEQ_LT(th->th_seq, tp->irs)) { in tcp_input()
4363 todrop = tp->rcv_nxt - th->th_seq; in tcp_input()
4370 th->th_seq++; in tcp_input()
4426 tp->t_dsack_lseq = th->th_seq; in tcp_input()
4427 tp->t_dsack_rseq = th->th_seq + todrop; in tcp_input()
4439 th->th_seq += todrop; in tcp_input()
4496 todrop = (th->th_seq + tlen) - (tp->rcv_nxt + tp->rcv_wnd); in tcp_input()
4509 SEQ_GT(th->th_seq, tp->rcv_nxt)) { in tcp_input()
4522 if (tp->rcv_wnd == 0 && th->th_seq == tp->rcv_nxt) { in tcp_input()
4555 SEQ_LEQ(th->th_seq, tp->last_ack_sent) && in tcp_input()
4556 SEQ_LEQ(tp->last_ack_sent, th->th_seq + tlen + in tcp_input()
4590 th->th_seq++; in tcp_input()
4703 tp->snd_wl1 = th->th_seq - 1; in tcp_input()
5716 if (SEQ_GT(th->th_seq + th->th_urp, tp->rcv_up)) { in tcp_input()
5717 tp->rcv_up = th->th_seq + th->th_urp; in tcp_input()
5788 tcp_seq save_start = th->th_seq; in tcp_input()
5789 tcp_seq save_end = th->th_seq + tlen; in tcp_input()
5803 if (th->th_seq == tp->rcv_nxt && LIST_EMPTY(&tp->t_segq)) { in tcp_input()
5875 if (SEQ_LT(tp->rcv_high, th->th_seq + tlen)) { in tcp_input()
5876 tp->rcv_high = th->th_seq + tlen; in tcp_input()
5919 th->th_seq, th->th_ack, th->th_win); in tcp_input()
5923 th->th_seq, th->th_ack, th->th_win); in tcp_input()
6129 tcp_respond(tp, mtod(m, void *), m->m_len, th, m, th->th_seq + tlen, in tcp_input()
6165 HTONL(th->th_seq); in tcp_input()