-ensure stats queues do not grow too big
[oweals/gnunet.git] / src / testbed / testbed_helper.h
index e510706a807bc4763e4cc3baa2faee68edb59b29..f0c6c04a22c6dbdbe0456cc1d98a43fd93d71ace 100644 (file)
@@ -1,6 +1,6 @@
 /*
       This file is part of GNUnet
-      (C) 2012 Christian Grothoff (and other contributing authors)
+      Copyright (C) 2008--2013 GNUnet e.V.
 
       GNUnet is free software; you can redistribute it and/or modify
       it under the terms of the GNU General Public License as published
@@ -14,8 +14,8 @@
 
       You should have received a copy of the GNU General Public License
       along with GNUnet; see the file COPYING.  If not, write to the
-      Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-      Boston, MA 02111-1307, USA.
+      Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+      Boston, MA 02110-1301, USA.
  */
 
 /**
 #ifndef TESTBED_HELPER_H
 #define TESTBED_HELPER_H
 
+GNUNET_NETWORK_STRUCT_BEGIN
 /**
  * Initialization message for gnunet-helper-testbed to start testbed service
  */
-struct GNUNET_TESTBED_HelperInit
+    struct GNUNET_TESTBED_HelperInit
 {
   /**
    * Type is GNUNET_MESSAGE_TYPE_TESTBED_HELPER_INIT
@@ -42,14 +43,23 @@ struct GNUNET_TESTBED_HelperInit
    * The controller hostname size excluding the NULL termination character -
    * strlen (hostname); cannot be zero
    */
-  uint16_t cname_size GNUNET_PACKED;
+  uint16_t trusted_ip_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
    */
   uint16_t config_size GNUNET_PACKED;
 
-  /* Followed by NULL terminated controller hostname */
+  /* Followed by NULL terminated trusted ip */
+
+  /* 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 +84,6 @@ struct GNUNET_TESTBED_HelperReply
    * un-compressed */
 };
 
+GNUNET_NETWORK_STRUCT_END
 #endif
+/* end of testbed_helper.h */