]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mptcp: drop sndr_key in mptcp_syn_options
authorGeliang Tang <geliangtang@gmail.com>
Mon, 22 Jun 2020 11:45:58 +0000 (19:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jun 2020 04:06:39 +0000 (21:06 -0700)
In RFC 8684, we don't need to send sndr_key in SYN package anymore, so drop
it.

Fixes: be6fdbacfb2b ("mptcp: parse and emit MP_CAPABLE option according to v1 spec")
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/options.c

index 490b92534afc3c4bd53c4bec02031fbe8585b16a..df9a51425c6fc4769c06fcc0f09dbfa7ef554683 100644 (file)
@@ -336,9 +336,7 @@ bool mptcp_syn_options(struct sock *sk, const struct sk_buff *skb,
         */
        subflow->snd_isn = TCP_SKB_CB(skb)->end_seq;
        if (subflow->request_mptcp) {
-               pr_debug("local_key=%llu", subflow->local_key);
                opts->suboptions = OPTION_MPTCP_MPC_SYN;
-               opts->sndr_key = subflow->local_key;
                *size = TCPOLEN_MPTCP_MPC_SYN;
                return true;
        } else if (subflow->request_join) {