From: Yuchung Cheng Date: Mon, 9 Feb 2015 20:35:23 +0000 (-0800) Subject: tcp: don't include Fast Open option in SYN-ACK on pure SYN-data X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~3^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=531c94a9681b8c253fd0490a4ca8bbe01a38c78b;p=pandora-kernel.git tcp: don't include Fast Open option in SYN-ACK on pure SYN-data 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. 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 Acked-by: Neal Cardwell Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed