aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2021-10-11 17:08:46 +0200
committert3sserakt <t3ss@posteo.de>2021-10-11 17:08:46 +0200
commitd190d23831dae1a77075557f2ff6e0c713d747d5 (patch)
tree6b135d2081f3b1ebdef94f1b11f3ac48aaddeaaa /src/transport
parentd7fa0579995790840199ec86cb4d518f9d372fcd (diff)
downloadgnunet-d190d23831dae1a77075557f2ff6e0c713d747d5.tar.gz
gnunet-d190d23831dae1a77075557f2ff6e0c713d747d5.zip
fixed unset port forwarding variable bug in netjail script, fixed end cmd without shutdown bug, smaller fixes
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/test_transport_plugin_cmd_simple_send_v2.c6
-rw-r--r--src/transport/test_transport_simple_send_v2.c8
-rw-r--r--src/transport/transport_api_cmd_backchannel_check.c6
3 files changed, 11 insertions, 9 deletions
diff --git a/src/transport/test_transport_plugin_cmd_simple_send_v2.c b/src/transport/test_transport_plugin_cmd_simple_send_v2.c
index acfe784d6..c308d9a29 100644
--- a/src/transport/test_transport_plugin_cmd_simple_send_v2.c
+++ b/src/transport/test_transport_plugin_cmd_simple_send_v2.c
@@ -85,6 +85,8 @@ static void
85handle_test (void *cls, 85handle_test (void *cls,
86 const struct GNUNET_TRANSPORT_TESTING_TestMessage *message) 86 const struct GNUNET_TRANSPORT_TESTING_TestMessage *message)
87{ 87{
88 LOG (GNUNET_ERROR_TYPE_DEBUG,
89 "Message received\n");
88 message_received = GNUNET_YES; 90 message_received = GNUNET_YES;
89} 91}
90 92
@@ -203,7 +205,7 @@ start_testcase (TESTING_CMD_HELPER_write_cb write_message, char *router_ip,
203 * @return the exported block API 205 * @return the exported block API
204 */ 206 */
205void * 207void *
206libgnunet_test_transport_plugin_cmd_simple_send_init (void *cls) 208libgnunet_test_transport_plugin_cmd_simple_send_v2_init (void *cls)
207{ 209{
208 struct GNUNET_TESTING_PluginFunctions *api; 210 struct GNUNET_TESTING_PluginFunctions *api;
209 211
@@ -221,7 +223,7 @@ libgnunet_test_transport_plugin_cmd_simple_send_init (void *cls)
221 * @return NULL 223 * @return NULL
222 */ 224 */
223void * 225void *
224libgnunet_test_transport_plugin_cmd_simple_send_done (void *cls) 226libgnunet_test_transport_plugin_cmd_simple_send_v2_done (void *cls)
225{ 227{
226 struct GNUNET_TESTING_PluginFunctions *api = cls; 228 struct GNUNET_TESTING_PluginFunctions *api = cls;
227 229
diff --git a/src/transport/test_transport_simple_send_v2.c b/src/transport/test_transport_simple_send_v2.c
index aeac1bfb6..feb65468a 100644
--- a/src/transport/test_transport_simple_send_v2.c
+++ b/src/transport/test_transport_simple_send_v2.c
@@ -47,6 +47,12 @@ static unsigned int rv = 0;
47static void 47static void
48run (void *cls) 48run (void *cls)
49{ 49{
50 struct GNUNET_TESTING_Command cmd = GNUNET_TESTING_cmd_end ();
51
52 if (GNUNET_YES == cmd.shutdown_on_end)
53 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
54 "gaga %p\n",
55 cmd);
50 struct GNUNET_TESTING_Command commands[] = { 56 struct GNUNET_TESTING_Command commands[] = {
51 GNUNET_TESTING_cmd_netjail_start_v2 ("netjail-start", 57 GNUNET_TESTING_cmd_netjail_start_v2 ("netjail-start",
52 TOPOLOGY_CONFIG), 58 TOPOLOGY_CONFIG),
@@ -58,7 +64,7 @@ run (void *cls)
58 TOPOLOGY_CONFIG), 64 TOPOLOGY_CONFIG),
59 GNUNET_TESTING_cmd_netjail_stop_v2 ("netjail-stop", 65 GNUNET_TESTING_cmd_netjail_stop_v2 ("netjail-stop",
60 TOPOLOGY_CONFIG), 66 TOPOLOGY_CONFIG),
61 GNUNET_TESTING_cmd_end () 67 cmd
62 }; 68 };
63 69
64 GNUNET_TESTING_run (NULL, 70 GNUNET_TESTING_run (NULL,
diff --git a/src/transport/transport_api_cmd_backchannel_check.c b/src/transport/transport_api_cmd_backchannel_check.c
index da44e91ca..5cc13dbfa 100644
--- a/src/transport/transport_api_cmd_backchannel_check.c
+++ b/src/transport/transport_api_cmd_backchannel_check.c
@@ -195,12 +195,6 @@ read_from_log (void *cls)
195 strcmp ( 195 strcmp (
196 "Delivering backchannel message from 4TTC to F7B5 of type 1460 to udp", 196 "Delivering backchannel message from 4TTC to F7B5 of type 1460 to udp",
197 cs->search_string[i])); 197 cs->search_string[i]));
198 if (NULL != strstr (line,
199 cs->search_string[i]))
200 {
201 LOG (GNUNET_ERROR_TYPE_DEBUG,
202 "gaga\n");
203 }
204 cs->finished = GNUNET_YES; 198 cs->finished = GNUNET_YES;
205 fclose (cs->stream); 199 fclose (cs->stream);
206 return; 200 return;