Skip to content

Commit

Permalink
mptcp: backup flag from incoming MPJ ack option
Browse files Browse the repository at this point in the history
the parsed incoming backup flag is not propagated
to the subflow itself, the client may end-up using it
to send data.

Closes: multipath-tcp/mptcp_net-next#191
Signed-off-by: Paolo Abeni <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
  • Loading branch information
Paolo Abeni authored and intel-lab-lkp committed Aug 13, 2021
1 parent 3258394 commit 948d5b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions net/mptcp/subflow.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,10 +435,12 @@ static void subflow_finish_connect(struct sock *sk, const struct sk_buff *skb)
goto do_reset;
}

subflow->backup = mp_opt.backup;
subflow->thmac = mp_opt.thmac;
subflow->remote_nonce = mp_opt.nonce;
pr_debug("subflow=%p, thmac=%llu, remote_nonce=%u", subflow,
subflow->thmac, subflow->remote_nonce);
pr_debug("subflow=%p, thmac=%llu, remote_nonce=%u backup=%d",
subflow, subflow->thmac, subflow->remote_nonce,
subflow->backup);

if (!subflow_thmac_valid(subflow)) {
MPTCP_INC_STATS(sock_net(sk), MPTCP_MIB_JOINACKMAC);
Expand Down

0 comments on commit 948d5b9

Please sign in to comment.