aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing_peergroup.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/testing/testing_peergroup.c b/src/testing/testing_peergroup.c
index 0421b000a..0119d6670 100644
--- a/src/testing/testing_peergroup.c
+++ b/src/testing/testing_peergroup.c
@@ -68,14 +68,29 @@ struct PeerGroupStartupContext
68 void *cls; 68 void *cls;
69 69
70 const struct GNUNET_TESTING_Host *hostnames; 70 const struct GNUNET_TESTING_Host *hostnames;
71
72 /**
73 * FIXME document
74 */
71 enum GNUNET_TESTING_Topology topology; 75 enum GNUNET_TESTING_Topology topology;
72 76
73 float topology_percentage; 77 float topology_percentage;
74 78
75 float topology_probability; 79 float topology_probability;
76 80
81 /**
82 * FIXME document
83 */
77 enum GNUNET_TESTING_Topology restrict_topology; 84 enum GNUNET_TESTING_Topology restrict_topology;
85
86 /**
87 * FIXME document
88 */
78 char *restrict_transports; 89 char *restrict_transports;
90
91 /**
92 * Initial connections
93 */
79 enum GNUNET_TESTING_Topology connect_topology; 94 enum GNUNET_TESTING_Topology connect_topology;
80 enum GNUNET_TESTING_TopologyOption connect_topology_option; 95 enum GNUNET_TESTING_TopologyOption connect_topology_option;
81 double connect_topology_option_modifier; 96 double connect_topology_option_modifier;
@@ -297,11 +312,20 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
297 &internal_shutdown_callback, pg_start_ctx); 312 &internal_shutdown_callback, pg_start_ctx);
298 313
299 if (pg_start_ctx->hostkey_meter != NULL) 314 if (pg_start_ctx->hostkey_meter != NULL)
315 {
300 free_meter (pg_start_ctx->hostkey_meter); 316 free_meter (pg_start_ctx->hostkey_meter);
317 pg_start_ctx->hostkey_meter = NULL;
318 }
301 if (pg_start_ctx->peer_start_meter != NULL) 319 if (pg_start_ctx->peer_start_meter != NULL)
320 {
302 free_meter (pg_start_ctx->peer_start_meter); 321 free_meter (pg_start_ctx->peer_start_meter);
322 pg_start_ctx->peer_start_meter = NULL;
323 }
303 if (pg_start_ctx->connect_meter != NULL) 324 if (pg_start_ctx->connect_meter != NULL)
325 {
304 free_meter (pg_start_ctx->connect_meter); 326 free_meter (pg_start_ctx->connect_meter);
327 pg_start_ctx->connect_meter = NULL;
328 }
305} 329}
306 330
307/** 331/**