2 This file is part of GNUnet.
3 Copyright (C) 2010-2013, 2016 GNUnet e.V.
5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published
7 by the Free Software Foundation; either version 3, or (at your
8 option) any later version.
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
21 * @file ats-tests/ats-testing.c
22 * @brief ats testing library: setup topology
24 * @author Christian Grothoff
25 * @author Matthias Wachs
27 #include "ats-testing.h"
31 * Connect peers with testbed
33 struct TestbedConnectOperation
36 * The benchmarking master initiating this connection
38 struct BenchmarkPeer *master;
41 * The benchmarking slave to connect to
43 struct BenchmarkPeer *slave;
46 * Testbed operation to connect peers
48 struct GNUNET_TESTBED_Operation *connect_op;
51 struct GNUNET_CONFIGURATION_Handle *cfg;
53 struct GNUNET_ATS_TEST_Topology *top;
62 do_shutdown (void *cls)
67 struct BenchmarkPeer *p;
69 top->state.benchmarking = GNUNET_NO;
71 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
72 "Benchmarking done\n");
74 GNUNET_ATS_TEST_generate_traffic_stop_all ();
76 for (c_m = 0; c_m < top->num_masters; c_m++)
79 if (NULL != top->mps[c_m].peer_id_op)
81 GNUNET_TESTBED_operation_done (p->peer_id_op);
85 if (NULL != p->ats_task)
86 GNUNET_SCHEDULER_cancel (p->ats_task);
89 for (c_op = 0; c_op < p->num_partners; c_op++)
91 if (NULL != p->partners[c_op].cth)
93 GNUNET_CORE_notify_transmit_ready_cancel (p->partners[c_op].cth);
94 p->partners[c_op].cth = NULL;
96 if ( (NULL != p->core_connect_ops) &&
97 (NULL != p->core_connect_ops[c_op].connect_op) )
99 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
100 "Failed to connect peer 0 and %u\n",
102 GNUNET_TESTBED_operation_done (p->core_connect_ops[c_op].connect_op);
103 p->core_connect_ops[c_op].connect_op = NULL;
107 if (NULL != p->ats_perf_op)
109 GNUNET_TESTBED_operation_done (p->ats_perf_op);
110 p->ats_perf_op = NULL;
113 if (NULL != p->comm_op)
115 GNUNET_TESTBED_operation_done (p->comm_op);
118 GNUNET_free_non_null (p->core_connect_ops);
119 GNUNET_free(p->partners);
123 for (c_s = 0; c_s < top->num_slaves; c_s++)
126 if (NULL != p->peer_id_op)
128 GNUNET_TESTBED_operation_done (p->peer_id_op);
129 p->peer_id_op = NULL;
132 for (c_op = 0; c_op < p->num_partners; c_op++)
134 if (NULL != p->partners[c_op].cth)
136 GNUNET_CORE_notify_transmit_ready_cancel (p->partners[c_op].cth);
137 p->partners[c_op].cth = NULL;
140 if (NULL != p->ats_perf_op)
142 GNUNET_TESTBED_operation_done (p->ats_perf_op);
143 p->ats_perf_op = NULL;
145 if (NULL != p->comm_op)
147 GNUNET_TESTBED_operation_done (p->comm_op);
150 GNUNET_free(p->partners);
153 GNUNET_SCHEDULER_shutdown ();
159 static struct BenchmarkPartner *
160 find_partner (struct BenchmarkPeer *me,
161 const struct GNUNET_PeerIdentity *peer)
165 for (c_m = 0; c_m < me->num_partners; c_m++)
167 /* Find a partner with other as destination */
168 if (0 == memcmp (peer,
169 &me->partners[c_m].dest->id,
170 sizeof (struct GNUNET_PeerIdentity)))
172 return &me->partners[c_m];
180 static struct BenchmarkPeer *
181 find_peer (const struct GNUNET_PeerIdentity * peer)
185 for (c_p = 0; c_p < top->num_masters; c_p++)
187 if (0 == memcmp (&top->mps[c_p].id,
189 sizeof(struct GNUNET_PeerIdentity)))
190 return &top->mps[c_p];
193 for (c_p = 0; c_p < top->num_slaves; c_p++)
195 if (0 == memcmp (&top->sps[c_p].id,
197 sizeof(struct GNUNET_PeerIdentity)))
198 return &top->sps[c_p];
205 * Method called whenever a given peer connects.
208 * @param peer peer identity this notification is about
209 * @param mq queue to use to send messages to @a peer
210 * @return the `struct BenchmarkPartner` of @a peer
213 comm_connect_cb (void *cls,
214 const struct GNUNET_PeerIdentity *peer,
215 struct GNUNET_MQ_Handle *mq)
217 struct BenchmarkPeer *me = cls;
218 struct BenchmarkPeer *remote;
219 struct BenchmarkPartner *p;
224 remote = find_peer (peer);
227 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
228 "Unknown peer connected: `%s'\n",
234 id = GNUNET_strdup (GNUNET_i2s (&me->id));
235 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
236 "%s [%u] `%s' connected to %s [%u] %s\n",
237 (me->master == GNUNET_YES) ? "Master": "Slave",
240 (remote->master == GNUNET_YES) ? "Master": "Slave",
244 me->core_connections++;
245 if ((GNUNET_YES == me->master) &&
246 (GNUNET_NO == remote->master) &&
247 (GNUNET_NO == top->state.connected_CORE))
249 me->core_slave_connections++;
251 if (me->core_slave_connections == top->num_slaves)
253 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
254 "Master [%u] connected all slaves\n",
257 completed = GNUNET_YES;
258 for (c = 0; c < top->num_masters; c++)
260 if (top->mps[c].core_slave_connections != top->num_slaves)
261 completed = GNUNET_NO;
263 if (GNUNET_YES == completed)
265 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
266 "All master peers connected all slave peers\n");
267 top->state.connected_CORE = GNUNET_YES;
268 /* Notify about setup done */
269 if (NULL != top->done_cb)
270 top->done_cb (top->done_cb_cls,
276 p = find_partner (me,
285 * @param cls this peer
286 * @param peer id of disconnecting peer
287 * @param internal_cls the `struct BenchmarkPartner` of @a peer
290 comm_disconnect_cb (void *cls,
291 const struct GNUNET_PeerIdentity *peer,
294 struct BenchmarkPeer *me = cls;
295 struct BenchmarkPartner *p = internal_cls;
301 id = GNUNET_strdup (GNUNET_i2s (&me->id));
302 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
303 "%s disconnected from %s\n",
306 GNUNET_assert (me->core_connections > 0);
307 me->core_connections--;
309 if ( (GNUNET_YES == top->state.benchmarking) &&
310 ( (GNUNET_YES == me->master) ||
311 (GNUNET_YES == p->dest->master) ) )
313 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
314 "%s disconnected from %s while benchmarking\n",
319 GNUNET_CORE_notify_transmit_ready_cancel (p->cth);
328 handle_pong (void *cls,
329 const struct TestMessage *message)
331 struct BenchmarkPartner *p = cls;
333 GNUNET_ATS_TEST_traffic_handle_pong (p);
338 handle_ping (void *cls,
339 const struct TestMessage *message)
341 struct BenchmarkPartner *p = cls;
343 GNUNET_ATS_TEST_traffic_handle_ping (p);
348 transport_connect_adapter (void *cls,
349 const struct GNUNET_CONFIGURATION_Handle *cfg)
351 GNUNET_MQ_hd_fixed_size (ping,
352 TEST_MESSAGE_TYPE_PING,
354 GNUNET_MQ_hd_fixed_size (pong,
355 TEST_MESSAGE_TYPE_PONG,
357 struct BenchmarkPeer *me = cls;
358 struct GNUNET_MQ_MessageHandler handlers[] = {
359 make_ping_handler (me),
360 make_pong_handler (me),
361 GNUNET_MQ_handler_end ()
364 me->th = GNUNET_TRANSPORT_core_connect (cfg,
372 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
373 "Failed to create transport connection \n");
379 transport_disconnect_adapter (void *cls,
382 struct BenchmarkPeer *me = cls;
384 GNUNET_TRANSPORT_core_disconnect (me->th);
390 core_connect_adapter (void *cls,
391 const struct GNUNET_CONFIGURATION_Handle *cfg)
393 GNUNET_MQ_hd_fixed_size (ping,
394 TEST_MESSAGE_TYPE_PING,
396 GNUNET_MQ_hd_fixed_size (pong,
397 TEST_MESSAGE_TYPE_PONG,
399 struct BenchmarkPeer *me = cls;
400 struct GNUNET_MQ_MessageHandler handlers[] = {
401 make_ping_handler (me),
402 make_pong_handler (me),
403 GNUNET_MQ_handler_end ()
406 me->ch = GNUNET_CORE_connecT (cfg,
413 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
414 "Failed to create core connection \n");
420 core_disconnect_adapter (void *cls,
423 struct BenchmarkPeer *me = cls;
425 GNUNET_CORE_disconnecT (me->ch);
431 connect_completion_callback (void *cls,
432 struct GNUNET_TESTBED_Operation *op,
435 struct TestbedConnectOperation *cop = cls;
440 GNUNET_log(GNUNET_ERROR_TYPE_INFO,
441 _("Connected master [%u] with slave [%u]\n"),
447 GNUNET_log(GNUNET_ERROR_TYPE_ERROR,
448 _("Failed to connect master peer [%u] with slave [%u]\n"),
449 cop->master->no, cop->slave->no);
451 GNUNET_SCHEDULER_shutdown ();
453 GNUNET_TESTBED_operation_done (op);
455 for (c = 0; c < top->num_slaves; c++)
457 if (cop == &cop->master->core_connect_ops[c])
458 cop->master->core_connect_ops[c].connect_op = NULL;
460 if (ops == top->num_masters * top->num_slaves)
462 top->state.connected_PEERS = GNUNET_YES;
468 do_connect_peers (void *cls)
472 struct BenchmarkPeer *p;
474 if ((top->state.connected_ATS_service == GNUNET_NO) ||
475 (top->state.connected_COMM_service == GNUNET_NO))
478 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
479 "Connecting peers on CORE level\n");
480 for (c_m = 0; c_m < top->num_masters; c_m++)
483 p->core_connect_ops = GNUNET_malloc (top->num_slaves *
484 sizeof (struct TestbedConnectOperation));
486 for (c_s = 0; c_s < top->num_slaves; c_s++)
488 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
489 "Connecting master [%u] with slave [%u]\n",
492 p->core_connect_ops[c_s].master = p;
493 p->core_connect_ops[c_s].slave = &top->sps[c_s];
494 p->core_connect_ops[c_s].connect_op
495 = GNUNET_TESTBED_overlay_connect (NULL,
496 &connect_completion_callback,
497 &p->core_connect_ops[c_s],
500 if (NULL == p->core_connect_ops[c_s].connect_op)
502 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
503 "Could not connect master [%u] and slave [%u]\n",
507 GNUNET_SCHEDULER_shutdown ();
516 comm_connect_completion_cb (void *cls,
517 struct GNUNET_TESTBED_Operation *op,
521 static int comm_done = 0;
523 if ((NULL != emsg) || (NULL == ca_result))
525 GNUNET_log(GNUNET_ERROR_TYPE_INFO,
526 "Initialization failed, shutdown\n");
528 GNUNET_SCHEDULER_shutdown ();
533 if (comm_done == top->num_slaves + top->num_masters)
535 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
536 "Connected to all %s services\n",
537 (GNUNET_YES == top->test_core) ? "CORE" : "TRANSPORT");
538 top->state.connected_COMM_service = GNUNET_YES;
539 GNUNET_SCHEDULER_add_now (&do_connect_peers,
546 do_comm_connect (void *cls)
550 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
551 "Connecting to all %s services\n",
552 (GNUNET_YES == top->test_core) ? "CORE" : "TRANSPORT");
553 for (c_m = 0; c_m < top->num_masters; c_m++)
555 if (GNUNET_YES == top->test_core)
556 top->mps[c_m].comm_op
557 = GNUNET_TESTBED_service_connect (NULL,
560 &comm_connect_completion_cb,
562 &core_connect_adapter,
563 &core_disconnect_adapter,
567 top->mps[c_m].comm_op
568 = GNUNET_TESTBED_service_connect (NULL,
571 &comm_connect_completion_cb,
573 &transport_connect_adapter,
574 &transport_disconnect_adapter,
579 for (c_s = 0; c_s < top->num_slaves; c_s++)
581 if (GNUNET_YES == top->test_core)
582 top->sps[c_s].comm_op
583 = GNUNET_TESTBED_service_connect (NULL,
586 &comm_connect_completion_cb,
588 &core_connect_adapter,
589 &core_disconnect_adapter,
593 top->sps[c_s].comm_op
594 = GNUNET_TESTBED_service_connect (NULL,
597 &comm_connect_completion_cb,
599 &transport_connect_adapter,
600 &transport_disconnect_adapter,
608 ats_performance_info_cb (void *cls,
609 const struct GNUNET_HELLO_Address *address,
611 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out,
612 struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in,
613 const struct GNUNET_ATS_Properties *ats_prop)
615 struct BenchmarkPeer *me = cls;
616 struct BenchmarkPartner *p;
622 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
623 "Peer %u: ATS Service disconnected!\n",
628 p = find_partner (me,
632 /* This is not one of my partners
633 * Will happen since the peers will connect to each other due to gossiping
637 peer_id = GNUNET_strdup (GNUNET_i2s (&me->id));
640 if ((p->bandwidth_in != ntohl (bandwidth_in.value__)) ||
641 (p->bandwidth_out != ntohl (bandwidth_out.value__)))
643 p->bandwidth_in = ntohl (bandwidth_in.value__);
644 p->bandwidth_out = ntohl (bandwidth_out.value__);
646 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
647 "%s [%u] received ATS information: %s\n",
648 (GNUNET_YES == p->me->master) ? "Master" : "Slave",
650 GNUNET_i2s (&p->dest->id));
652 p->props.utilization_out = ats_prop->utilization_out;
653 p->props.utilization_in = ats_prop->utilization_in;
654 p->props.scope = ats_prop->scope;
655 p->props.delay = ats_prop->delay;
656 p->props.distance = ats_prop->distance;
658 if (GNUNET_YES == log)
659 top->ats_perf_cb (cls, address,
664 GNUNET_free(peer_id);
669 ats_perf_connect_adapter (void *cls,
670 const struct GNUNET_CONFIGURATION_Handle *cfg)
672 struct BenchmarkPeer *me = cls;
675 = GNUNET_ATS_performance_init (cfg,
676 &ats_performance_info_cb,
678 if (NULL == me->ats_perf_handle)
679 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
680 "Failed to create ATS performance handle \n");
681 return me->ats_perf_handle;
686 ats_perf_disconnect_adapter (void *cls,
689 struct BenchmarkPeer *me = cls;
691 GNUNET_ATS_performance_done (me->ats_perf_handle);
692 me->ats_perf_handle = NULL;
697 ats_connect_completion_cb (void *cls,
698 struct GNUNET_TESTBED_Operation *op,
702 static int op_done = 0;
704 if ((NULL != emsg) || (NULL == ca_result))
706 GNUNET_log(GNUNET_ERROR_TYPE_INFO,
707 "Initialization failed, shutdown\n");
709 GNUNET_SCHEDULER_shutdown ();
713 if (op_done == (top->num_masters + top->num_slaves))
715 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
716 "Connected to all ATS services\n");
717 top->state.connected_ATS_service = GNUNET_YES;
718 GNUNET_SCHEDULER_add_now (&do_comm_connect,
725 do_connect_ats (void *cls)
730 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
731 "Connecting to all ATS services\n");
732 for (c_m = 0; c_m < top->num_masters; c_m++)
734 top->mps[c_m].ats_perf_op
735 = GNUNET_TESTBED_service_connect (NULL,
738 &ats_connect_completion_cb,
740 &ats_perf_connect_adapter,
741 &ats_perf_disconnect_adapter,
745 for (c_s = 0; c_s < top->num_slaves; c_s++)
747 top->sps[c_s].ats_perf_op
748 = GNUNET_TESTBED_service_connect (NULL,
751 &ats_connect_completion_cb,
753 &ats_perf_connect_adapter,
754 &ats_perf_disconnect_adapter,
762 peerinformation_cb (void *cb_cls,
763 struct GNUNET_TESTBED_Operation *op,
764 const struct GNUNET_TESTBED_PeerInformation *pinfo,
767 struct BenchmarkPeer *p = cb_cls;
770 GNUNET_assert(pinfo->pit == GNUNET_TESTBED_PIT_IDENTITY);
772 p->id = *pinfo->result.id;
773 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
774 "%s [%u] has peer id `%s'\n",
775 (p->master == GNUNET_YES) ? "Master" : "Slave",
777 GNUNET_i2s (&p->id));
779 GNUNET_TESTBED_operation_done (op);
780 p->peer_id_op = NULL;
783 if (done == top->num_slaves + top->num_masters)
785 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
786 "Retrieved all peer ID, connect to ATS\n");
787 GNUNET_SCHEDULER_add_now (&do_connect_ats,
794 * Signature of a main function for a testcase.
797 * @param h testbed handle
798 * @param num_peers number of peers in 'peers'
799 * @param peers_ handle to peers run in the testbed
800 * @param links_succeeded the number of overlay link connection attempts that
802 * @param links_failed the number of overlay link connection attempts that
807 struct GNUNET_TESTBED_RunHandle *h,
808 unsigned int num_peers,
809 struct GNUNET_TESTBED_Peer **peers_,
810 unsigned int links_succeeded,
811 unsigned int links_failed)
816 GNUNET_assert (NULL == cls);
817 GNUNET_assert (top->num_masters + top->num_slaves == num_peers);
818 GNUNET_assert (NULL != peers_);
820 GNUNET_SCHEDULER_add_shutdown (&do_shutdown,
823 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
824 "Setting up %u masters and %u slaves\n",
828 /* Setup master peers */
829 for (c_m = 0; c_m < top->num_masters; c_m++)
831 GNUNET_assert(NULL != peers_[c_m]);
832 top->mps[c_m].peer = peers_[c_m];
833 top->mps[c_m].no = c_m;
834 top->mps[c_m].master = GNUNET_YES;
835 top->mps[c_m].pref_partner = &top->sps[c_m];
836 top->mps[c_m].pref_value = TEST_ATS_PREFERENCE_DEFAULT;
837 top->mps[c_m].partners =
838 GNUNET_malloc (top->num_slaves * sizeof (struct BenchmarkPartner));
839 top->mps[c_m].num_partners = top->num_slaves;
840 /* Initialize partners */
841 for (c_s = 0; c_s < top->num_slaves; c_s++)
843 top->mps[c_m].partners[c_s].me = &top->mps[c_m];
844 top->mps[c_m].partners[c_s].dest = &top->sps[c_s];
846 /* Get configuration */
847 top->mps[c_m].peer_id_op
848 = GNUNET_TESTBED_peer_get_information (top->mps[c_m].peer,
849 GNUNET_TESTBED_PIT_IDENTITY,
854 /* Setup slave peers */
855 for (c_s = 0; c_s < top->num_slaves; c_s++)
857 GNUNET_assert(NULL != peers_[c_s + top->num_masters]);
858 top->sps[c_s].peer = peers_[c_s + top->num_masters];
859 top->sps[c_s].no = c_s + top->num_masters;
860 top->sps[c_s].master = GNUNET_NO;
861 top->sps[c_s].partners =
862 GNUNET_new_array (top->num_masters,
863 struct BenchmarkPartner);
864 top->sps[c_s].num_partners = top->num_masters;
865 /* Initialize partners */
866 for (c_m = 0; c_m < top->num_masters; c_m++)
868 top->sps[c_s].partners[c_m].me = &top->sps[c_s];
869 top->sps[c_s].partners[c_m].dest = &top->mps[c_m];
871 /* Initialize properties */
872 top->sps[c_s].partners[c_m].props.delay = GNUNET_TIME_UNIT_ZERO;
873 top->sps[c_s].partners[c_m].props.distance = 0;
874 top->sps[c_s].partners[c_m].props.scope = GNUNET_ATS_NET_UNSPECIFIED;
875 top->sps[c_s].partners[c_m].props.utilization_in = 0;
876 top->sps[c_s].partners[c_m].props.utilization_out = 0;
878 /* Get configuration */
879 top->sps[c_s].peer_id_op
880 = GNUNET_TESTBED_peer_get_information (top->sps[c_s].peer,
881 GNUNET_TESTBED_PIT_IDENTITY,
889 * Controller event callback
892 * @param event the controller event
895 controller_event_cb (void *cls,
896 const struct GNUNET_TESTBED_EventInformation *event)
900 case GNUNET_TESTBED_ET_CONNECT:
902 case GNUNET_TESTBED_ET_OPERATION_FINISHED:
906 GNUNET_SCHEDULER_shutdown ();
911 struct BenchmarkPeer *
912 GNUNET_ATS_TEST_get_peer (int src)
914 if (src > top->num_masters)
916 return &top->mps[src];
920 struct BenchmarkPartner *
921 GNUNET_ATS_TEST_get_partner (int src,
924 if (src > top->num_masters)
926 if (dest > top->num_slaves)
928 return &top->mps[src].partners[dest];
933 * Create a topology for ats testing
935 * @param name test name
936 * @param cfg_file configuration file to use for the peers
937 * @param num_slaves number of slaves
938 * @param num_masters number of masters
939 * @param test_core connect to CORE service (GNUNET_YES) or transport (GNUNET_NO)
940 * @param done_cb function to call when topology is setup
941 * @param done_cb_cls cls for callback
942 * @param log_request_cb callback to call when logging is required
945 GNUNET_ATS_TEST_create_topology (char *name, char *cfg_file,
946 unsigned int num_slaves,
947 unsigned int num_masters,
949 GNUNET_ATS_TEST_TopologySetupDoneCallback done_cb,
951 GNUNET_ATS_AddressInformationCallback log_request_cb)
953 top = GNUNET_new (struct GNUNET_ATS_TEST_Topology);
954 top->num_masters = num_masters;
955 top->num_slaves = num_slaves;
956 top->done_cb = done_cb;
957 top->done_cb_cls = done_cb_cls;
958 top->test_core = test_core;
959 top->ats_perf_cb = log_request_cb;
960 top->mps = GNUNET_new_array (num_masters,
961 struct BenchmarkPeer);
962 top->sps = GNUNET_new_array (num_slaves,
963 struct BenchmarkPeer);
968 event_mask |= (1LL << GNUNET_TESTBED_ET_CONNECT);
969 event_mask |= (1LL << GNUNET_TESTBED_ET_OPERATION_FINISHED);
970 (void) GNUNET_TESTBED_test_run (name,
972 num_slaves + num_masters,
974 &controller_event_cb, NULL,
983 GNUNET_ATS_TEST_shutdown_topology (void)
987 GNUNET_SCHEDULER_shutdown();
991 /* end of file ats-testing.c */