selftests: mptcp: support MPTCP_PM_CMD_ANNOUNCE
authorKishen Maloor <kishen.maloor@intel.com>
Wed, 4 May 2022 02:38:53 +0000 (19:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2022 09:49:31 +0000 (10:49 +0100)
commit9a0b36509df07f2e3b24d3ae6f222a4f099e0709
tree9f1201d9b3beb6b1709a982fb43d66228473fd5b
parent9ab4807c84a4aacfc9b4f79cc81254035e0ec361
selftests: mptcp: support MPTCP_PM_CMD_ANNOUNCE

This change updates the "pm_nl_ctl" testing sample with an "ann"
(announce) option to support the newly added netlink interface command
MPTCP_PM_CMD_ANNOUNCE to issue ADD_ADDR advertisements over the
chosen MPTCP connection.

E.g. ./pm_nl_ctl ann 192.168.122.75 token 823274047 id 25 dev enp1s0

Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Kishen Maloor <kishen.maloor@intel.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/mptcp/pm_nl_ctl.c