History

mptcp: netlink: allow userspace-driven subflow establishment

This allows userspace to tell kernel to add a new subflow to an existing mptcp connection. Userspace provides the token to identify the mptcp-level connection that needs a change in active subflows and the local and remote addresses of the new or the to-be-removed subflow. MPTCP_PM_CMD_SUBFLOW_CREATE requires the following parameters: { token, { loc_id, family, loc_addr4 | loc_addr6 }, { family, rem_addr4 | rem_addr6, rem_port } MPTCP_PM_CMD_SUBFLOW_DESTROY requires the following parameters: { token, { family, loc_addr4 | loc_addr6, loc_port }, { family, rem_addr4 | rem_addr6, rem_port }

Florian Westphal committed 4 years ago

Commit 702c2f61 parent ecd2a774 files · +214 −0Browse files

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

Unified · Split

include/uapi/linux/mptcp.h+3−0
@@ -57,6 +57,7 @@ enum { · 56 unmodified lines
57 MPTCP_PM_ATTR_SUBFLOWS, /* u32 */57 MPTCP_PM_ATTR_SUBFLOWS, /* u32 */
58 MPTCP_PM_ATTR_TOKEN, /* u32 */58 MPTCP_PM_ATTR_TOKEN, /* u32 */
59 MPTCP_PM_ATTR_LOC_ID, /* u8 */59 MPTCP_PM_ATTR_LOC_ID, /* u8 */
60 MPTCP_PM_ATTR_ADDR_REMOTE, /* nested address */
60 61
61 __MPTCP_PM_ATTR_MAX62 __MPTCP_PM_ATTR_MAX
62};63};
@@ -97,6 +98,8 @@ enum { · 34 unmodified lines
97 MPTCP_PM_CMD_SET_FLAGS,98 MPTCP_PM_CMD_SET_FLAGS,
98 MPTCP_PM_CMD_ANNOUNCE,99 MPTCP_PM_CMD_ANNOUNCE,
99 MPTCP_PM_CMD_REMOVE,100 MPTCP_PM_CMD_REMOVE,
101 MPTCP_PM_CMD_SUBFLOW_CREATE,
102 MPTCP_PM_CMD_SUBFLOW_DESTROY,
100 103
101 __MPTCP_PM_CMD_AFTER_LAST104 __MPTCP_PM_CMD_AFTER_LAST
102};105};