Skip to contentSkip to conversation

: Bug in reading Ack Vectors

PATCH In review Arnaldo Carvalho de Melo 1 participant 1 message Nov 25, 2007 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 2/18 : Bug in reading Ack Vectors

From: Gerrit Renker <[email protected]>

In CCID2 the receiver-history is sorted in ascending order of sequence number, but the processing of received Ack Vectors requires the list traversal in the opposite direction.

The current code has a bug in this regard: the list traversal is upwards. As a consequence, only Ack Vectors with a run length of 1 will pass, in all other Ack Vectors the remaining (acked) sequence numbers are missed, and may later falsely be identified as lost.

Note: This bug is only visible when Ack Ratio > 1, since otherwise the run
lengths of Ack Vectors are 0.

---
 net/dccp/ccids/ccid2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/dccp/ccids/ccid2.c +1 -1
index c9c465e..7873dc7 100644
@@ -666,7 +666,7 @@ static void ccid2_hc_tx_packet_recv(struct sock *sk, struct sk_buff *skb)
 					done = 1;
 					break;
 				}
-				seqp = seqp->ccid2s_next;
+				seqp = seqp->ccid2s_prev;
 			}
 			if (done)
 				break;
Signature · 1 line
1.5.3.4