From b9df537e7180b416659998f9a728abc289706423 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Mon, 20 Dec 2021 16:55:06 +0100 Subject: lib: Set initial sender rwe to sender seqno The initial sender right window edge (indicating acknowledged packet sequence number) was initialized to seqno - 1. This should be the same as seqno, since we acknowledge with the next expected sequence number. It also indicates that a flow without traffic has no outstanding acknowledgements. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/lib/frct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/frct.c b/src/lib/frct.c index 5313e4da..af21ed4d 100644 --- a/src/lib/frct.c +++ b/src/lib/frct.c @@ -684,7 +684,7 @@ static int __frcti_snd(struct frcti * frcti, /* There are no unacknowledged packets. */ assert(snd_cr->seqno == snd_cr->lwe); random_buffer(&snd_cr->seqno, sizeof(snd_cr->seqno)); - snd_cr->lwe = snd_cr->seqno - 1; + snd_cr->lwe = snd_cr->seqno; snd_cr->rwe = snd_cr->lwe + START_WINDOW; } -- cgit v1.2.3