Skip to content

Commit 96939ce

Browse files
matttbekuba-moo
authored andcommitted
mptcp: set remote_deny_join_id0 on SYN recv
When a SYN containing the 'C' flag (deny join id0) was received, this piece of information was not propagated to the path-manager. Even if this flag is mainly set on the server side, a client can also tell the server it cannot try to establish new subflows to the client's initial IP address and port. The server's PM should then record such info when received, and before sending events about the new connection. Fixes: df377be ("mptcp: add deny_join_id0 in mptcp_options_received") Reviewed-by: Mat Martineau <martineau@kernel.org> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Link: https://patch.msgid.link/20250912-net-mptcp-pm-uspace-deny_join_id0-v1-1-40171884ade8@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 33a09c6 commit 96939ce

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

net/mptcp/subflow.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,10 @@ static struct sock *subflow_syn_recv_sock(const struct sock *sk,
883883

884884
ctx->subflow_id = 1;
885885
owner = mptcp_sk(ctx->conn);
886+
887+
if (mp_opt.deny_join_id0)
888+
WRITE_ONCE(owner->pm.remote_deny_join_id0, true);
889+
886890
mptcp_pm_new_connection(owner, child, 1);
887891

888892
/* with OoO packets we can reach here without ingress

0 commit comments

Comments
 (0)