]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: tcp_synack_options() fix
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 18 May 2010 05:35:36 +0000 (22:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 May 2010 05:35:36 +0000 (22:35 -0700)
commit9197c005756247b1d809c60cb1ec588e94d0c2fc
treedee5fa7e4874332b65c95dc2e9ee463a5652c519
parent68bb540852d003eef5096db9f517e9b94d7d3e9b
tcp: tcp_synack_options() fix

Commit d3403d6e60b649 (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>
net/ipv4/tcp_output.c