tcp: don't include Fast Open option in SYN-ACK on pure SYN-data
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Neal Cardwell
Acked-byQuoted 5 lines · Yuchung Cheng
If a server has enabled Fast Open and it receives a pure SYN-data packet (without a Fast Open option), it won't accept the data but it incorrectly returns a SYN-ACK with a Fast Open cookie and also increments the SNMP stat
LINUX_MIB_TCPFASTOPENPASSIVEFAIL.
Quoted 8 lines
This patch makes the server include a Fast Open cookie in SYN-ACK only if the SYN has some Fast Open option (i.e., when client requests or presents a cookie).
Signed-off-by Yuchung Cheng <[email protected]>--- net/ipv4/tcp_fastopen.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)
Acked-by Neal Cardwell <[email protected]>
neal