clique topology
[oweals/gnunet.git] / src / testbed / testbed_helper.h
index e510706a807bc4763e4cc3baa2faee68edb59b29..8a3ea55e0edcd8ab41f45f34c591a365d9e23cdd 100644 (file)
@@ -28,6 +28,8 @@
 #ifndef TESTBED_HELPER_H
 #define TESTBED_HELPER_H
 
+GNUNET_NETWORK_STRUCT_BEGIN
+
 /**
  * Initialization message for gnunet-helper-testbed to start testbed service
  */
@@ -44,6 +46,12 @@ struct GNUNET_TESTBED_HelperInit
    */
   uint16_t cname_size GNUNET_PACKED;
 
+  /**
+   * The hostname size excluding the NULL termination character - strlen
+   * (hostname); cannot be zero
+   */
+  uint16_t hostname_size GNUNET_PACKED;
+
   /**
    * The size of the uncompressed configuration
    */
@@ -51,6 +59,9 @@ struct GNUNET_TESTBED_HelperInit
 
   /* Followed by NULL terminated controller hostname */
 
+  /* Followed by hostname of the machine on which helper runs. This is not NULL
+     terminated */
+
   /* Followed by serialized and compressed configuration which should be
    * config_size long when un-compressed */
 };
@@ -74,4 +85,8 @@ struct GNUNET_TESTBED_HelperReply
    * un-compressed */
 };
 
+GNUNET_NETWORK_STRUCT_END
+
 #endif
+
+/* end of testbed_helper.h */