diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-03-28 16:47:02 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-03-28 16:47:02 +0000 |
commit | 949f21f03df9f08b0a73c3e47a798e63790edf7f (patch) | |
tree | 52f56432e08a0b83cfc155e1af45e1587d32073d /src/nse | |
parent | 8f8e6a5bb1ccbb7d1311332ec1cc3a340bdd621f (diff) | |
download | gnunet-949f21f03df9f08b0a73c3e47a798e63790edf7f.tar.gz gnunet-949f21f03df9f08b0a73c3e47a798e63790edf7f.zip |
provide how many links succeeded and how many failed in test master callback
from GNUNET_TESTBED_run() and GNUNET_TESTBED_test_run() functions
Diffstat (limited to 'src/nse')
-rw-r--r-- | src/nse/gnunet-nse-profiler.c | 8 | ||||
-rw-r--r-- | src/nse/test_nse_multipeer.c | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/src/nse/gnunet-nse-profiler.c b/src/nse/gnunet-nse-profiler.c index 9ed998c84..0ba36749c 100644 --- a/src/nse/gnunet-nse-profiler.c +++ b/src/nse/gnunet-nse-profiler.c | |||
@@ -768,11 +768,17 @@ master_controller_cb (void *cls, | |||
768 | * @param num_peers_ number of peers in 'peers' | 768 | * @param num_peers_ number of peers in 'peers' |
769 | * @param peers handle to peers run in the testbed. NULL upon timeout (see | 769 | * @param peers handle to peers run in the testbed. NULL upon timeout (see |
770 | * GNUNET_TESTBED_test_run()). | 770 | * GNUNET_TESTBED_test_run()). |
771 | * @param links_succeeded the number of overlay link connection attempts that | ||
772 | * succeeded | ||
773 | * @param links_failed the number of overlay link connection attempts that | ||
774 | * failed | ||
771 | */ | 775 | */ |
772 | static void | 776 | static void |
773 | test_master (void *cls, | 777 | test_master (void *cls, |
774 | unsigned int num_peers_, | 778 | unsigned int num_peers_, |
775 | struct GNUNET_TESTBED_Peer **peers) | 779 | struct GNUNET_TESTBED_Peer **peers, |
780 | unsigned int links_succeeded, | ||
781 | unsigned int links_failed) | ||
776 | { | 782 | { |
777 | if (NULL == peers) | 783 | if (NULL == peers) |
778 | { | 784 | { |
diff --git a/src/nse/test_nse_multipeer.c b/src/nse/test_nse_multipeer.c index 2b8c367ce..9ae3a7aac 100644 --- a/src/nse/test_nse_multipeer.c +++ b/src/nse/test_nse_multipeer.c | |||
@@ -181,11 +181,17 @@ nse_disconnect_adapter (void *cls, | |||
181 | * @param cls closure | 181 | * @param cls closure |
182 | * @param num_peers number of peers in 'peers' | 182 | * @param num_peers number of peers in 'peers' |
183 | * @param peers handle to peers run in the testbed | 183 | * @param peers handle to peers run in the testbed |
184 | * @param links_succeeded the number of overlay link connection attempts that | ||
185 | * succeeded | ||
186 | * @param links_failed the number of overlay link connection attempts that | ||
187 | * failed | ||
184 | */ | 188 | */ |
185 | static void | 189 | static void |
186 | run (void *cls, | 190 | run (void *cls, |
187 | unsigned int num_peers, | 191 | unsigned int num_peers, |
188 | struct GNUNET_TESTBED_Peer **peers) | 192 | struct GNUNET_TESTBED_Peer **peers, |
193 | unsigned int links_succeeded, | ||
194 | unsigned int links_failed) | ||
189 | { | 195 | { |
190 | unsigned int i; | 196 | unsigned int i; |
191 | 197 | ||