mptcp: add port parameter for mptcp_pm_announce_addr
authorGeliang Tang <geliangtang@gmail.com>
Wed, 9 Dec 2020 23:51:24 +0000 (15:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Dec 2020 03:02:15 +0000 (19:02 -0800)
commit0f5c9e3f079f1d0355fd8f5e5ec7e3ada095eef4
tree3868d18f210e37e4a4d4a824f7e05a407d078ab1
parentfbe0f87ac7710de31f9c37280b08e0d0d43aa6bf
mptcp: add port parameter for mptcp_pm_announce_addr

This patch added a new parameter 'port' for mptcp_pm_announce_addr. If
this parameter is true, we set the MPTCP_ADD_ADDR_PORT bit of the
add_addr_signal. That means the announced address is added with a port
number.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/pm.c
net/mptcp/pm_netlink.c
net/mptcp/protocol.h