triple star fun
authorChristian Grothoff <christian@grothoff.org>
Wed, 12 Sep 2012 10:44:39 +0000 (10:44 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 12 Sep 2012 10:44:39 +0000 (10:44 +0000)
src/include/gnunet_testbed_service.h
src/nse/gnunet-nse-profiler.c
src/stream/stream_protocol.h
src/testbed/testbed_api_hosts.c

index a784ed6411a2875a2320d0a1acbaf149fca0e020..966705bc638b65173794ced673ab9ec851af8c5a 100644 (file)
@@ -114,12 +114,11 @@ GNUNET_TESTBED_host_create_with_id (uint32_t id,
  *
  * @param filename file with the host specification
  * @param hosts set to the hosts found in the file
- *        FIXME: we need "***" here!
  * @return number of hosts returned in 'hosts', 0 on error
  */
 unsigned int
 GNUNET_TESTBED_hosts_load_from_file (const char *filename,
-                                    struct GNUNET_TESTBED_Host **hosts);
+                                    struct GNUNET_TESTBED_Host ***hosts);
 
 
 /**
index ca9ec85f43ab53bd2412841415880bece9826258..7bab5121c54eb67899d1adf6d3f77550c2db72a2 100644 (file)
@@ -232,7 +232,7 @@ static char *topology_file;
 /**
  * List of hosts we use for the testbed.
  */
-static struct GNUNET_TESTBED_Host **hosts;
+static struct GNUNET_TESTBED_Host *hosts;
 
 /**
  * Size of the 'hosts' array.
@@ -893,7 +893,7 @@ controller_start_cb (void *cls,
       return;
     }
   num_hosts = GNUNET_TESTBED_hosts_load_from_file (hosts_file,
-                                                  /* FIXME: & */ hosts);
+                                                  &hosts);
   if (0 == num_hosts)
     {
       fprintf (stderr,
index 04b1ef1eeb303c1fd147dda839a68f46d260d115..ca14d16ed9b9e617f6a5e4aea4cd2d2d0a256816 100644 (file)
@@ -114,18 +114,18 @@ struct GNUNET_STREAM_AckMessage
    */
   struct GNUNET_STREAM_MessageHeader header;
 
-  /**
-   * The Selective Acknowledgement Bitmap. Computed relative to the base_seq
-   * (bit n corresponds to the Data message with sequence number base_seq+n)
-   */
-  GNUNET_STREAM_AckBitmap bitmap GNUNET_PACKED;
-
   /**
    * The sequence number of the next Data Message receiver is
    * anticipating. Data messages less than this number are received by receiver
    */
   uint32_t base_sequence_number GNUNET_PACKED;
 
+  /**
+   * The Selective Acknowledgement Bitmap. Computed relative to the base_seq
+   * (bit n corresponds to the Data message with sequence number base_seq+n)
+   */
+  GNUNET_STREAM_AckBitmap bitmap GNUNET_PACKED;
+
   /**
    * Available buffer space past the last acknowledged buffer (for flow control),
    * in bytes.
@@ -161,6 +161,7 @@ struct GNUNET_STREAM_HelloAckMessage
 
 /**
  * The Transmit close message(used to signal transmission is closed)
+ * FIXME: dead struct?
  */
 struct GNUNET_STREAM_TransmitCloseMessage
 {
index 20e60126508377cb5b056ee9fc8aabba7849f9f0..cbbc9fdee3fc1135f5817d8f674e0e65d84ed62b 100644 (file)
@@ -293,8 +293,17 @@ GNUNET_TESTBED_host_create (const char *hostname, const char *username,
  */
 unsigned int
 GNUNET_TESTBED_hosts_load_from_file (const char *filename,
-                                     struct GNUNET_TESTBED_Host **hosts)
+                                     struct GNUNET_TESTBED_Host ***hosts)
 {
+#if 0
+  struct GNUNET_TESTBED_Host **host_array;
+
+  host_array = GNUNET_malloc (num_hosts * sizeof (struct GNUNET_TESTBED_Host *));
+  host_array[foo] = GNUNET_TESTBED_host_create (...);
+  *hosts = host_array;
+
+  return num_hosts;
+#endif  
   // see testing_group.c, GNUNET_TESTING_hosts_load
   GNUNET_break (0);
   return 0;