Lines Matching defs:end_seq
493 (TCP_SKB_CB(skb)->end_seq -
991 after(TCP_SKB_CB(skb)->end_seq, tp->retransmit_high))
992 tp->retransmit_high = TCP_SKB_CB(skb)->end_seq;
1081 * fact that though start_seq (s) is before end_seq (i.e., not reversed),
1083 * happens when start_seq resides between end_seq wrap (e_w) and snd_nxt
1095 * similar case (end_seq after snd_nxt wrap) as earlier reversed check in
1113 u32 start_seq, u32 end_seq)
1116 if (after(end_seq, tp->snd_nxt) || !before(start_seq, end_seq))
1133 if (!after(end_seq, tp->snd_una))
1140 if (!after(end_seq, tp->undo_marker))
1144 * start_seq < undo_marker and end_seq >= undo_marker.
1146 return !before(start_seq, end_seq - tp->max_window);
1179 if (!after(TCP_SKB_CB(skb)->end_seq, tp->snd_una))
1219 u32 end_seq_0 = get_unaligned_be32(&sp[0].end_seq);
1227 u32 end_seq_1 = get_unaligned_be32(&sp[1].end_seq);
1255 u32 start_seq, u32 end_seq)
1262 !before(end_seq, TCP_SKB_CB(skb)->end_seq);
1265 after(TCP_SKB_CB(skb)->end_seq, start_seq)) {
1274 pkt_len = end_seq - TCP_SKB_CB(skb)->seq;
1309 if (after(TCP_SKB_CB(skb)->end_seq, tp->undo_marker))
1316 if (!after(TCP_SKB_CB(skb)->end_seq, tp->snd_una))
1341 if (!after(TCP_SKB_CB(skb)->end_seq, tp->frto_highmark))
1394 TCP_SKB_CB(prev)->end_seq += shifted;
1471 u32 start_seq, u32 end_seq,
1491 if (!after(TCP_SKB_CB(skb)->end_seq, tp->snd_una))
1503 !before(end_seq, TCP_SKB_CB(skb)->end_seq);
1516 if (!after(TCP_SKB_CB(skb)->end_seq, start_seq))
1528 * if (!after(TCP_SKB_CB(skb)->end_seq, end_seq)),
1541 len = end_seq - TCP_SKB_CB(skb)->seq;
1606 u32 start_seq, u32 end_seq,
1620 if (!before(TCP_SKB_CB(skb)->seq, end_seq))
1624 before(TCP_SKB_CB(skb)->seq, next_dup->end_seq)) {
1627 next_dup->end_seq);
1638 start_seq, end_seq, dup_sack);
1649 end_seq);
1683 if (after(TCP_SKB_CB(skb)->end_seq, skip_to_seq))
1703 next_dup->start_seq, next_dup->end_seq,
1764 sp[used_sacks].end_seq = get_unaligned_be32(&sp_wire[i].end_seq);
1768 sp[used_sacks].end_seq)) {
1779 !after(sp[used_sacks].end_seq, tp->snd_una))
1791 if (!after(sp[used_sacks].end_seq, prior_snd_una))
1821 !cache->end_seq)
1827 u32 end_seq = sp[i].end_seq;
1835 if (after(end_seq, tp->high_seq))
1840 !before(start_seq, cache->end_seq))
1845 after(end_seq, cache->start_seq)) {
1859 if (!after(end_seq, cache->end_seq))
1864 cache->end_seq);
1867 if (tcp_highest_sack_seq(tp) == cache->end_seq) {
1877 skb = tcp_sacktag_skip(skb, sk, &state, cache->end_seq);
1893 start_seq, end_seq, dup_sack);
1899 if (after(end_seq, tp->frto_highmark))
1908 tp->recv_sack_cache[i].end_seq = 0;
2165 tp->retransmit_high = TCP_SKB_CB(skb)->end_seq;
2250 tp->retransmit_high = TCP_SKB_CB(skb)->end_seq;
2535 if (after(TCP_SKB_CB(skb)->end_seq, tp->high_seq))
3202 BUG_ON(!after(TCP_SKB_CB(skb)->end_seq, tp->snd_una));
3211 BUG_ON(!before(TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq));
3243 if (after(scb->end_seq, tp->snd_una)) {
3395 if (!after(TCP_SKB_CB(tcp_send_head(sk))->end_seq, tcp_wnd_end(tp))) {
3666 if (ack_seq != TCP_SKB_CB(skb)->end_seq)
3985 (th->ack && seq == TCP_SKB_CB(skb)->end_seq && seq == tp->rcv_nxt) &&
4019 static inline int tcp_sequence(struct tcp_sock *tp, u32 seq, u32 end_seq)
4021 return !before(end_seq, tp->rcv_wup) &&
4134 u32 end_seq)
4136 if (!after(seq, sp->end_seq) && !after(sp->start_seq, end_seq)) {
4139 if (after(end_seq, sp->end_seq))
4140 sp->end_seq = end_seq;
4146 static void tcp_dsack_set(struct sock *sk, u32 seq, u32 end_seq)
4162 tp->duplicate_sack[0].end_seq = end_seq;
4166 static void tcp_dsack_extend(struct sock *sk, u32 seq, u32 end_seq)
4171 tcp_dsack_set(sk, seq, end_seq);
4173 tcp_sack_extend(tp->duplicate_sack, seq, end_seq);
4180 if (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq &&
4186 u32 end_seq = TCP_SKB_CB(skb)->end_seq;
4188 if (after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt))
4189 end_seq = tp->rcv_nxt;
4190 tcp_dsack_set(sk, TCP_SKB_CB(skb)->seq, end_seq);
4210 if (tcp_sack_extend(sp, swalk->start_seq, swalk->end_seq)) {
4225 static void tcp_sack_new_ofo_skb(struct sock *sk, u32 seq, u32 end_seq)
4236 if (tcp_sack_extend(sp, seq, end_seq)) {
4263 sp->end_seq = end_seq;
4287 WARN_ON(before(tp->rcv_nxt, sp->end_seq));
4316 if (before(TCP_SKB_CB(skb)->end_seq, dsack_high))
4317 dsack_high = TCP_SKB_CB(skb)->end_seq;
4321 if (!after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt)) {
4329 TCP_SKB_CB(skb)->end_seq);
4333 tp->rcv_nxt = TCP_SKB_CB(skb)->end_seq;
4367 if (TCP_SKB_CB(skb)->seq == TCP_SKB_CB(skb)->end_seq)
4413 tp->rcv_nxt = TCP_SKB_CB(skb)->end_seq;
4441 if (!after(TCP_SKB_CB(skb)->end_seq, tp->rcv_nxt)) {
4444 tcp_dsack_set(sk, TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq);
4461 /* Partial packet, seq < rcv_next < end_seq */
4464 TCP_SKB_CB(skb)->end_seq);
4486 tp->rcv_nxt, TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq);
4495 tp->selective_acks[0].end_seq =
4496 TCP_SKB_CB(skb)->end_seq;
4502 u32 end_seq = TCP_SKB_CB(skb)->end_seq;
4504 if (seq == TCP_SKB_CB(skb1)->end_seq) {
4508 tp->selective_acks[0].end_seq != seq)
4512 tp->selective_acks[0].end_seq = end_seq;
4528 if (skb1 && before(seq, TCP_SKB_CB(skb1)->end_seq)) {
4529 if (!after(end_seq, TCP_SKB_CB(skb1)->end_seq)) {
4532 tcp_dsack_set(sk, seq, end_seq);
4538 TCP_SKB_CB(skb1)->end_seq);
4558 if (!after(end_seq, TCP_SKB_CB(skb1)->seq))
4560 if (before(end_seq, TCP_SKB_CB(skb1)->end_seq)) {
4562 end_seq);
4567 TCP_SKB_CB(skb1)->end_seq);
4573 tcp_sack_new_ofo_skb(sk, seq, end_seq);
4617 if (!before(start, TCP_SKB_CB(skb)->end_seq)) {
4639 TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(next)->seq) {
4646 start = TCP_SKB_CB(skb)->end_seq;
4673 TCP_SKB_CB(nskb)->seq = TCP_SKB_CB(nskb)->end_seq = start;
4680 int size = TCP_SKB_CB(skb)->end_seq - start;
4687 TCP_SKB_CB(nskb)->end_seq += size;
4691 if (!before(start, TCP_SKB_CB(skb)->end_seq)) {
4717 end = TCP_SKB_CB(skb)->end_seq;
4731 before(TCP_SKB_CB(skb)->end_seq, start)) {
4739 end = TCP_SKB_CB(skb)->end_seq;
4743 if (after(TCP_SKB_CB(skb)->end_seq, end))
4744 end = TCP_SKB_CB(skb)->end_seq;
5008 if (skb && !before(tp->copied_seq, TCP_SKB_CB(skb)->end_seq)) {
5161 if (!tcp_sequence(tp, TCP_SKB_CB(skb)->seq, TCP_SKB_CB(skb)->end_seq)) {
5340 tp->rcv_nxt = TCP_SKB_CB(skb)->end_seq;
5370 tp->rcv_nxt = TCP_SKB_CB(skb)->end_seq;
5834 (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq &&
5835 after(TCP_SKB_CB(skb)->end_seq - th->fin, tp->rcv_nxt))) {
5895 if (TCP_SKB_CB(skb)->end_seq != TCP_SKB_CB(skb)->seq &&
5896 after(TCP_SKB_CB(skb)->end_seq - th->fin, tp->rcv_nxt)) {