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 }
Showing the changes to include/uapi (1 of 4 files). Show all
Unified · Split
| @@ -57,6 +57,7 @@ enum { · 56 unmodified lines | ||
| 57 | 57 | MPTCP_PM_ATTR_SUBFLOWS, /* u32 */ |
| 58 | 58 | MPTCP_PM_ATTR_TOKEN, /* u32 */ |
| 59 | 59 | MPTCP_PM_ATTR_LOC_ID, /* u8 */ |
| 60 | + MPTCP_PM_ATTR_ADDR_REMOTE, /* nested address */ | |
| 60 | 61 | |
| 61 | 62 | __MPTCP_PM_ATTR_MAX |
| 62 | 63 | }; |
| @@ -97,6 +98,8 @@ enum { · 34 unmodified lines | ||
| 97 | 98 | MPTCP_PM_CMD_SET_FLAGS, |
| 98 | 99 | MPTCP_PM_CMD_ANNOUNCE, |
| 99 | 100 | MPTCP_PM_CMD_REMOVE, |
| 101 | + MPTCP_PM_CMD_SUBFLOW_CREATE, | |
| 102 | + MPTCP_PM_CMD_SUBFLOW_DESTROY, | |
| 100 | 103 | |
| 101 | 104 | __MPTCP_PM_CMD_AFTER_LAST |
| 102 | 105 | }; |