tcp: Allow TCP Fast Open for both incoming & outgoing connections

The proc(RO) "tcp_fastopen" reads the value of "sysctl_tcp_fastopen",
which is set to "TFO_CLIENT_ENABLE" in tcp_fastopen.c

Change-Id: Ie30448d69e148cad5ba12cec800026b20563eb2e
Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live>
This commit is contained in:
Panchajanya1999
2022-01-17 15:12:43 +05:30
committed by DhineshCool
parent 1e591338f7
commit 77f142a912
2 changed files with 2 additions and 2 deletions

View File

@@ -224,7 +224,7 @@ void tcp_time_wait(struct sock *sk, int state, int timeo);
#define TCP_INIT_CWND 10
/* Bit Flags for sysctl_tcp_fastopen */
#define TFO_CLIENT_ENABLE 1
#define TFO_CLIENT_ENABLE 3
#define TFO_SERVER_ENABLE 2
#define TFO_CLIENT_NO_COOKIE 4 /* Data in SYN w/o cookie option */

View File

@@ -318,7 +318,7 @@ static struct ctl_table ipv4_table[] = {
.procname = "tcp_fastopen",
.data = &sysctl_tcp_fastopen,
.maxlen = sizeof(int),
.mode = 0644,
.mode = 0444,
.proc_handler = proc_dointvec,
},
{