mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-01 15:33:50 +00:00
Fix --mptcp on kernels with mainlined MPTCP.
Mainlined MPTCP on Linux 5.6+ is enabled with IPPROTO_MPTCP rather than setsockopt.
This commit is contained in:
committed by
Max Lv
parent
e21f8248b6
commit
1630764b02
@@ -60,12 +60,14 @@ typedef struct {
|
||||
char *port;
|
||||
} ss_addr_t;
|
||||
|
||||
#ifndef IPPROTO_MPTCP
|
||||
/* 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 };
|
||||
#else
|
||||
static const char mptcp_enabled_values[] = { MPTCP_ENABLED, 0 };
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef UPDATE_INTERVAL
|
||||
#define UPDATE_INTERVAL 5
|
||||
|
||||
Reference in New Issue
Block a user