Lines Matching refs:th_seq

325 	NTOHL(th->th_seq);
338 HTONL(th->th_seq);
485 pkt_seq = th->th_seq;
988 todrop = vp->rcv_nxt - th->th_seq;
993 th->th_seq++;
1019 th->th_seq != vp->rcv_nxt) {
1033 // tcp_new_dsack(tp, th->th_seq, todrop);
1036 th->th_seq += todrop;
1054 todrop = (th->th_seq + tlen) - (vp->rcv_nxt + vp->rcv_wnd);
1061 * th->th_seq + tlen - vp->rcv_nxt - vp->rcv_wnd >= tlen
1062 * th->th_seq - vp->rcv_nxt - vp->rcv_wnd >= 0
1063 * th->th_seq >= vp->rcv_nxt + vp->rcv_wnd
1074 SEQ_GT(th->th_seq, vp->rcv_nxt)) {
1089 if (vp->rcv_wnd == 0 && th->th_seq == vp->rcv_nxt) {
1104 if (th->th_seq != vp->rcv_nxt)
1149 (void)tcp_respond(0, m, m, th, th->th_seq + tlen, th->th_ack, TH_ACK);
1165 (void)tcp_respond(0, m, m, th, th->th_seq + tlen, (tcp_seq)0,
1809 th->th_seq == tp->rcv_nxt &&
1822 if (opti.ts_present && SEQ_LEQ(th->th_seq, tp->last_ack_sent)) {
1922 * th_seq.
1924 tp->snd_wl1 = th->th_seq;
2076 tp->irs = th->th_seq;
2130 * Advance th->th_seq to correspond to first data byte.
2134 th->th_seq++;
2146 tp->snd_wl1 = th->th_seq - 1;
2147 tp->rcv_up = th->th_seq;
2195 tcp_new_dsack(tp, th->th_seq, tlen);
2205 todrop = tp->rcv_nxt - th->th_seq;
2210 th->th_seq++;
2236 } else if ((tiflags & TH_RST) && th->th_seq != tp->rcv_nxt) {
2249 tcp_new_dsack(tp, th->th_seq, todrop);
2251 th->th_seq += todrop;
2271 todrop = (th->th_seq + tlen) - (tp->rcv_nxt + tp->rcv_wnd);
2277 * th->th_seq + tlen - tp->rcv_nxt - tp->rcv_wnd >= tlen
2278 * th->th_seq - tp->rcv_nxt - tp->rcv_wnd >= 0
2279 * th->th_seq >= tp->rcv_nxt + tp->rcv_wnd
2294 SEQ_GT(th->th_seq, tp->rcv_nxt)) {
2309 if (tp->rcv_wnd == 0 && th->th_seq == tp->rcv_nxt) {
2343 SEQ_LEQ(th->th_seq, tp->last_ack_sent) &&
2344 SEQ_LEQ(tp->last_ack_sent, th->th_seq + tlen +
2361 if (th->th_seq != tp->rcv_nxt)
2397 if (tp->rcv_nxt == th->th_seq) {
2441 tp->snd_wl1 = th->th_seq - 1;
2505 if (tlen && th->th_seq != tp->rcv_nxt &&
2657 if ((tiflags & TH_ACK) && (SEQ_LT(tp->snd_wl1, th->th_seq) ||
2658 (tp->snd_wl1 == th->th_seq && (SEQ_LT(tp->snd_wl2, th->th_ack) ||
2665 tp->snd_wl1 = th->th_seq;
2703 if (SEQ_GT(th->th_seq+th->th_urp, tp->rcv_up)) {
2704 tp->rcv_up = th->th_seq + th->th_urp;
2755 if (th->th_seq == tp->rcv_nxt &&
2926 (void)tcp_respond(tp, m, m, th, th->th_seq + tlen, (tcp_seq)0,