aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api_cmd_send_simple_performance.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport_api_cmd_send_simple_performance.c')
-rw-r--r--src/transport/transport_api_cmd_send_simple_performance.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/transport/transport_api_cmd_send_simple_performance.c b/src/transport/transport_api_cmd_send_simple_performance.c
index d7850e007..5fe8d4de8 100644
--- a/src/transport/transport_api_cmd_send_simple_performance.c
+++ b/src/transport/transport_api_cmd_send_simple_performance.c
@@ -80,7 +80,7 @@ struct MQWrapper
80 * State of the command. 80 * State of the command.
81 */ 81 */
82 struct SendSimplePerfState *sss; 82 struct SendSimplePerfState *sss;
83 83
84 /** 84 /**
85 * Message queue for a peer. 85 * Message queue for a peer.
86 */ 86 */
@@ -169,7 +169,7 @@ send_simple_run (void *cls,
169 const struct GNUNET_TESTING_Command *peer1_cmd; 169 const struct GNUNET_TESTING_Command *peer1_cmd;
170 const struct GNUNET_TESTING_Command *system_cmd; 170 const struct GNUNET_TESTING_Command *system_cmd;
171 const struct GNUNET_TESTING_System *tl_system; 171 const struct GNUNET_TESTING_System *tl_system;
172 172
173 173
174 peer1_cmd = GNUNET_TESTING_interpreter_lookup_command (is, 174 peer1_cmd = GNUNET_TESTING_interpreter_lookup_command (is,
175 sss->start_peer_label); 175 sss->start_peer_label);
@@ -190,13 +190,14 @@ send_simple_run (void *cls,
190 190
191struct GNUNET_TESTING_Command 191struct GNUNET_TESTING_Command
192GNUNET_TRANSPORT_cmd_send_simple_performance (const char *label, 192GNUNET_TRANSPORT_cmd_send_simple_performance (const char *label,
193 const char *start_peer_label, 193 const char *start_peer_label,
194 const char *create_label, 194 const char *create_label,
195 uint32_t num, 195 uint32_t num,
196 int size, 196 int size,
197 int max_send, 197 int max_send,
198 struct GNUNET_TESTING_NetjailTopology * 198 struct
199 topology) 199 GNUNET_TESTING_NetjailTopology *
200 topology)
200{ 201{
201 struct SendSimplePerfState *sss; 202 struct SendSimplePerfState *sss;
202 struct GNUNET_TESTING_Command cmd; 203 struct GNUNET_TESTING_Command cmd;
@@ -209,11 +210,11 @@ GNUNET_TRANSPORT_cmd_send_simple_performance (const char *label,
209 sss->max_send = max_send; 210 sss->max_send = max_send;
210 211
211 cmd = GNUNET_TESTING_command_new (sss, 212 cmd = GNUNET_TESTING_command_new (sss,
212 label, 213 label,
213 &send_simple_run, 214 &send_simple_run,
214 &send_simple_cleanup, 215 &send_simple_cleanup,
215 NULL, 216 NULL,
216 &sss->ac); 217 &sss->ac);
217 cmd.asynchronous_finish = GNUNET_YES; 218 cmd.asynchronous_finish = GNUNET_YES;
218 return cmd; 219 return cmd;
219} 220}