tcp: handle multiple syns in time-wait 16/41816/2
authorFlorin Coras <[email protected]>
Sun, 10 Nov 2024 20:45:47 +0000 (15:45 -0500)
committerDave Barach <[email protected]>
Mon, 11 Nov 2024 17:58:38 +0000 (17:58 +0000)
commit27a901ece39c371eba0f11806d9fe54b0e8dc95c
treeec1b0f0b6a5eddd1197f785229288843df4180b6
parent3ac40b94ce324df0db6c17add36fc4d82576193a
tcp: handle multiple syns in time-wait

If multiple syns are received in one dispatch for the same time-wait
connection, the first removes the connection while subsequent packets
either lookup a nonexistent or an unrelated connection.

Avoid the former with a check.

Type: fix

Change-Id: Ia5f1b3bbd568566eaf36121206aa12363a15b418
Signed-off-by: Florin Coras <[email protected]>
src/vnet/tcp/tcp_input.c