tcp: RFC7413 option support for Fast Open server
Fast Open has been using the experimental option with a magic number (RFC6994) to request and grant Fast Open cookies. This patch enables the server to support the official IANA option 34 in RFC7413 in addition. The change has passed all existing Fast Open tests with both old and new options at Google. Signed-off-by: Daniel Lee <Longinus00@gmail.com> Signed-off-by: Yuchung Cheng <ycheng@google.com> Signed-off-by: Neal Cardwell <ncardwell@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
812034f116
commit
7f9b838b71
@ -179,6 +179,7 @@ void tcp_time_wait(struct sock *sk, int state, int timeo);
|
||||
#define TCPOPT_SACK 5 /* SACK Block */
|
||||
#define TCPOPT_TIMESTAMP 8 /* Better RTT estimations/PAWS */
|
||||
#define TCPOPT_MD5SIG 19 /* MD5 Signature (RFC2385) */
|
||||
#define TCPOPT_FASTOPEN 34 /* Fast open (RFC7413) */
|
||||
#define TCPOPT_EXP 254 /* Experimental */
|
||||
/* Magic number to be after the option value for sharing TCP
|
||||
* experimental options. See draft-ietf-tcpm-experimental-options-00.txt
|
||||
@ -194,6 +195,7 @@ void tcp_time_wait(struct sock *sk, int state, int timeo);
|
||||
#define TCPOLEN_SACK_PERM 2
|
||||
#define TCPOLEN_TIMESTAMP 10
|
||||
#define TCPOLEN_MD5SIG 18
|
||||
#define TCPOLEN_FASTOPEN_BASE 2
|
||||
#define TCPOLEN_EXP_FASTOPEN_BASE 4
|
||||
|
||||
/* But this is what stacks really send out. */
|
||||
|
Reference in New Issue
Block a user