Lines Matching refs:th_seq
327 NTOHL(th->th_seq);
340 HTONL(th->th_seq);
487 pkt_seq = th->th_seq;
997 todrop = vp->rcv_nxt - th->th_seq;
1002 th->th_seq++;
1028 th->th_seq != vp->rcv_nxt) {
1042 // tcp_new_dsack(tp, th->th_seq, todrop);
1045 th->th_seq += todrop;
1063 todrop = (th->th_seq + tlen) - (vp->rcv_nxt + vp->rcv_wnd);
1070 * th->th_seq + tlen - vp->rcv_nxt - vp->rcv_wnd >= tlen
1071 * th->th_seq - vp->rcv_nxt - vp->rcv_wnd >= 0
1072 * th->th_seq >= vp->rcv_nxt + vp->rcv_wnd
1083 SEQ_GT(th->th_seq, vp->rcv_nxt)) {
1098 if (vp->rcv_wnd == 0 && th->th_seq == vp->rcv_nxt) {
1113 if (th->th_seq != vp->rcv_nxt)
1158 (void)tcp_respond(0, m, m, th, th->th_seq + tlen, th->th_ack, TH_ACK);
1174 (void)tcp_respond(0, m, m, th, th->th_seq + tlen, (tcp_seq)0,
1818 th->th_seq == tp->rcv_nxt &&
1831 if (opti.ts_present && SEQ_LEQ(th->th_seq, tp->last_ack_sent)) {
1931 * th_seq.
1933 tp->snd_wl1 = th->th_seq;
2085 tp->irs = th->th_seq;
2139 * Advance th->th_seq to correspond to first data byte.
2143 th->th_seq++;
2155 tp->snd_wl1 = th->th_seq - 1;
2156 tp->rcv_up = th->th_seq;
2204 tcp_new_dsack(tp, th->th_seq, tlen);
2214 todrop = tp->rcv_nxt - th->th_seq;
2219 th->th_seq++;
2245 } else if ((tiflags & TH_RST) && th->th_seq != tp->rcv_nxt) {
2258 tcp_new_dsack(tp, th->th_seq, todrop);
2260 th->th_seq += todrop;
2280 todrop = (th->th_seq + tlen) - (tp->rcv_nxt + tp->rcv_wnd);
2286 * th->th_seq + tlen - tp->rcv_nxt - tp->rcv_wnd >= tlen
2287 * th->th_seq - tp->rcv_nxt - tp->rcv_wnd >= 0
2288 * th->th_seq >= tp->rcv_nxt + tp->rcv_wnd
2303 SEQ_GT(th->th_seq, tp->rcv_nxt)) {
2318 if (tp->rcv_wnd == 0 && th->th_seq == tp->rcv_nxt) {
2352 SEQ_LEQ(th->th_seq, tp->last_ack_sent) &&
2353 SEQ_LEQ(tp->last_ack_sent, th->th_seq + tlen +
2370 if (th->th_seq != tp->rcv_nxt)
2406 if (tp->rcv_nxt == th->th_seq) {
2450 tp->snd_wl1 = th->th_seq - 1;
2514 if (tlen && th->th_seq != tp->rcv_nxt &&
2666 if ((tiflags & TH_ACK) && (SEQ_LT(tp->snd_wl1, th->th_seq) ||
2667 (tp->snd_wl1 == th->th_seq && (SEQ_LT(tp->snd_wl2, th->th_ack) ||
2674 tp->snd_wl1 = th->th_seq;
2712 if (SEQ_GT(th->th_seq+th->th_urp, tp->rcv_up)) {
2713 tp->rcv_up = th->th_seq + th->th_urp;
2764 if (th->th_seq == tp->rcv_nxt &&
2935 (void)tcp_respond(tp, m, m, th, th->th_seq + tlen, (tcp_seq)0,