diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-01-23 10:31:31 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-01-23 10:31:31 +0000 |
commit | fa6b31337f6a83bb14586f7afa0335e559454e9e (patch) | |
tree | eabb95f7a80690084b04bf773b95bf3dc6eb2893 /src/ats-tests/gnunet-ats-sim.c | |
parent | 722f875a3021d076a1068e5a9522afaf54f92282 (diff) | |
download | gnunet-fa6b31337f6a83bb14586f7afa0335e559454e9e.tar.gz gnunet-fa6b31337f6a83bb14586f7afa0335e559454e9e.zip |
traffic generation
Diffstat (limited to 'src/ats-tests/gnunet-ats-sim.c')
-rw-r--r-- | src/ats-tests/gnunet-ats-sim.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ats-tests/gnunet-ats-sim.c b/src/ats-tests/gnunet-ats-sim.c index 993a8a0e4..35320cf8f 100644 --- a/src/ats-tests/gnunet-ats-sim.c +++ b/src/ats-tests/gnunet-ats-sim.c | |||
@@ -37,9 +37,6 @@ | |||
37 | 37 | ||
38 | #define TEST_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10) | 38 | #define TEST_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10) |
39 | 39 | ||
40 | #define TEST_MESSAGE_TYPE_PING 12345 | ||
41 | #define TEST_MESSAGE_TYPE_PONG 1234 | ||
42 | |||
43 | static struct BenchmarkPeer *masters_p; | 40 | static struct BenchmarkPeer *masters_p; |
44 | static struct BenchmarkPeer *slaves_p; | 41 | static struct BenchmarkPeer *slaves_p; |
45 | 42 | ||
@@ -157,7 +154,8 @@ static void topology_setup_done (void *cls, | |||
157 | { | 154 | { |
158 | /* Generate maximum traffic to all peers */ | 155 | /* Generate maximum traffic to all peers */ |
159 | GNUNET_ATS_TEST_generate_traffic_start (&masters[c_m], | 156 | GNUNET_ATS_TEST_generate_traffic_start (&masters[c_m], |
160 | &masters[c_m].partners[c_s], 10000, | 157 | &masters[c_m].partners[c_s], |
158 | 10000, | ||
161 | GNUNET_TIME_UNIT_FOREVER_REL); | 159 | GNUNET_TIME_UNIT_FOREVER_REL); |
162 | } | 160 | } |
163 | } | 161 | } |
@@ -172,7 +170,7 @@ main (int argc, char *argv[]) | |||
172 | c_masters = DEFAULT_NUM_MASTERS; | 170 | c_masters = DEFAULT_NUM_MASTERS; |
173 | 171 | ||
174 | /* Setup a topology with */ | 172 | /* Setup a topology with */ |
175 | GNUNET_ATS_TEST_create_topology ("gnunet-ats-sim", "perf_ats_proportional_none.conf", | 173 | GNUNET_ATS_TEST_create_topology ("gnunet-ats-sim", "gnunet_ats_sim_default.conf", |
176 | c_slaves, | 174 | c_slaves, |
177 | c_masters, | 175 | c_masters, |
178 | GNUNET_NO, | 176 | GNUNET_NO, |