From 3fb130cd83aac4956213782f8882dc01a3b68768 Mon Sep 17 00:00:00 2001
From: Michael Tuexen <tuexen@fh-muenster.de>
Date: Fri, 29 May 2015 09:02:06 +0200
Subject: [PATCH] Add a simple test, just the establishment and teardown of an
 association.

---
 .../tests/bsd/sctp/sctp_simple_active.pkt         | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 gtests/net/packetdrill/tests/bsd/sctp/sctp_simple_active.pkt

diff --git a/gtests/net/packetdrill/tests/bsd/sctp/sctp_simple_active.pkt b/gtests/net/packetdrill/tests/bsd/sctp/sctp_simple_active.pkt
new file mode 100644
index 00000000..09e36466
--- /dev/null
+++ b/gtests/net/packetdrill/tests/bsd/sctp/sctp_simple_active.pkt
@@ -0,0 +1,15 @@
++0.0 socket(..., SOCK_STREAM, IPPROTO_SCTP) = 3
++0.0 fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
++0.0 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
+// Check the handshake with an empty(!) cookie
++0.1 connect(3, ..., ...) = -1 EINPROGRESS (Operation now in progress)
++0.0 > sctp: INIT[flgs=0, tag=1, a_rwnd=..., os=..., is=..., tsn=1, ...]
++0.1 < sctp: INIT_ACK[flgs=0, tag=2, a_rwnd=1500, os=1, is=1, tsn=1, STATE_COOKIE[len=4, val=...]]
++0.0 > sctp: COOKIE_ECHO[flgs=0, len=4, val=...]
++0.1 < sctp: COOKIE_ACK[flgs=0]
++0.0 getsockopt(3, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
+// Tear down the association
++0.0 close(3) = 0
++0.0 > sctp: SHUTDOWN[flgs=0, cum_tsn=0]
++0.1 < sctp: SHUTDOWN_ACK[flgs=0]
++0.0 > sctp: SHUTDOWN_COMPLETE[flgs=0]
-- 
GitLab