diff options
author | Geliang Tang <geliangtang@gmail.com> | 2020-12-10 00:51:23 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-12-10 04:02:15 +0100 |
commit | fbe0f87ac7710de31f9c37280b08e0d0d43aa6bf (patch) | |
tree | 320e1f3d46675c9bc42fc5e03abe45cf62933d1b /net/mptcp/options.c | |
parent | mptcp: add the outgoing ADD_ADDR port support (diff) | |
download | linux-fbe0f87ac7710de31f9c37280b08e0d0d43aa6bf.tar.xz 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/options.c')
-rw-r--r-- | net/mptcp/options.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mptcp/options.c b/net/mptcp/options.c index faae58cc7330..9505b11a6577 100644 --- a/net/mptcp/options.c +++ b/net/mptcp/options.c @@ -590,7 +590,8 @@ static bool mptcp_established_options_add_addr(struct sock *sk, struct sk_buff * bool port; int len; - if (mptcp_pm_should_add_signal_ipv6(msk) && + if ((mptcp_pm_should_add_signal_ipv6(msk) || + mptcp_pm_should_add_signal_port(msk)) && skb && skb_is_tcp_pure_ack(skb)) { pr_debug("drop other suboptions"); opts->suboptions = 0; |