* [PATCH 2/6]: Bug in reading Ack Vectors
@ 2007-10-27 11:34 Gerrit Renker
2007-10-27 22:17 ` Ian McDonald
0 siblings, 1 reply; 2+ messages in thread
From: Gerrit Renker @ 2007-10-27 11:34 UTC (permalink / raw)
To: dccp
[CCID2]: Bug in reading Ack Vectors
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.
Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
---
net/dccp/ccids/ccid2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/net/dccp/ccids/ccid2.c
+++ b/net/dccp/ccids/ccid2.c
@@ -666,7 +666,7 @@ static void ccid2_hc_tx_packet_recv(stru
done = 1;
break;
}
- seqp = seqp->ccid2s_next;
+ seqp = seqp->ccid2s_prev;
}
if (done)
break;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2/6]: Bug in reading Ack Vectors
2007-10-27 11:34 [PATCH 2/6]: Bug in reading Ack Vectors Gerrit Renker
@ 2007-10-27 22:17 ` Ian McDonald
0 siblings, 0 replies; 2+ messages in thread
From: Ian McDonald @ 2007-10-27 22:17 UTC (permalink / raw)
To: dccp
On 10/28/07, Gerrit Renker <gerrit@erg.abdn.ac.uk> wrote:
> [CCID2]: Bug in reading Ack Vectors
>
> 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.
>
> Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-27 22:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-27 11:34 [PATCH 2/6]: Bug in reading Ack Vectors Gerrit Renker
2007-10-27 22:17 ` Ian McDonald
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.