History

tcp: Define IPPROTO_MPTCP

To open a MPTCP socket with socket(AF_INET, SOCK_STREAM, IPPROTO_MPTCP), IPPROTO_MPTCP needs a value that differs from IPPROTO_TCP. The existing IPPROTO numbers mostly map directly to IANA-specified protocol numbers. MPTCP does not have a protocol number allocated because MPTCP packets use the TCP protocol number. Use private number not used OTA.

Mat Martineau committed 6 years ago

Commit faf391c1 parent bf976513 files · +6 −1Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/in.h+2−0
@@ -76,6 +76,8 @@ enum { · 75 unmodified lines
7676 #define IPPROTO_MPLS IPPROTO_MPLS
7777 IPPROTO_RAW = 255, /* Raw IP packets */
7878 #define IPPROTO_RAW IPPROTO_RAW
79+ IPPROTO_MPTCP = 262, /* Multipath TCP connection */
80+#define IPPROTO_MPTCP IPPROTO_MPTCP
7981 IPPROTO_MAX
8082 };
8183 #endif