Lines Matching refs:th_seq

602 	if (th->th_seq != tp->rcv_nxt &&
624 if (SEQ_GT(q->tqe_th->th_seq, th->th_seq))
637 i = p->tqe_th->th_seq + p->tqe_len - th->th_seq;
666 th->th_seq += i;
684 register int i = (th->th_seq + *tlenp) - q->tqe_th->th_seq;
688 q->tqe_th->th_seq += i;
730 if (!q || q->tqe_th->th_seq != tp->rcv_nxt) {
774 q->tqe_th->th_seq - (tp->irs + 1), 0))
785 } while (q && q->tqe_th->th_seq == tp->rcv_nxt);
816 te->tqe_th->th_seq - (tp->irs + 1), 1)) {
1583 th->th_seq, th->th_ack, th->th_win);
1641 th->th_seq, th->th_ack, th->th_win);
1742 NTOHL(th->th_seq);
2296 SEQ_GEQ(th->th_seq, tp->last_ack_sent) &&
2297 SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd)) {
2396 th->th_seq == tp->rcv_nxt &&
2469 th->th_seq == tp->rcv_nxt &&
2480 SEQ_LEQ(th->th_seq, tp->last_ack_sent)) {
2600 ((th->th_seq - tp->irs) >
2602 ((tp->t_idleat == 0) || ((th->th_seq -
2616 * th_seq.
2618 tp->snd_wl1 = th->th_seq;
2661 th->th_seq - (tp->irs + 1), 0)) {
2668 th->th_seq, th->th_ack, th->th_win);
2675 th->th_seq, th->th_ack, th->th_win);
2808 tp->irs = th->th_seq;
2923 tp->irs = th->th_seq;
3023 * Advance th->th_seq to correspond to first data byte.
3027 th->th_seq++;
3036 tp->snd_wl1 = th->th_seq - 1;
3037 tp->rcv_up = th->th_seq;
3139 if ((SEQ_GEQ(th->th_seq, tp->last_ack_sent) &&
3140 SEQ_LT(th->th_seq, tp->last_ack_sent + tp->rcv_wnd)) ||
3142 ((tp->last_ack_sent == th->th_seq) ||
3143 ((tp->last_ack_sent -1) == th->th_seq)))) {
3152 if (tp->last_ack_sent != th->th_seq) {
3232 if (tp->t_state == TCPS_SYN_RECEIVED && SEQ_LT(th->th_seq, tp->irs)) {
3238 todrop = tp->rcv_nxt - th->th_seq;
3242 th->th_seq++;
3286 th->th_seq += todrop;
3317 todrop = (th->th_seq+tlen) - (tp->rcv_nxt+tp->rcv_wnd);
3330 SEQ_GT(th->th_seq, tp->rcv_nxt)) {
3343 if (tp->rcv_wnd == 0 && th->th_seq == tp->rcv_nxt) {
3374 SEQ_LEQ(th->th_seq, tp->last_ack_sent) &&
3375 SEQ_LEQ(tp->last_ack_sent, th->th_seq + tlen +
3459 tp->snd_wl1 = th->th_seq - 1;
4079 (SEQ_LT(tp->snd_wl1, th->th_seq) ||
4080 (tp->snd_wl1 == th->th_seq && (SEQ_LT(tp->snd_wl2, th->th_ack) ||
4087 tp->snd_wl1 = th->th_seq;
4124 if (SEQ_GT(th->th_seq+th->th_urp, tp->rcv_up)) {
4125 tp->rcv_up = th->th_seq + th->th_urp;
4187 tcp_seq save_start = th->th_seq;
4188 tcp_seq save_end = th->th_seq + tlen;
4202 if (th->th_seq == tp->rcv_nxt &&
4245 th->th_seq - (tp->irs + 1), 0)) {
4264 th->th_seq, th->th_ack, th->th_win);
4271 th->th_seq, th->th_ack, th->th_win);
4464 tcp_respond(tp, mtod(m, void *), th, m, th->th_seq+tlen,