diff options
author | Geliang Tang <[email protected]> | 2022-02-04 16:03:33 -0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-02-04 20:30:24 -0800 |
commit | dda61b3dbea09b3c6d84f3c3f5e39b2e19a329dc (patch) | |
tree | 2f911e345ed7da89ef728c4d15ed1fb13a09922f /lib/mpi/mpi-add.c | |
parent | 34aa6e3bccd8620ca07f47b52dfd144c2418690a (diff) |
selftests: mptcp: add wrapper for showing addrs
This patch implemented a new function named pm_nl_show_endpoints(), wrapped
the PM netlink commands 'ip mptcp endpoint show' and 'pm_nl_ctl dump' in
it, used a new argument 'ip_mptcp' to choose which one to use to show all
the PM endpoints.
Used this wrapper in do_transfer() instead of using the pm_nl_ctl commands
directly.
The original 'pos+=5' in the remoing tests only works for the output of
'pm_nl_ctl show':
id 1 flags subflow 10.0.1.1
It doesn't work for the output of 'ip mptcp endpoint show':
10.0.1.1 id 1 subflow
So implemented a more flexible approach to get the address ID from the PM
dump output to fit for both commands.
Signed-off-by: Geliang Tang <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions