From fa070f0e18c68d10272efdd4b65b038318668e01 Mon Sep 17 00:00:00 2001 From: Davide Caratti Date: Thu, 9 Jan 2020 17:44:33 +0100 Subject: [PATCH] add test for mp_capable v1 (client side) related to: issue #3 Signed-off-by: Davide Caratti --- .../mp_capable/v1_mp_capable_connect_no_cs.pkt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 gtests/net/mptcp/mp_capable/v1_mp_capable_connect_no_cs.pkt diff --git a/gtests/net/mptcp/mp_capable/v1_mp_capable_connect_no_cs.pkt b/gtests/net/mptcp/mp_capable/v1_mp_capable_connect_no_cs.pkt new file mode 100644 index 00000000..62303869 --- /dev/null +++ b/gtests/net/mptcp/mp_capable/v1_mp_capable_connect_no_cs.pkt @@ -0,0 +1,15 @@ +// connect() function, connection initiated by the kernel +`../common/defaults.sh` + +0.0 socket(..., SOCK_STREAM, IPPROTO_MPTCP) = 3 ++0.0 fcntl(3, F_GETFL) = 0x2 (flags O_RDWR) ++0.0 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 + +// Establish connection and verify that there was no error. + ++0.0 connect(3, ..., ...) = -1 EINPROGRESS (Operation now in progress) ++0.0 > S 0:0(0) ++0.0 < S. 0:0(0) ack 1 win 65535 ++0.0 > . 1:1(0) ack 1 win 256 +0.200 getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0 +0.200 fcntl(3, F_SETFL, O_RDWR) = 0 // set back to blocking