]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tcp: tcp_synack_options() fix
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 18 May 2010 05:35:36 +0000 (22:35 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:26:25 +0000 (10:26 -0700)
commit405c78fbc09ad80514e75fc76cafc30342a74437
tree55d9b1dd324c1a55a2705d96ea72c4a4f50c576e
parent2d99271ad7754c30d3b1a51a5c010fe325964064
tcp: tcp_synack_options() fix

[ Upstream commit de213e5eedecdfb1b1eea7e6be28bc64cac5c078 ]

Commit 33ad798c924b4a (tcp: options clean up) introduced a problem
if MD5+SACK+timestamps were used in initial SYN message.

Some stacks (old linux for example) try to negotiate MD5+SACK+TSTAMP
sessions, but since 40 bytes of tcp options space are not enough to
store all the bits needed, we chose to disable timestamps in this case.

We send a SYN-ACK _without_ timestamp option, but socket has timestamps
enabled and all further outgoing messages contain a TS block, all with
the initial timestamp of the remote peer.

Fix is to really disable timestamps option for the whole session.

Reported-by: Bijay Singh <Bijay.Singh@guavus.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/tcp_output.c