OSDN Git Service

mptcp: emit tcp reset when a join request fails
authorFlorian Westphal <fw@strlen.de>
Mon, 30 Nov 2020 15:36:31 +0000 (16:36 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 3 Dec 2020 20:56:03 +0000 (12:56 -0800)
commit3ecfbe3e820997033beb4181c95d80d5c9ac6f85
treebec485d2c0cb9f248bf75e81ad8c073b3a256b5b
parent7ea851d19b23593d7601ecb8091d529f4f475bf5
mptcp: emit tcp reset when a join request fails

RFC 8684 says:
 If the token is unknown or the host wants to refuse subflow establishment
 (for example, due to a limit on the number of subflows it will permit),
 the receiver will send back a reset (RST) signal, analogous to an unknown
 port in TCP, containing an MP_TCPRST option (Section 3.6) with an
 "MPTCP specific error" reason code.

mptcp-next doesn't support MP_TCPRST yet, this can be added in another
change.

Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/subflow.c