From 32c3ce6fcdbf3e9dfb6a60b0438f05f8b58c2e55 Mon Sep 17 00:00:00 2001
From: hoelscher <jens.hoelscher@fh-muenster.de>
Date: Tue, 22 Sep 2015 00:56:52 +0200
Subject: [PATCH] Modify struct for sctp_info with ellipsis

---
 gtests/net/packetdrill/script.h | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/gtests/net/packetdrill/script.h b/gtests/net/packetdrill/script.h
index 38b458dc..32cdc368 100644
--- a/gtests/net/packetdrill/script.h
+++ b/gtests/net/packetdrill/script.h
@@ -81,7 +81,7 @@ struct expression {
 		struct msghdr_expr *msghdr;
 		struct pollfd_expr *pollfd;
 #ifdef SCTP_RTOINFO
-		struct sctp_rtoinfo sctp_rtoinfo;
+		struct sctp_rtoinfo_expr sctp_rtoinfo;
 #endif
 #ifdef SCTP_INITMSG
 		struct sctp_initmsg sctp_initmsg;
@@ -136,11 +136,19 @@ struct pollfd_expr {
 	struct expression *revents;	/* returned events */
 };
 
-/* Handle the values for socketoption SO_Linger with inputtypes and values*/
+/* Handle values for socketoption SO_Linger with inputtypes and values*/
 struct linger_expr {
 	struct expression *l_onoff;
 	struct expression *l_linger;
 };
+/* Parse tree for syscall get/setsockopt for sctp_rtoinfo*/
+#ifdef SCTP_RTOINFO
+struct sctp_rtoinfo_expr {
+	struct expression *srto_initial;
+	struct expression *srto_max;
+	struct expression *srto_min;
+};
+#endif
 
 /* The errno-related info from strace to summarize a system call error */
 struct errno_spec {
-- 
GitLab