tcp: fix sack block validation on wrap

Type: fix
Fixes: 487507f

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ia9813ae09d14111dc8edac0fa6ab082e13ab6e2e
This commit is contained in:
Florin Coras
2020-05-25 19:15:56 +00:00
parent f5db3711b2
commit 3b9540966f
2 changed files with 29 additions and 1 deletions

View File

@ -326,7 +326,9 @@ tcp_rcv_sacks (tcp_connection_t * tc, u32 ack)
{
if (seq_lt (blk->start, blk->end)
&& seq_gt (blk->start, tc->snd_una)
&& seq_gt (blk->start, ack) && seq_leq (blk->end, tc->snd_nxt))
&& seq_gt (blk->start, ack)
&& seq_lt (blk->start, tc->snd_nxt)
&& seq_leq (blk->end, tc->snd_nxt))
{
blk++;
continue;