Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stream: tcp: Handle retransmitted SYN with TSval
For connections that use TCP timestamps for which the first SYN packet does not reach the server, any replies to retransmitted SYNs will be tropped. This is happening in StateSynSentValidateTimestamp, where the timestamp value in a SYN-ACK packet must match the one from the SYN packet. However, since the server never received the first SYN packet, it will respond with an updated timestamp from any of the following SYN packets. The timestamp value inside suricata is not being updated at any time which should happen. This patch fixes that problem. Bug: OISF#4376. Signed-off-by: Michael Tremer <[email protected]> (cherry picked from commit f50af12)
- Loading branch information