Add backward compatibility for MPTCP_ENABLED (#1) (#807)

This commit is contained in:
Simon Lelievre
2016-09-07 19:22:58 +08:00
committed by Max Lv
parent a3a51b8414
commit 3d11e59578
+5 -1
View File
@@ -52,9 +52,13 @@
#endif
/* Define the flag MPTCP_ENABLED if not defined*/
/* Backward compatibility for MPTCP_ENABLED between kernel 3 & 4 */
#ifndef MPTCP_ENABLED
#ifdef TCP_CC_INFO
#define MPTCP_ENABLED 42
#else
#define MPTCP_ENABLED 26
#endif
#endif
/** byte size of ip4 address */