aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2023-01-06 21:02:55 +0100
committert3sserakt <t3ss@posteo.de>2023-01-06 21:02:55 +0100
commit2c2b2911e1585dc378dbb88d4dd6aaec37b00316 (patch)
tree701cd3a2304a7e1fb74553c78d8a3d2a1cbcc6c2 /src/transport
parentd9f74f1751f0c4e08ddb2ce5f81a8cf8e4dcf1a2 (diff)
downloadgnunet-2c2b2911e1585dc378dbb88d4dd6aaec37b00316.tar.gz
gnunet-2c2b2911e1585dc378dbb88d4dd6aaec37b00316.zip
- relsoved an coverity issue, worked on fixmes, code documentation and cleaned up up the barrier API
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/test_transport_api2_tcp_node1.conf3
-rwxr-xr-xsrc/transport/test_transport_nat_upnp.sh1
-rw-r--r--src/transport/test_transport_plugin_cmd_nat_upnp.c35
-rw-r--r--src/transport/test_transport_plugin_cmd_simple_send.c4
-rw-r--r--src/transport/test_transport_plugin_cmd_simple_send_broadcast.c4
-rw-r--r--src/transport/test_transport_plugin_cmd_simple_send_dv.c4
-rw-r--r--src/transport/test_transport_plugin_cmd_udp_backchannel.c4
-rwxr-xr-xsrc/transport/test_transport_simple_send_dv_circle.sh1
-rw-r--r--src/transport/test_transport_start_with_config.c4
-rw-r--r--src/transport/transport-testing-cmds.h35
-rw-r--r--src/transport/transport_api_cmd_backchannel_check.c4
-rw-r--r--src/transport/transport_api_cmd_connecting_peers.c4
-rw-r--r--src/transport/transport_api_cmd_start_peer.c3
-rw-r--r--src/transport/transport_api_cmd_stop_peer.c2
14 files changed, 67 insertions, 41 deletions
diff --git a/src/transport/test_transport_api2_tcp_node1.conf b/src/transport/test_transport_api2_tcp_node1.conf
index d396f43d7..37b6f08d1 100644
--- a/src/transport/test_transport_api2_tcp_node1.conf
+++ b/src/transport/test_transport_api2_tcp_node1.conf
@@ -8,6 +8,9 @@ PLUGINS = tcp
8#PREFIX = valgrind --leak-check=full --track-origins=yes --trace-children=yes --log-file=$GNUNET_TEST_HOME/vg_peer1-%p 8#PREFIX = valgrind --leak-check=full --track-origins=yes --trace-children=yes --log-file=$GNUNET_TEST_HOME/vg_peer1-%p
9UNIXPATH = $GNUNET_RUNTIME_DIR/tng-p1.sock 9UNIXPATH = $GNUNET_RUNTIME_DIR/tng-p1.sock
10 10
11[PEER]
12PRIVATE_KEY = $GNUNET_RUNTIME_DIR/private.key
13
11[communicator-tcp] 14[communicator-tcp]
12BINARY = gnunet-communicator-tcp 15BINARY = gnunet-communicator-tcp
13BINDTO = 192.168.15.1:60002 16BINDTO = 192.168.15.1:60002
diff --git a/src/transport/test_transport_nat_upnp.sh b/src/transport/test_transport_nat_upnp.sh
index f9dfca71f..df43ef320 100755
--- a/src/transport/test_transport_nat_upnp.sh
+++ b/src/transport/test_transport_nat_upnp.sh
@@ -9,3 +9,4 @@ if [ -f /proc/sys/kernel/unprivileged_userns_clone ]; then
9 fi 9 fi
10fi 10fi
11exec unshare -r -nmU bash -c "mount -t tmpfs --make-rshared tmpfs /run/netns; ./test_transport_start_with_config test_transport_nat_upnp_topo.conf" 11exec unshare -r -nmU bash -c "mount -t tmpfs --make-rshared tmpfs /run/netns; ./test_transport_start_with_config test_transport_nat_upnp_topo.conf"
12#sudo valgrind --vgdb=yes --leak-check=full --track-origins=yes --trace-children=yes --trace-children-skip=/usr/bin/awk,/usr/bin/cut,/usr/bin/seq,/sbin/ip/sed/bash ./test_transport_start_with_config test_transport_nat_upnp_topo.conf
diff --git a/src/transport/test_transport_plugin_cmd_nat_upnp.c b/src/transport/test_transport_plugin_cmd_nat_upnp.c
index 91255a9fe..1b02fbfc2 100644
--- a/src/transport/test_transport_plugin_cmd_nat_upnp.c
+++ b/src/transport/test_transport_plugin_cmd_nat_upnp.c
@@ -146,7 +146,7 @@ handle_result (void *cls,
146 "Local test exits with status %d\n", 146 "Local test exits with status %d\n",
147 rv); 147 rv);
148 148
149 ts->finished_cb (); 149 ts->finished_cb (rv);
150 GNUNET_free (ts->testdir); 150 GNUNET_free (ts->testdir);
151 GNUNET_free (ts->cfgname); 151 GNUNET_free (ts->cfgname);
152 GNUNET_TESTING_free_topology (ts->topology); 152 GNUNET_TESTING_free_topology (ts->topology);
@@ -201,10 +201,17 @@ all_local_tests_prepared ()
201 * 201 *
202 * @param write_message Callback to send a message to the master loop. 202 * @param write_message Callback to send a message to the master loop.
203 * @param router_ip Global address of the network namespace. 203 * @param router_ip Global address of the network namespace.
204 * @param node_ip Local address of a node i a network namespace. 204 * @param node_ip The IP address of the node.
205 * @param m The number of the node in a network namespace. 205 * @param m The number of the node in a network namespace.
206 * @param n The number of the network namespace. 206 * @param n The number of the network namespace.
207 * @param local_m The number of nodes in a network namespace. 207 * @param local_m The number of nodes in a network namespace.
208 * @param topology_data A file name for the file containing the topology configuration, or a string containing
209 * the topology configuration.
210 * @param read_file If read_file is GNUNET_YES this string is the filename for the topology configuration,
211 * if read_file is GNUNET_NO the string contains the topology configuration.
212 * @param finish_cb Callback function which writes a message from the helper process running on a netjail
213 * node to the master process * signaling that the test case running on the netjail node finished.
214 * @return Returns the struct GNUNET_TESTING_Interpreter of the command loop running on this netjail node.
208 */ 215 */
209static struct GNUNET_TESTING_Interpreter * 216static struct GNUNET_TESTING_Interpreter *
210start_testcase (GNUNET_TESTING_cmd_helper_write_cb write_message, 217start_testcase (GNUNET_TESTING_cmd_helper_write_cb write_message,
@@ -321,9 +328,12 @@ start_testcase (GNUNET_TESTING_cmd_helper_write_cb write_message,
321 ts->cfgname, 328 ts->cfgname,
322 notify_connect, 329 notify_connect,
323 GNUNET_NO), 330 GNUNET_NO),
324 GNUNET_TESTING_cmd_barrier_create ("ready-to-connect", 331 GNUNET_TESTING_cmd_barrier_reached ("ready-to-connect-reached",
325 0.0, 332 "ready-to-connect",
326 2), 333 GNUNET_NO,
334 num,
335 GNUNET_NO,
336 write_message),
327 connect_peers, 337 connect_peers,
328 GNUNET_TRANSPORT_cmd_send_simple ("send-simple", 338 GNUNET_TRANSPORT_cmd_send_simple ("send-simple",
329 "start-peer", 339 "start-peer",
@@ -331,9 +341,12 @@ start_testcase (GNUNET_TESTING_cmd_helper_write_cb write_message,
331 num, 341 num,
332 topology), 342 topology),
333 block_receive, 343 block_receive,
334 GNUNET_TESTING_cmd_barrier_create ("test-case-finished", 344 GNUNET_TESTING_cmd_barrier_reached ("test-case-finished-reached",
335 0.0, 345 "test-case-finished",
336 2), 346 GNUNET_NO,
347 num,
348 GNUNET_NO,
349 write_message),
337 GNUNET_TRANSPORT_cmd_stop_peer ("stop-peer", 350 GNUNET_TRANSPORT_cmd_stop_peer ("stop-peer",
338 "start-peer"), 351 "start-peer"),
339 GNUNET_TESTING_cmd_system_destroy ("system-destroy", 352 GNUNET_TESTING_cmd_system_destroy ("system-destroy",
@@ -368,8 +381,6 @@ libgnunet_test_transport_plugin_cmd_nat_upnp_init (void *cls)
368 381
369 api = GNUNET_new (struct GNUNET_TESTING_PluginFunctions); 382 api = GNUNET_new (struct GNUNET_TESTING_PluginFunctions);
370 api->start_testcase = &start_testcase; 383 api->start_testcase = &start_testcase;
371 api->all_peers_started = &all_peers_started;
372 api->all_local_tests_prepared = all_local_tests_prepared;
373 api->get_waiting_for_barriers = get_waiting_for_barriers; 384 api->get_waiting_for_barriers = get_waiting_for_barriers;
374 return api; 385 return api;
375} 386}
@@ -378,11 +389,11 @@ libgnunet_test_transport_plugin_cmd_nat_upnp_init (void *cls)
378/** 389/**
379 * Exit point from the plugin. 390 * Exit point from the plugin.
380 * 391 *
381 * @param cls the return value from #libgnunet_test_transport_plugin_block_test_init 392 * @param cls the return value from #libgnunet_test_transport_plugin_nat_upnp_init
382 * @return NULL 393 * @return NULL
383 */ 394 */
384void * 395void *
385libgnunet_test_transport_plugin_cmd_simple_send_done (void *cls) 396libgnunet_test_transport_plugin_cmd_nat_upnp_done (void *cls)
386{ 397{
387 struct GNUNET_TESTING_PluginFunctions *api = cls; 398 struct GNUNET_TESTING_PluginFunctions *api = cls;
388 399
diff --git a/src/transport/test_transport_plugin_cmd_simple_send.c b/src/transport/test_transport_plugin_cmd_simple_send.c
index 632c522c9..375796dff 100644
--- a/src/transport/test_transport_plugin_cmd_simple_send.c
+++ b/src/transport/test_transport_plugin_cmd_simple_send.c
@@ -130,7 +130,7 @@ handle_result (void *cls,
130 "Local test exits with status %d\n", 130 "Local test exits with status %d\n",
131 rv); 131 rv);
132 132
133 ts->finished_cb (); 133 ts->finished_cb (rv);
134 GNUNET_free (ts->testdir); 134 GNUNET_free (ts->testdir);
135 GNUNET_free (ts->cfgname); 135 GNUNET_free (ts->cfgname);
136 GNUNET_TESTING_free_topology (ts->topology); 136 GNUNET_TESTING_free_topology (ts->topology);
@@ -185,7 +185,7 @@ all_local_tests_prepared ()
185 * 185 *
186 * @param write_message Callback to send a message to the master loop. 186 * @param write_message Callback to send a message to the master loop.
187 * @param router_ip Global address of the network namespace. 187 * @param router_ip Global address of the network namespace.
188 * @param node_ip Local address of a node i a network namespace. 188 * @param node_ip The IP address of the node.
189 * @param m The number of the node in a network namespace. 189 * @param m The number of the node in a network namespace.
190 * @param n The number of the network namespace. 190 * @param n The number of the network namespace.
191 * @param local_m The number of nodes in a network namespace. 191 * @param local_m The number of nodes in a network namespace.
diff --git a/src/transport/test_transport_plugin_cmd_simple_send_broadcast.c b/src/transport/test_transport_plugin_cmd_simple_send_broadcast.c
index 2f84b8213..7381b1d7e 100644
--- a/src/transport/test_transport_plugin_cmd_simple_send_broadcast.c
+++ b/src/transport/test_transport_plugin_cmd_simple_send_broadcast.c
@@ -131,7 +131,7 @@ handle_result (void *cls,
131 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 131 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
132 "Local test exits with status %d\n", 132 "Local test exits with status %d\n",
133 rv); 133 rv);
134 ts->finished_cb (); 134 ts->finished_cb (rv);
135 GNUNET_free (ts->testdir); 135 GNUNET_free (ts->testdir);
136 GNUNET_free (ts->cfgname); 136 GNUNET_free (ts->cfgname);
137 GNUNET_TESTING_free_topology (ts->topology); 137 GNUNET_TESTING_free_topology (ts->topology);
@@ -218,7 +218,7 @@ all_local_tests_prepared ()
218 * 218 *
219 * @param write_message Callback to send a message to the master loop. 219 * @param write_message Callback to send a message to the master loop.
220 * @param router_ip Global address of the network namespace. 220 * @param router_ip Global address of the network namespace.
221 * @param node_ip Local address of a node i a network namespace. 221 * @param node_ip The IP address of the node.
222 * @param m The number of the node in a network namespace. 222 * @param m The number of the node in a network namespace.
223 * @param n The number of the network namespace. 223 * @param n The number of the network namespace.
224 * @param local_m The number of nodes in a network namespace. 224 * @param local_m The number of nodes in a network namespace.
diff --git a/src/transport/test_transport_plugin_cmd_simple_send_dv.c b/src/transport/test_transport_plugin_cmd_simple_send_dv.c
index 4da03d155..55ab4a48f 100644
--- a/src/transport/test_transport_plugin_cmd_simple_send_dv.c
+++ b/src/transport/test_transport_plugin_cmd_simple_send_dv.c
@@ -183,7 +183,7 @@ handle_result (void *cls,
183 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 183 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
184 "Local test exits with status %d\n", 184 "Local test exits with status %d\n",
185 rv); 185 rv);
186 ts->finished_cb (); 186 ts->finished_cb (rv);
187 GNUNET_free (ts->testdir); 187 GNUNET_free (ts->testdir);
188 GNUNET_free (ts->cfgname); 188 GNUNET_free (ts->cfgname);
189 GNUNET_TESTING_free_topology (ts->topology); 189 GNUNET_TESTING_free_topology (ts->topology);
@@ -241,7 +241,7 @@ all_local_tests_prepared ()
241 * 241 *
242 * @param write_message Callback to send a message to the master loop. 242 * @param write_message Callback to send a message to the master loop.
243 * @param router_ip Global address of the network namespace. 243 * @param router_ip Global address of the network namespace.
244 * @param node_ip Local address of a node i a network namespace. 244 * @param node_ip The IP address of the node.
245 * @param m The number of the node in a network namespace. 245 * @param m The number of the node in a network namespace.
246 * @param n The number of the network namespace. 246 * @param n The number of the network namespace.
247 * @param local_m The number of nodes in a network namespace. 247 * @param local_m The number of nodes in a network namespace.
diff --git a/src/transport/test_transport_plugin_cmd_udp_backchannel.c b/src/transport/test_transport_plugin_cmd_udp_backchannel.c
index 7a26a89d8..5e931fbe3 100644
--- a/src/transport/test_transport_plugin_cmd_udp_backchannel.c
+++ b/src/transport/test_transport_plugin_cmd_udp_backchannel.c
@@ -128,7 +128,7 @@ handle_result (void *cls,
128 "Local test exits with status %d\n", 128 "Local test exits with status %d\n",
129 rv); 129 rv);
130 130
131 ts->finished_cb (); 131 ts->finished_cb (rv);
132 GNUNET_free (ts->testdir); 132 GNUNET_free (ts->testdir);
133 GNUNET_free (ts->cfgname); 133 GNUNET_free (ts->cfgname);
134 GNUNET_TESTING_free_topology (ts->topology); 134 GNUNET_TESTING_free_topology (ts->topology);
@@ -178,7 +178,7 @@ all_local_tests_prepared ()
178 * 178 *
179 * @param write_message Callback to send a message to the master loop. 179 * @param write_message Callback to send a message to the master loop.
180 * @param router_ip Global address of the network namespace. 180 * @param router_ip Global address of the network namespace.
181 * @param node_ip Local address of a node i a network namespace. 181 * @param node_ip The IP address of the node.
182 * @param m The number of the node in a network namespace. 182 * @param m The number of the node in a network namespace.
183 * @param n The number of the network namespace. 183 * @param n The number of the network namespace.
184 * @param local_m The number of nodes in a network namespace. 184 * @param local_m The number of nodes in a network namespace.
diff --git a/src/transport/test_transport_simple_send_dv_circle.sh b/src/transport/test_transport_simple_send_dv_circle.sh
index 353d14f65..bd5f00abe 100755
--- a/src/transport/test_transport_simple_send_dv_circle.sh
+++ b/src/transport/test_transport_simple_send_dv_circle.sh
@@ -9,4 +9,3 @@ if [ -f /proc/sys/kernel/unprivileged_userns_clone ]; then
9 fi 9 fi
10fi 10fi
11exec unshare -r -nmU bash -c "mount -t tmpfs --make-rshared tmpfs /run/netns; ./test_transport_start_with_config test_transport_distance_vector_circle_topo.conf" 11exec unshare -r -nmU bash -c "mount -t tmpfs --make-rshared tmpfs /run/netns; ./test_transport_start_with_config test_transport_distance_vector_circle_topo.conf"
12# sudo valgrind --leak-check=full --track-origins=yes --trace-children=yes --trace-children-skip=/usr/bin/awk,/usr/bin/cut,/usr/bin/seq,/sbin/ip/sed/bash ./test_transport_start_with_config test_transport_distance_vector_circle_topo.conf
diff --git a/src/transport/test_transport_start_with_config.c b/src/transport/test_transport_start_with_config.c
index 0c3271436..c4b6c55ad 100644
--- a/src/transport/test_transport_start_with_config.c
+++ b/src/transport/test_transport_start_with_config.c
@@ -94,12 +94,12 @@ main (int argc,
94 GNUNET_TESTING_cmd_netjail_start ("netjail-start", 94 GNUNET_TESTING_cmd_netjail_start ("netjail-start",
95 topology_data_script, 95 topology_data_script,
96 &read_file), 96 &read_file),
97 GNUNET_TESTING_cmd_netjail_start_testing_system ("netjail-start-testbed", 97 GNUNET_TESTING_cmd_netjail_start_cmds_helper ("netjail-start-testbed",
98 topology, 98 topology,
99 &read_file, 99 &read_file,
100 topology_data_script, 100 topology_data_script,
101 TIMEOUT), 101 TIMEOUT),
102 GNUNET_TESTING_cmd_stop_testing_system ("stop-testbed", 102 GNUNET_TESTING_cmd_stop_cmds_helper ("stop-testbed",
103 "netjail-start-testbed", 103 "netjail-start-testbed",
104 topology), 104 topology),
105 GNUNET_TESTING_cmd_netjail_stop ("netjail-stop", 105 GNUNET_TESTING_cmd_netjail_stop ("netjail-stop",
diff --git a/src/transport/transport-testing-cmds.h b/src/transport/transport-testing-cmds.h
index 1088f2e5b..46f6045dc 100644
--- a/src/transport/transport-testing-cmds.h
+++ b/src/transport/transport-testing-cmds.h
@@ -116,7 +116,9 @@ struct StartPeerState
116 */ 116 */
117 struct GNUNET_MQ_MessageHandler *handlers; 117 struct GNUNET_MQ_MessageHandler *handlers;
118 118
119 //FIXME documentation 119 /**
120 * GNUnet configuration file used to start a peer.
121 */
120 char *cfgname; 122 char *cfgname;
121 123
122 /** 124 /**
@@ -124,7 +126,9 @@ struct StartPeerState
124 */ 126 */
125 struct GNUNET_CONFIGURATION_Handle *cfg; 127 struct GNUNET_CONFIGURATION_Handle *cfg;
126 128
127 //FIXME documentation 129 /**
130 * struct GNUNET_TESTING_Peer returned by GNUNET_TESTING_peer_configure.
131 */
128 struct GNUNET_TESTING_Peer *peer; 132 struct GNUNET_TESTING_Peer *peer;
129 133
130 /** 134 /**
@@ -167,13 +171,9 @@ struct StartPeerState
167 */ 171 */
168 size_t hello_size; 172 size_t hello_size;
169 173
170 /** All of the below: FIXME documentation */ 174 /**
171 char *m; 175 * The label of the command which was started by calling GNUNET_TESTING_cmd_system_create.
172 176 */
173 char *n;
174
175 char *local_m;
176
177 char *system_label; 177 char *system_label;
178 178
179 /** 179 /**
@@ -181,10 +181,20 @@ struct StartPeerState
181 */ 181 */
182 unsigned int no; 182 unsigned int no;
183 183
184 /**
185 * A map with struct GNUNET_MQ_Handle values for each peer this peer
186 * is connected to.
187 */
184 struct GNUNET_CONTAINER_MultiShortmap *connected_peers_map; 188 struct GNUNET_CONTAINER_MultiShortmap *connected_peers_map;
185 189
190 /**
191 * Test setup for this peer.
192 */
186 const struct GNUNET_TESTING_System *tl_system; 193 const struct GNUNET_TESTING_System *tl_system;
187 194
195 /**
196 * Callback which is called on neighbour connect events.
197 */
188 GNUNET_TRANSPORT_notify_connect_cb notify_connect; 198 GNUNET_TRANSPORT_notify_connect_cb notify_connect;
189 199
190 /** 200 /**
@@ -227,14 +237,11 @@ struct TestState
227 237
228/** 238/**
229 * Create command. 239 * Create command.
230 * FIXME: Parameter list does not match documentation.
231 * FIXME: m and n parameters need a rename.
232 * 240 *
233 * @param label name for command. 241 * @param label name for command.
234 * @param system_label Label of the cmd to setup a test environment. 242 * @param system_label Label of the cmd to setup a test environment.
235 * @param m The number of the local node of the actual network namespace. 243 * @param no Decimal number representing the last byte of the IP address of this peer.
236 * @param n The number of the actual namespace. 244 * @param node_ip The IP address of this node.
237 * @param local_m Number of local nodes in each namespace.
238 * @param handlers Handler for messages received by this peer. 245 * @param handlers Handler for messages received by this peer.
239 * @param cfgname Configuration file name for this peer. 246 * @param cfgname Configuration file name for this peer.
240 * @param notify_connect Method which will be called, when a peer connects. 247 * @param notify_connect Method which will be called, when a peer connects.
diff --git a/src/transport/transport_api_cmd_backchannel_check.c b/src/transport/transport_api_cmd_backchannel_check.c
index 9f62281a4..d672e3ae8 100644
--- a/src/transport/transport_api_cmd_backchannel_check.c
+++ b/src/transport/transport_api_cmd_backchannel_check.c
@@ -351,12 +351,12 @@ add_search_string (struct CheckState *cs, const struct
351 + cs->topology->nodes_x; 351 + cs->topology->nodes_x;
352 352
353 // num = GNUNET_TESTING_calculate_num (pos_connection, cs->topology); 353 // num = GNUNET_TESTING_calculate_num (pos_connection, cs->topology);
354 peer = GNUNET_TESTING_get_pub_key (num, cs->tl_system); 354 peer = GNUNET_TESTING_get_peer (num, cs->tl_system);
355 LOG (GNUNET_ERROR_TYPE_DEBUG, 355 LOG (GNUNET_ERROR_TYPE_DEBUG,
356 "peer: %s num %u\n", 356 "peer: %s num %u\n",
357 GNUNET_i2s (peer), 357 GNUNET_i2s (peer),
358 num); 358 num);
359 us = GNUNET_TESTING_get_pub_key (cs->num, cs->tl_system); 359 us = GNUNET_TESTING_get_peer (cs->num, cs->tl_system);
360 LOG (GNUNET_ERROR_TYPE_DEBUG, 360 LOG (GNUNET_ERROR_TYPE_DEBUG,
361 "us: %s cs->num %d\n", 361 "us: %s cs->num %d\n",
362 GNUNET_i2s (us), 362 GNUNET_i2s (us),
diff --git a/src/transport/transport_api_cmd_connecting_peers.c b/src/transport/transport_api_cmd_connecting_peers.c
index 528e05b5f..d399e9d0a 100644
--- a/src/transport/transport_api_cmd_connecting_peers.c
+++ b/src/transport/transport_api_cmd_connecting_peers.c
@@ -112,7 +112,7 @@ connect_peers_run (void *cls,
112 GNUNET_asprintf (&addr_and_port, 112 GNUNET_asprintf (&addr_and_port,
113 "%s:60002", 113 "%s:60002",
114 addr); 114 addr);
115 peer = GNUNET_TESTING_get_pub_key (num, tl_system); 115 peer = GNUNET_TESTING_get_peer (num, tl_system);
116 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 116 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
117 "validating peer number %u with identity %s and address %s %u %s\n", 117 "validating peer number %u with identity %s and address %s %u %s\n",
118 num, 118 num,
@@ -160,7 +160,7 @@ notify_connect (struct GNUNET_TESTING_Interpreter *is,
160 pos_connection = pos_connection->next) 160 pos_connection = pos_connection->next)
161 { 161 {
162 num = GNUNET_TESTING_calculate_num (pos_connection, cps->topology); 162 num = GNUNET_TESTING_calculate_num (pos_connection, cps->topology);
163 peer_connection = GNUNET_TESTING_get_pub_key (num, cps->tl_system); 163 peer_connection = GNUNET_TESTING_get_peer (num, cps->tl_system);
164 if (0 == GNUNET_memcmp (peer, 164 if (0 == GNUNET_memcmp (peer,
165 peer_connection)) 165 peer_connection))
166 cps->con_num_notified++; 166 cps->con_num_notified++;
diff --git a/src/transport/transport_api_cmd_start_peer.c b/src/transport/transport_api_cmd_start_peer.c
index 0677b6227..516f8d0aa 100644
--- a/src/transport/transport_api_cmd_start_peer.c
+++ b/src/transport/transport_api_cmd_start_peer.c
@@ -64,6 +64,9 @@ hello_iter_cb (void *cb_cls,
64 memcpy (sps->hello, record->value, sps->hello_size); 64 memcpy (sps->hello, record->value, sps->hello_size);
65 sps->hello[sps->hello_size - 1] = '\0'; 65 sps->hello[sps->hello_size - 1] = '\0';
66 66
67 LOG (GNUNET_ERROR_TYPE_DEBUG,
68 "Our hello %s\n",
69 sps->hello);
67 GNUNET_PEERSTORE_iterate_cancel (sps->pic); 70 GNUNET_PEERSTORE_iterate_cancel (sps->pic);
68 sps->pic = NULL; 71 sps->pic = NULL;
69 GNUNET_TESTING_async_finish (&sps->ac); 72 GNUNET_TESTING_async_finish (&sps->ac);
diff --git a/src/transport/transport_api_cmd_stop_peer.c b/src/transport/transport_api_cmd_stop_peer.c
index 1fdd48fa6..a80742b5f 100644
--- a/src/transport/transport_api_cmd_stop_peer.c
+++ b/src/transport/transport_api_cmd_stop_peer.c
@@ -72,6 +72,8 @@ stop_peer_run (void *cls,
72 } 72 }
73 if (NULL != sps->th) 73 if (NULL != sps->th)
74 { 74 {
75 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
76 "Disconnecting from TRANSPORT service\n");
75 GNUNET_TRANSPORT_core_disconnect (sps->th); 77 GNUNET_TRANSPORT_core_disconnect (sps->th);
76 } 78 }
77 if (NULL != sps->ah) 79 if (NULL != sps->ah)