]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
mptcp: add support for implicit flag
authorAndrea Claudi <aclaudi@redhat.com>
Tue, 16 May 2023 09:48:04 +0000 (11:48 +0200)
committerDavid Ahern <dsahern@kernel.org>
Thu, 18 May 2023 15:37:11 +0000 (09:37 -0600)
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>
ip/ipmptcp.c
man/man8/ip-mptcp.8

index beba7a41e1a11f5018d2503b0d6c924181579537..9847f95b4a02f71abba56e7d311b9663b732208b 100644 (file)
@@ -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 }
 };
index 72762f49432ef4a4a8bff20c02932cae2831d17b..b427065c65ac9588c5916dfa03a4e406b6f11b2b 100644 (file)
@@ -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