]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
mptcp: add the outgoing ADD_ADDR port support
authorGeliang Tang <geliangtang@gmail.com>
Wed, 9 Dec 2020 23:51:22 +0000 (15:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Dec 2020 03:02:15 +0000 (19:02 -0800)
commit4a2777a83406cc87edf08b5c71887d896f628525
tree9e0e8e3844dbf29f033d42420150cf1810687bad
parent2ec72faec86bc92c573fc3bada8001115670da44
mptcp: add the outgoing ADD_ADDR port support

This patch added a new add_addr_signal type named MPTCP_ADD_ADDR_PORT,
to identify it is an address with port to be added.

It also added a new parameter 'port' for both mptcp_add_addr_len and
mptcp_pm_add_addr_signal.

In mptcp_established_options_add_addr, we check whether the announced
address is added with port. If it is, we put this port number to
mptcp_out_options's port field.

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/options.c
net/mptcp/pm.c
net/mptcp/protocol.h