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>
This commit is contained in:

committed by
David S. Miller

parent
77aec5e1c4
commit
f8ace8d915
@@ -54,7 +54,7 @@ struct request_sock {
|
||||
struct request_sock *dl_next;
|
||||
u16 mss;
|
||||
u8 num_retrans; /* number of retransmits */
|
||||
u8 cookie_ts:1; /* syncookie: encode tcpopts in timestamp */
|
||||
u8 syncookie:1; /* syncookie: encode tcpopts in timestamp */
|
||||
u8 num_timeout:7; /* number of timeouts */
|
||||
u32 ts_recent;
|
||||
struct timer_list rsk_timer;
|
||||
|
Reference in New Issue
Block a user