[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 08/08: - using switch statement to identify different helper me
From: |
gnunet |
Subject: |
[gnunet] 08/08: - using switch statement to identify different helper messages |
Date: |
Tue, 09 Nov 2021 19:45:19 +0100 |
This is an automated email from the git hooks/post-receive script.
t3sserakt pushed a commit to branch master
in repository gnunet.
commit a4139ab91765e474915af9d92583d857ef15461a
Author: t3sserakt <t3ss@posteo.de>
AuthorDate: Tue Nov 9 19:43:51 2021 +0100
- using switch statement to identify different helper messages
---
.../testing_api_cmd_netjail_start_testsystem.c | 19 +++++++------------
1 file 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)
{
// struct TestingSystemCount *tbc = cls;
struct NetJailState *ns = cls;
- struct HelperMessage *hp_msg;
unsigned int total_number = ns->local_m * ns->global_n + ns->known;
- // uint16_t message_type = ntohs (message->type);
+ uint16_t message_type = ntohs (message->type);
- /*switch (message_type)
+ switch (message_type)
{
case GNUNET_MESSAGE_TYPE_CMDS_HELPER_REPLY:
ns->number_of_testsystems_started++;
@@ -423,13 +422,10 @@ helper_mst (void *cls, const struct GNUNET_MessageHeader
*message)
}
break;
default:
- hp_msg = GNUNET_new (struct HelperMessage);
- hp_msg->bytes_msg = message->size;
- memcpy (&hp_msg[1], message, message->size);
- GNUNET_CONTAINER_DLL_insert (ns->hp_messages_head, ns->hp_messages_tail,
- hp_msg);
- }*/
- if (GNUNET_MESSAGE_TYPE_CMDS_HELPER_REPLY == ntohs (message->type))
+ // We received a message we can not handle.
+ GNUNET_assert (0);
+ }
+ /*if (GNUNET_MESSAGE_TYPE_CMDS_HELPER_REPLY == ntohs (message->type))
{
ns->number_of_testsystems_started++;
}
@@ -487,7 +483,7 @@ helper_mst (void *cls, const struct GNUNET_MessageHeader
*message)
{
// We received a message we can not handle.
GNUNET_assert (0);
- }
+ }*/
LOG (GNUNET_ERROR_TYPE_DEBUG,
@@ -578,7 +574,6 @@ start_helper (struct NetJailState *ns,
struct GNUNET_TESTING_NetjailNamespace *namespace;
char *data_dir;
char *script_name;
- char *topology_data;
if (0 == n)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet] branch master updated (fab39a608 -> a4139ab91), gnunet, 2021/11/09
- [gnunet] 02/08: fixed unset port forwarding variable bug in netjail script, fixed end cmd without shutdown bug, smaller fixes, gnunet, 2021/11/09
- [gnunet] 03/08: Merge branch 'master' into dev/t3ss/tng, gnunet, 2021/11/09
- [gnunet] 04/08: changes to reflect the changes in testing_api_loop.c, gnunet, 2021/11/09
- [gnunet] 01/08: - add generic topology configuration by file - cmd simple send using file configuration from file - added cmd to check the logs for backchannel encapsulation - added cmd which notifies the master loop of local loop being prepared to finish - added logging to helper.c - moved code from connecting peers cmd into global functions - added parameters given to the connecting peers cmd - added assertion when notifying the transport service about a new queue, if the communicator has no intial capa [...], gnunet, 2021/11/09
- [gnunet] 07/08: Merge branch 'master' into dev/t3ss/tng, gnunet, 2021/11/09
- [gnunet] 08/08: - using switch statement to identify different helper messages,
gnunet <=
- [gnunet] 06/08: - moved global netjail methods to its own header file. - added configuration by string in test skript instead of config file. - moved netjail scripts to contrib/netjail and install them into the share/gnunet directory., gnunet, 2021/11/09
- [gnunet] 05/08: - fixed coverity issues, gnunet, 2021/11/09