]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: account for ts offset only if tsecr not zero
authorAlexey Kodanev <alexey.kodanev@oracle.com>
Wed, 22 Feb 2017 10:23:56 +0000 (13:23 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Feb 2017 21:35:58 +0000 (16:35 -0500)
commiteee2faabc63d863a129000b698a2bca54dff643d
tree14f835fc3953a86d3bc533d8d918f3664f5365c7
parent00355fa5bb89840c48eb11eb6d84c6c3b128a839
tcp: account for ts offset only if tsecr not zero

We can get SYN with zero tsecr, don't apply offset in this case.

Fixes: ee684b6f2830 ("tcp: send packets with a socket timestamp")
Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_minisocks.c