From ae31c4044f33a31224fcf9d6ddbce1def7e58df9 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Mon, 16 Nov 2020 20:19:57 +0100 Subject: [PATCH] mp_join: add test case with bogus token expect rst, as per rfc: 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, test case will be extended once it does. Signed-off-by: Florian Westphal --- .../mptcp/mp_join/mp_join_server_bad_token.pkt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 gtests/net/mptcp/mp_join/mp_join_server_bad_token.pkt diff --git a/gtests/net/mptcp/mp_join/mp_join_server_bad_token.pkt b/gtests/net/mptcp/mp_join/mp_join_server_bad_token.pkt new file mode 100644 index 00000000..7c6a477d --- /dev/null +++ b/gtests/net/mptcp/mp_join/mp_join_server_bad_token.pkt @@ -0,0 +1,15 @@ +--tolerance_usecs=100000 +`../common/defaults.sh` + ++0 `../common/server.sh` + ++0.0 socket(..., SOCK_STREAM, IPPROTO_MPTCP) = 3 ++0.0 setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 ++0.0 fcntl(3, F_GETFL) = 0x2 (flags O_RDWR) ++0.0 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 + ++0 bind(3, ..., ...) = 0 ++0 listen(3, 1) = 0 + ++0.0 < S 0:0(0) win 65535 ++0.0 > R. 0:0(0) ack 1