]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: allow timestamps even if SYN packet has tsval=0
authorEric Dumazet <dada1@cosmosbay.com>
Wed, 11 Mar 2009 16:23:57 +0000 (09:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Mar 2009 16:23:57 +0000 (09:23 -0700)
commit7dfd8540b6f04cf2a82b3dc65030d70e5d21d442
tree6f6f8ef6cd887530f5eb4d083cbaceaa8f0512c8
parent9b3e903aa3602e790ac7b6e57bcf60bb427b749f
tcp: allow timestamps even if SYN packet has tsval=0

Some systems send SYN packets with apparently wrong RFC1323 timestamp
option values [timestamp tsval=0 tsecr=0].
It might be for security reasons (http://www.secuobs.com/plugs/25220.shtml )

Linux TCP stack ignores this option and sends back a SYN+ACK packet
without timestamp option, thus many TCP flows cannot use timestamps
and lose some benefit of RFC1323.

Other operating systems seem to not care about initial tsval value, and let
tcp flows to negotiate timestamp option.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c