aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api_topology.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2014-01-06 22:44:10 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2014-01-06 22:44:10 +0000
commit4d1b8809fe1df0f2524abc0e65f2f770c88adbdf (patch)
treed0dbf379edcccc966fbacd1044107996594eb77f /src/testbed/testbed_api_topology.c
parent57cba940bf568f0337bfc1a8cffb8542a78e8b1e (diff)
downloadgnunet-4d1b8809fe1df0f2524abc0e65f2f770c88adbdf.tar.gz
gnunet-4d1b8809fe1df0f2524abc0e65f2f770c88adbdf.zip
-fixes
Diffstat (limited to 'src/testbed/testbed_api_topology.c')
-rw-r--r--src/testbed/testbed_api_topology.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testbed/testbed_api_topology.c b/src/testbed/testbed_api_topology.c
index 99ab76f8b..1be614ad6 100644
--- a/src/testbed/testbed_api_topology.c
+++ b/src/testbed/testbed_api_topology.c
@@ -725,6 +725,8 @@ gen_topo_random (struct TopologyContext *tc, unsigned int links, int append)
725 uint32_t A_rand; 725 uint32_t A_rand;
726 uint32_t B_rand; 726 uint32_t B_rand;
727 727
728 if (1 == tc->num_peers)
729 return;
728 if (GNUNET_YES == append) 730 if (GNUNET_YES == append)
729 { 731 {
730 index = tc->link_array_size; 732 index = tc->link_array_size;
@@ -1468,6 +1470,7 @@ GNUNET_TESTBED_underlay_construct_ (int num_peers,
1468 GNUNET_assert (NULL != proc); 1470 GNUNET_assert (NULL != proc);
1469 ret = GNUNET_OK; 1471 ret = GNUNET_OK;
1470 memset (&tc, 0, sizeof (tc)); 1472 memset (&tc, 0, sizeof (tc));
1473 tc.num_peers = num_peers;
1471 tc.type = TOPOLOGYCONTEXT_TYPE_UNDERLAY; 1474 tc.type = TOPOLOGYCONTEXT_TYPE_UNDERLAY;
1472 underlay = &tc.u.underlay; 1475 underlay = &tc.u.underlay;
1473 va_start (vargs, cls); 1476 va_start (vargs, cls);