OSDN Git Service

mptcp: local addresses fullmesh
authorGeliang Tang <geliangtang@xiaomi.com>
Tue, 17 Aug 2021 22:07:24 +0000 (15:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Aug 2021 09:10:01 +0000 (10:10 +0100)
commit1a0d6136c5f0af62850b0f4a27e75e1ca4bbcdda
tree6a61bdbcad07ac4e7a359d4db695fc6500874a60
parent2843ff6f36db7074e17bf5d637a14da08c54aed8
mptcp: local addresses fullmesh

In mptcp_pm_nl_add_addr_received(), fill a temporary allocate array of
all local address corresponding to the fullmesh endpoint. If such array
is empty, keep the current behavior.

Elsewhere loop on such array and create a subflow for each local address
towards the given remote address

Suggested-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Geliang Tang <geliangtang@xiaomi.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/pm_netlink.c