mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-02 07:53:43 +00:00
Fix the missing TFO flags on Android
This commit is contained in:
@@ -35,6 +35,16 @@
|
||||
#include <netdb.h>
|
||||
#endif
|
||||
|
||||
/* Hard coded defines for TCP fast open on Android */
|
||||
#ifdef __ANDROID__
|
||||
#ifndef TCP_FASTOPEN
|
||||
#define TCP_FASTOPEN 23
|
||||
#endif
|
||||
#ifndef MSG_FASTOPEN
|
||||
#define MSG_FASTOPEN 0x20000000
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* MPTCP_ENABLED setsockopt values for kernel 4 & 3, best behaviour to be independant of kernel version is to test from newest to the latest values */
|
||||
#ifndef MPTCP_ENABLED
|
||||
static const char mptcp_enabled_values[] = { 42, 26, 0 };
|
||||
|
||||
Reference in New Issue
Block a user