|
@ -26,6 +26,8 @@ |
|
|
// only enable TCP_FASTOPEN on linux |
|
|
// only enable TCP_FASTOPEN on linux |
|
|
#if defined(__linux__) |
|
|
#if defined(__linux__) |
|
|
|
|
|
|
|
|
|
|
|
#include <linux/tcp.h> |
|
|
|
|
|
|
|
|
/* conditional define for TCP_FASTOPEN */ |
|
|
/* conditional define for TCP_FASTOPEN */ |
|
|
#ifndef TCP_FASTOPEN |
|
|
#ifndef TCP_FASTOPEN |
|
|
#define TCP_FASTOPEN 23 |
|
|
#define TCP_FASTOPEN 23 |
|
@ -44,10 +46,9 @@ |
|
|
|
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Define the flag MPTCP_ENABLED if not defined*/ |
|
|
/* Define the flag MPTCP_ENABLED if not defined*/ |
|
|
#ifndef MPTCP_ENABLED |
|
|
#ifndef MPTCP_ENABLED |
|
|
#define MPTCP_ENABLED 26 |
|
|
|
|
|
|
|
|
#define MPTCP_ENABLED 42 |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
/** byte size of ip4 address */ |
|
|
/** byte size of ip4 address */ |
|
|