mirror of
https://github.com/Evolution-X-Devices/kernel_google_b1c1
synced 2026-01-27 17:26:47 +00:00
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:
committed by
DhineshCool
parent
1e591338f7
commit
77f142a912
@@ -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 */
|
||||
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user