]> git.ipfire.org Git - thirdparty/iproute2.git/commit
mptcp: add port support for setting flags
authorGeliang Tang <geliang.tang@suse.com>
Wed, 23 Feb 2022 06:50:39 +0000 (14:50 +0800)
committerDavid Ahern <dsahern@kernel.org>
Mon, 28 Feb 2022 01:41:29 +0000 (18:41 -0700)
commitbea92cb07655abdaf6bce72998a6e2be39c0bc69
tree1b2cc75d7d50be562b723ee1afe8ec51d6f7f4c3
parent2dbc6c904170f0c93ae89cba11d5339aba8ff6d6
mptcp: add port support for setting flags

This patch updated the port keyword check for the setting flags, allow
to use the port keyword with the non-signal flags. Don't allow to use
the port keyword with the id number.

With this patch, we can use setting flags in two forms, using the address
and port number directly or the id number of the address:

 ip mptcp endpoint change id 1 fullmesh
 ip mptcp endpoint change 10.0.2.1 fullmesh
 ip mptcp endpoint change 10.0.2.1 port 10100 fullmesh

Acked-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/ipmptcp.c
man/man8/ip-mptcp.8