diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-01-21 16:40:02 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-01-21 16:40:02 +0000 |
commit | 93439a8d006ca880e16afeaec046b4b228f1e62c (patch) | |
tree | f271e7a5624130590ca55b2f01f6dfddc70691f2 /src/ats-tests/gnunet-ats-sim.c | |
parent | 3f64fee3bd8ad3d97e13082e59f434f34326314d (diff) | |
download | gnunet-93439a8d006ca880e16afeaec046b4b228f1e62c.tar.gz gnunet-93439a8d006ca880e16afeaec046b4b228f1e62c.zip |
fixes for ats measurement
Diffstat (limited to 'src/ats-tests/gnunet-ats-sim.c')
-rw-r--r-- | src/ats-tests/gnunet-ats-sim.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/ats-tests/gnunet-ats-sim.c b/src/ats-tests/gnunet-ats-sim.c index 7a7508503..0b0e9dd7e 100644 --- a/src/ats-tests/gnunet-ats-sim.c +++ b/src/ats-tests/gnunet-ats-sim.c | |||
@@ -62,6 +62,15 @@ transport_recv_cb (void *cls, | |||
62 | 62 | ||
63 | } | 63 | } |
64 | 64 | ||
65 | static void | ||
66 | ats_performance_info_cb (void *cls, const struct GNUNET_HELLO_Address *address, | ||
67 | int address_active, struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, | ||
68 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in, | ||
69 | const struct GNUNET_ATS_Information *ats, uint32_t ats_count) | ||
70 | { | ||
71 | |||
72 | } | ||
73 | |||
65 | static void topology_setup_done (void *cls, | 74 | static void topology_setup_done (void *cls, |
66 | struct BenchmarkPeer *masters, | 75 | struct BenchmarkPeer *masters, |
67 | struct BenchmarkPeer *slaves) | 76 | struct BenchmarkPeer *slaves) |
@@ -88,7 +97,8 @@ main (int argc, char *argv[]) | |||
88 | &topology_setup_done, | 97 | &topology_setup_done, |
89 | NULL, | 98 | NULL, |
90 | handlers, | 99 | handlers, |
91 | &transport_recv_cb); | 100 | &transport_recv_cb, |
101 | &ats_performance_info_cb); | ||
92 | return 0; | 102 | return 0; |
93 | } | 103 | } |
94 | /* end of file perf_ats_topogy.c */ | 104 | /* end of file perf_ats_topogy.c */ |