]> 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)
commit08369a79aad959791244a0b4785e1503446cfcdd
tree14f835fc3953a86d3bc533d8d918f3664f5365c7
parent1b41507eb2733d7132e9af595a354042f67d51ab
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: 50f7005c9332 ("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