mptcp: add deny_join_id0 in mptcp_options_received
This patch added a new flag named deny_join_id0 in struct mptcp_options_received. Set it when MP_CAPABLE with the flag MPTCP_CAP_DENYJOIN_ID0 is received. Also add a new flag remote_deny_join_id0 in struct mptcp_pm_data. When the flag deny_join_id0 is set, set this remote_deny_join_id0 flag. In mptcp_pm_create_subflow_or_signal_addr, if the remote_deny_join_id0 flag is set, and the remote address id is zero, stop this connection. Suggested-by:Florian Westphal <fw@strlen.de> Acked-by:
Paolo Abeni <pabeni@redhat.com> 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>
Showing
- net/mptcp/options.c 7 additions, 0 deletionsnet/mptcp/options.c
- net/mptcp/pm.c 1 addition, 0 deletionsnet/mptcp/pm.c
- net/mptcp/pm_netlink.c 2 additions, 1 deletionnet/mptcp/pm_netlink.c
- net/mptcp/protocol.h 3 additions, 1 deletionnet/mptcp/protocol.h
- net/mptcp/subflow.c 2 additions, 0 deletionsnet/mptcp/subflow.c
Please register or sign in to comment