tcp: rename request_sock cookie_ts bit to syncookie
authorFlorian Westphal <fw@strlen.de>
Thu, 30 Jul 2020 19:25:50 +0000 (21:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Jul 2020 23:55:32 +0000 (16:55 -0700)
commitf8ace8d915b88bd1bbaac695de94650dbb25c7b4
tree84837acec01f6cf7f116e09406c6d3e07991c08e
parent77aec5e1c4935e37c8cbb818a69f2f7d3433ede5
tcp: rename request_sock cookie_ts bit to syncookie

Nowadays output function has a 'synack_type' argument that tells us when
the syn/ack is emitted via syncookies.

The request already tells us when timestamps are supported, so check
both to detect special timestamp for tcp option encoding is needed.

We could remove cookie_ts altogether, but a followup patch would
otherwise need to adjust function signatures to pass 'want_cookie' to
mptcp core.

This way, the 'existing' bit can be used.

Suggested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/crypto/chelsio/chtls/chtls_cm.c
include/net/request_sock.h
net/ipv4/tcp_input.c
net/ipv4/tcp_output.c