net/tcp: ignore a RST control message in syn-send state

Ignore a RST control message in syn-send state

Signed-off-by: wenquan1 <wenquan1@xiaomi.com>
This commit is contained in:
wenquan1
2025-09-04 20:57:29 +08:00
committed by archer
parent 12de7e6dd5
commit b09b5dfc9c
+4
View File
@@ -775,6 +775,10 @@ static void tcp_input(FAR struct net_driver_s *dev, uint8_t domain,
goto reset;
}
}
else if ((tcp->flags & TCP_RST) != 0)
{
goto drop;
}
}
/* RFC793, 1) page 37 Reset Processing: "In all states except