default topology bug
authorNathan S. Evans <evans@in.tum.de>
Mon, 25 Jul 2011 10:09:24 +0000 (10:09 +0000)
committerNathan S. Evans <evans@in.tum.de>
Mon, 25 Jul 2011 10:09:24 +0000 (10:09 +0000)
src/testing/testing_group.c
src/testing/testing_peergroup.c

index a48f628c92c516709291e160151d327d34cc9906..4231e450adec6aa560687ba011be8c804f931f30 100644 (file)
@@ -5095,6 +5095,12 @@ stats_check_existing(struct GNUNET_TESTING_PeerGroup *pg,
 /**
  * Iterate over all (running) peers in the peer group, retrieve
  * all statistics from each.
+ *
+ * @param pg the peergroup to iterate statistics of
+ * @param cont continuation to call once all stats have been retrieved
+ * @param proc processing function for each statistic from each peer
+ * @param cls closure to pass to proc
+ *
  */
 void
 GNUNET_TESTING_get_statistics(struct GNUNET_TESTING_PeerGroup *pg,
index 4a1658207e33fe81540b44d4b48206ab475b34dd..fa2173f20033c33c645fbaf22b9fa8a8058e44b7 100644 (file)
@@ -871,6 +871,7 @@ GNUNET_TESTING_peergroup_start(const struct GNUNET_CONFIGURATION_Handle *cfg,
                                                 &pg_start_ctx->restrict_transports))
     pg_start_ctx->restrict_transports = NULL;
 
+  pg_start_ctx->restrict_topology = GNUNET_TESTING_TOPOLOGY_NONE;
   if ((GNUNET_YES
       == GNUNET_CONFIGURATION_get_value_string (cfg, "testing",
                                                 "blacklist_topology",
@@ -882,6 +883,7 @@ GNUNET_TESTING_peergroup_start(const struct GNUNET_CONFIGURATION_Handle *cfg,
                   "Invalid topology `%s' given for section %s option %s\n",
                   temp_str, "TESTING", "BLACKLIST_TOPOLOGY");
     }
+
   GNUNET_free_non_null(temp_str);
 
   pg_start_ctx->cfg = cfg;