]> 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)
commite76d52d023f2fb6aa9f75bef62ba72ef8e735293
tree14f835fc3953a86d3bc533d8d918f3664f5365c7
parentb9a0211f95b7dc653dabfe8a82a5d0e69fb1bf2a
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: a2115560dd96 ("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