tcp: introduce TCP_PAWS_WRAP
authorEric Dumazet <edumazet@google.com>
Fri, 20 Oct 2023 12:57:46 +0000 (12:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Oct 2023 08:35:01 +0000 (09:35 +0100)
commitaf7721448a609d1912b57c825194ef6e17fc71a4
treec202fc0e94d15dcc834e0444c7d53a4cfe4a1f2d
parent3d44de9a10ea2b1658dfaed8ea6d3d7b6e0defbb
tcp: introduce TCP_PAWS_WRAP

tcp_paws_check() uses TCP_PAWS_24DAYS constant to detect if TCP TS
values might have wrapped after a long idle period.

This mechanism is described in RFC 7323 5.5 (Outdated Timestamps)

TCP_PAWS_24DAYS value was based on the assumption of a clock
of 1 Khz.

As we want to adopt a 1 Mhz clock in the future, we reduce
this constant.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h