From 426b781edd373c63ddf30c3280101762a0fa38e5 Mon Sep 17 00:00:00 2001 From: Davide Caratti Date: Thu, 9 Jan 2020 14:27:39 +0100 Subject: [PATCH] - add test for mp_capable v1 (server side) - move all v0 tests in a separate folder related to: issue #3 Signed-off-by: Davide Caratti --- .../mptcp/mp_capable/v1_mp_capable_bind_no_cs.pkt | 13 +++++++++++++ .../v0_mp_capable_bind_no_cs.pkt | 0 .../v0_mp_capable_connect_no_cs.pkt | 0 3 files changed, 13 insertions(+) create mode 100644 gtests/net/mptcp/mp_capable/v1_mp_capable_bind_no_cs.pkt rename gtests/net/mptcp/{mp_capable => mp_capable_v0}/v0_mp_capable_bind_no_cs.pkt (100%) rename gtests/net/mptcp/{mp_capable => mp_capable_v0}/v0_mp_capable_connect_no_cs.pkt (100%) diff --git a/gtests/net/mptcp/mp_capable/v1_mp_capable_bind_no_cs.pkt b/gtests/net/mptcp/mp_capable/v1_mp_capable_bind_no_cs.pkt new file mode 100644 index 00000000..1095ef36 --- /dev/null +++ b/gtests/net/mptcp/mp_capable/v1_mp_capable_bind_no_cs.pkt @@ -0,0 +1,13 @@ +// Test mp_capable mptcp option, first syn sent by packetdrill +`../common/defaults.sh` + ++0 socket(..., SOCK_STREAM, IPPROTO_MPTCP) = 3 ++0 setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0 + ++0 bind(3, ..., ...) = 0 ++0 listen(3, 1) = 0 ++0 < S 0:0(0) win 32792 ++0 > S. 0:0(0) ack 1 ++0.01 < . 1:1(0) ack 1 win 257 ++0 accept(3, ..., ...) = 4 + diff --git a/gtests/net/mptcp/mp_capable/v0_mp_capable_bind_no_cs.pkt b/gtests/net/mptcp/mp_capable_v0/v0_mp_capable_bind_no_cs.pkt similarity index 100% rename from gtests/net/mptcp/mp_capable/v0_mp_capable_bind_no_cs.pkt rename to gtests/net/mptcp/mp_capable_v0/v0_mp_capable_bind_no_cs.pkt diff --git a/gtests/net/mptcp/mp_capable/v0_mp_capable_connect_no_cs.pkt b/gtests/net/mptcp/mp_capable_v0/v0_mp_capable_connect_no_cs.pkt similarity index 100% rename from gtests/net/mptcp/mp_capable/v0_mp_capable_connect_no_cs.pkt rename to gtests/net/mptcp/mp_capable_v0/v0_mp_capable_connect_no_cs.pkt