aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/testing/testing_api_cmd_netjail_start_testsystem.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/testing/testing_api_cmd_netjail_start_testsystem.c b/src/testing/testing_api_cmd_netjail_start_testsystem.c
index 89c193de5..5a005fc25 100644
--- a/src/testing/testing_api_cmd_netjail_start_testsystem.c
+++ b/src/testing/testing_api_cmd_netjail_start_testsystem.c
@@ -370,11 +370,10 @@ helper_mst (void *cls, const struct GNUNET_MessageHeader *message)
370{ 370{
371 // struct TestingSystemCount *tbc = cls; 371 // struct TestingSystemCount *tbc = cls;
372 struct NetJailState *ns = cls; 372 struct NetJailState *ns = cls;
373 struct HelperMessage *hp_msg;
374 unsigned int total_number = ns->local_m * ns->global_n + ns->known; 373 unsigned int total_number = ns->local_m * ns->global_n + ns->known;
375 // uint16_t message_type = ntohs (message->type); 374 uint16_t message_type = ntohs (message->type);
376 375
377 /*switch (message_type) 376 switch (message_type)
378 { 377 {
379 case GNUNET_MESSAGE_TYPE_CMDS_HELPER_REPLY: 378 case GNUNET_MESSAGE_TYPE_CMDS_HELPER_REPLY:
380 ns->number_of_testsystems_started++; 379 ns->number_of_testsystems_started++;
@@ -423,13 +422,10 @@ helper_mst (void *cls, const struct GNUNET_MessageHeader *message)
423 } 422 }
424 break; 423 break;
425 default: 424 default:
426 hp_msg = GNUNET_new (struct HelperMessage); 425 // We received a message we can not handle.
427 hp_msg->bytes_msg = message->size; 426 GNUNET_assert (0);
428 memcpy (&hp_msg[1], message, message->size); 427 }
429 GNUNET_CONTAINER_DLL_insert (ns->hp_messages_head, ns->hp_messages_tail, 428 /*if (GNUNET_MESSAGE_TYPE_CMDS_HELPER_REPLY == ntohs (message->type))
430 hp_msg);
431 }*/
432 if (GNUNET_MESSAGE_TYPE_CMDS_HELPER_REPLY == ntohs (message->type))
433 { 429 {
434 ns->number_of_testsystems_started++; 430 ns->number_of_testsystems_started++;
435 } 431 }
@@ -487,7 +483,7 @@ helper_mst (void *cls, const struct GNUNET_MessageHeader *message)
487 { 483 {
488 // We received a message we can not handle. 484 // We received a message we can not handle.
489 GNUNET_assert (0); 485 GNUNET_assert (0);
490 } 486 }*/
491 487
492 488
493 LOG (GNUNET_ERROR_TYPE_DEBUG, 489 LOG (GNUNET_ERROR_TYPE_DEBUG,
@@ -578,7 +574,6 @@ start_helper (struct NetJailState *ns,
578 struct GNUNET_TESTING_NetjailNamespace *namespace; 574 struct GNUNET_TESTING_NetjailNamespace *namespace;
579 char *data_dir; 575 char *data_dir;
580 char *script_name; 576 char *script_name;
581 char *topology_data;
582 577
583 578
584 if (0 == n) 579 if (0 == n)