]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mptcp: add backup with port testcase
authorGeliang Tang <geliang.tang@suse.com>
Sat, 5 Feb 2022 00:03:31 +0000 (16:03 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 5 Feb 2022 04:30:23 +0000 (20:30 -0800)
commit3d740b37b0cf97542b2bc4f03d47059ad794ded6
tree45f19d6c6b77b232e61edc2719282255177b8ef3
parent0cead45d28f65bb24f3a80e7b58a7232d373244c
selftests: mptcp: add backup with port testcase

This patch added the backup testcase using an address with a port number.

The original backup tests only work for the output of 'pm_nl_ctl dump'
without the port number. It chooses the last item in the dump to parse
the address in it, and in this case, the address is showed at the end
of the item.

But it doesn't work for the dump with the port number, in this case, the
port number is showed at the end of the item, not the address.

So implemented a more flexible approach to get the address and the port
number from the dump to fit for the port number case.

Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/mptcp/mptcp_join.sh