diff options
author | Andrea Claudi <aclaudi@redhat.com> | 2023-05-16 11:48:04 +0200 |
---|---|---|
committer | David Ahern <dsahern@kernel.org> | 2023-05-18 09:37:11 -0600 |
commit | 3a2535a41854d481c1a052e267d1fe5d83f9493c (patch) | |
tree | b1d4d5f274c4fedc2d6ee1c85a3e09441a37eb21 | |
parent | bc42cde0a3327638510b26f31fe5c7ea5e714ff6 (diff) | |
download | iproute2-3a2535a41854d481c1a052e267d1fe5d83f9493c.tar.gz |
mptcp: add support for implicit flag
Kernel supports implicit flag since commit d045b9eb95a9 ("mptcp:
introduce implicit endpoints"), included in v5.18.
Let's add support for displaying it to iproute2.
Before this change:
$ ip mptcp endpoint show
10.0.2.2 id 1 rawflags 10
After this change:
$ ip mptcp endpoint show
10.0.2.2 id 1 implicit
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
-rw-r--r-- | ip/ipmptcp.c | 1 | ||||
-rw-r--r-- | man/man8/ip-mptcp.8 | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/ip/ipmptcp.c b/ip/ipmptcp.c index beba7a41e..9847f95b4 100644 --- a/ip/ipmptcp.c +++ b/ip/ipmptcp.c @@ -58,6 +58,7 @@ static const struct { { "subflow", MPTCP_PM_ADDR_FLAG_SUBFLOW }, { "backup", MPTCP_PM_ADDR_FLAG_BACKUP }, { "fullmesh", MPTCP_PM_ADDR_FLAG_FULLMESH }, + { "implicit", MPTCP_PM_ADDR_FLAG_IMPLICIT }, { "nobackup", MPTCP_PM_ADDR_FLAG_NONE }, { "nofullmesh", MPTCP_PM_ADDR_FLAG_NONE } }; diff --git a/man/man8/ip-mptcp.8 b/man/man8/ip-mptcp.8 index 72762f494..b427065c6 100644 --- a/man/man8/ip-mptcp.8 +++ b/man/man8/ip-mptcp.8 @@ -176,6 +176,15 @@ endpoint. When the peer does announce addresses, each received ADD_ADDR sub-option will trigger creation of an additional subflow to generate a full mesh topology. +.TP +.BR implicit +In some scenarios, an MPTCP +.BR subflow +can use a local address mapped by a implicit endpoint created by the +in-kernel path manager. Once set, the implicit flag cannot be removed, but +other flags can be added to the endpoint. Implicit endpoints cannot be +created from user-space. + .sp .PP The |