]> git.baikalelectronics.ru Git - 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)
commit872a0a4ffa82d80eb01bb78da0d447a7d677431c
tree9e0e8e3844dbf29f033d42420150cf1810687bad
parent2c8d56cdb183a8ccb67c85f44680d4e4587da605
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