aboutsummaryrefslogtreecommitdiff
path: root/src/testbed
diff options
context:
space:
mode:
authorxrs <xrs@mail36.net>2020-06-19 22:17:33 +0200
committerxrs <xrs@mail36.net>2020-06-19 22:17:33 +0200
commitbcd310958724db5e13b1f88f9316988c49ddb1b5 (patch)
treefa67d151a77c1b329c99eb6729ec694b552005fe /src/testbed
parent49cf7a8e893eaf7682ac12c7d0ea5ca4a6d1a73d (diff)
downloadgnunet-bcd310958724db5e13b1f88f9316988c49ddb1b5.tar.gz
gnunet-bcd310958724db5e13b1f88f9316988c49ddb1b5.zip
use testbed methods to alter underlaylinkmodel
Diffstat (limited to 'src/testbed')
-rw-r--r--src/testbed/Makefile.am3
-rw-r--r--src/testbed/testbed_api_underlay.c8
2 files changed, 7 insertions, 4 deletions
diff --git a/src/testbed/Makefile.am b/src/testbed/Makefile.am
index 62b49af78..62a8fb640 100644
--- a/src/testbed/Makefile.am
+++ b/src/testbed/Makefile.am
@@ -102,7 +102,8 @@ libgnunettestbed_la_SOURCES = \
102 testbed_api_test.c \ 102 testbed_api_test.c \
103 testbed_api_topology.c testbed_api_topology.h \ 103 testbed_api_topology.c testbed_api_topology.h \
104 testbed_api_sd.c testbed_api_sd.h \ 104 testbed_api_sd.c testbed_api_sd.h \
105 testbed_api_barriers.c 105 testbed_api_barriers.c \
106 testbed_api_underlay.c
106libgnunettestbed_la_LIBADD = $(XLIB) \ 107libgnunettestbed_la_LIBADD = $(XLIB) \
107 $(top_builddir)/src/statistics/libgnunetstatistics.la \ 108 $(top_builddir)/src/statistics/libgnunetstatistics.la \
108 $(top_builddir)/src/transport/libgnunettransport.la \ 109 $(top_builddir)/src/transport/libgnunettransport.la \
diff --git a/src/testbed/testbed_api_underlay.c b/src/testbed/testbed_api_underlay.c
index 7e509fdfe..87c9a5a7c 100644
--- a/src/testbed/testbed_api_underlay.c
+++ b/src/testbed/testbed_api_underlay.c
@@ -24,9 +24,11 @@
24 * @author Sree Harsha Totakura <sreeharsha@totakura.in> 24 * @author Sree Harsha Totakura <sreeharsha@totakura.in>
25 */ 25 */
26 26
27#include "platform.h"
28#include "gnunet_util_lib.h"
29#include "gnunet_testbed_service.h"
27#include "testbed_api_peers.h" 30#include "testbed_api_peers.h"
28 31
29
30/** 32/**
31 * An underlay link 33 * An underlay link
32 */ 34 */
@@ -101,7 +103,7 @@ struct GNUNET_TESTBED_UnderlayLinkModel
101 * the type of this model 103 * the type of this model
102 */ 104 */
103 enum GNUNET_TESTBED_UnderlayLinkModelType type; 105 enum GNUNET_TESTBED_UnderlayLinkModelType type;
104} 106};
105 107
106 108
107/** 109/**
@@ -236,7 +238,7 @@ GNUNET_TESTBED_underlaylinkmodel_free (struct
236 model->peer->underlay_model_exists = 0; 238 model->peer->underlay_model_exists = 0;
237 free_entries (model); 239 free_entries (model);
238 free_link_properties (model); 240 free_link_properties (model);
239 gnunet_free (model); 241 GNUNET_free (model);
240} 242}
241 243
242 244