diff options
author | Geliang Tang <geliangtang@gmail.com> | 2020-12-09 15:51:23 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-12-09 19:02:15 -0800 |
commit | fbe0f87ac7710de31f9c37280b08e0d0d43aa6bf (patch) | |
tree | 320e1f3d46675c9bc42fc5e03abe45cf62933d1b /net/mptcp/pm.c | |
parent | 4a2777a83406cc87edf08b5c71887d896f628525 (diff) | |
download | linux-fbe0f87ac7710de31f9c37280b08e0d0d43aa6bf.tar.gz linux-fbe0f87ac7710de31f9c37280b08e0d0d43aa6bf.tar.bz2 linux-fbe0f87ac7710de31f9c37280b08e0d0d43aa6bf.zip |
mptcp: send out dedicated packet for ADD_ADDR using port
The process is similar to that of the ADD_ADDR IPv6, this patch also sent
out a pure ack for the ADD_ADDR using port.
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>
Diffstat (limited to 'net/mptcp/pm.c')
-rw-r--r-- | net/mptcp/pm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mptcp/pm.c b/net/mptcp/pm.c index 6d4be02681fa..0c456747893e 100644 --- a/net/mptcp/pm.c +++ b/net/mptcp/pm.c @@ -167,7 +167,8 @@ void mptcp_pm_add_addr_received(struct mptcp_sock *msk, void mptcp_pm_add_addr_send_ack(struct mptcp_sock *msk) { - if (!mptcp_pm_should_add_signal_ipv6(msk)) + if (!mptcp_pm_should_add_signal_ipv6(msk) && + !mptcp_pm_should_add_signal_port(msk)) return; mptcp_pm_schedule_work(msk, MPTCP_PM_ADD_ADDR_SEND_ACK); |