diff options
Diffstat (limited to 'src/testbed')
27 files changed, 62 insertions, 62 deletions
diff --git a/src/testbed/generate-underlay-topology.c b/src/testbed/generate-underlay-topology.c index 97c3c1e67..b7bd8fce9 100644 --- a/src/testbed/generate-underlay-topology.c +++ b/src/testbed/generate-underlay-topology.c | |||
@@ -306,7 +306,7 @@ run (void *cls, | |||
306 | default: | 306 | default: |
307 | break; | 307 | break; |
308 | } | 308 | } |
309 | /* contruct topologies */ | 309 | /* construct topologies */ |
310 | switch (topology) | 310 | switch (topology) |
311 | { | 311 | { |
312 | case GNUNET_TESTBED_TOPOLOGY_LINE: | 312 | case GNUNET_TESTBED_TOPOLOGY_LINE: |
@@ -393,7 +393,7 @@ main (int argc, char *const argv[]) | |||
393 | "\t cap: the maximum number of links a node can have\n" | 393 | "\t cap: the maximum number of links a node can have\n" |
394 | "\t m: the number of links a node should have while joining the network\n" | 394 | "\t m: the number of links a node should have while joining the network\n" |
395 | "\t filename: the path of the file which contains topology information\n" | 395 | "\t filename: the path of the file which contains topology information\n" |
396 | "NOTE: the format of the above file is descibed here: https://www.gnunet.org/content/topology-file-format\n"), | 396 | "NOTE: the format of the above file is described here: https://www.gnunet.org/content/topology-file-format\n"), |
397 | option, | 397 | option, |
398 | &run, | 398 | &run, |
399 | NULL); | 399 | NULL); |
diff --git a/src/testbed/gnunet-helper-testbed.c b/src/testbed/gnunet-helper-testbed.c index 5d0c3b048..938e50448 100644 --- a/src/testbed/gnunet-helper-testbed.c +++ b/src/testbed/gnunet-helper-testbed.c | |||
@@ -395,7 +395,7 @@ tokenizer_cb (void *cls, const struct GNUNET_MessageHeader *message) | |||
395 | 395 | ||
396 | GNUNET_asprintf (&evar, GNUNET_TESTING_PREFIX "=%s", evstr); | 396 | GNUNET_asprintf (&evar, GNUNET_TESTING_PREFIX "=%s", evstr); |
397 | GNUNET_assert (0 == putenv (evar)); /* consumes 'evar', | 397 | GNUNET_assert (0 == putenv (evar)); /* consumes 'evar', |
398 | see putenv(): becomes part of envrionment! */ | 398 | see putenv(): becomes part of environment! */ |
399 | GNUNET_free (evstr); | 399 | GNUNET_free (evstr); |
400 | evstr = NULL; | 400 | evstr = NULL; |
401 | } | 401 | } |
@@ -426,7 +426,7 @@ tokenizer_cb (void *cls, const struct GNUNET_MessageHeader *message) | |||
426 | /* expose testbed configuration through env variable */ | 426 | /* expose testbed configuration through env variable */ |
427 | GNUNET_asprintf (&evar, "%s=%s", ENV_TESTBED_CONFIG, config); | 427 | GNUNET_asprintf (&evar, "%s=%s", ENV_TESTBED_CONFIG, config); |
428 | GNUNET_assert (0 == putenv (evar)); /* consumes 'evar', | 428 | GNUNET_assert (0 == putenv (evar)); /* consumes 'evar', |
429 | see putenv(): becomes part of envrionment! */ | 429 | see putenv(): becomes part of environment! */ |
430 | evstr = NULL; | 430 | evstr = NULL; |
431 | } | 431 | } |
432 | testbed = GNUNET_OS_start_process (GNUNET_OS_INHERIT_STD_ERR /*verbose? */, | 432 | testbed = GNUNET_OS_start_process (GNUNET_OS_INHERIT_STD_ERR /*verbose? */, |
diff --git a/src/testbed/gnunet-service-test-barriers.c b/src/testbed/gnunet-service-test-barriers.c index c6c42cd1f..e10a28902 100644 --- a/src/testbed/gnunet-service-test-barriers.c +++ b/src/testbed/gnunet-service-test-barriers.c | |||
@@ -66,7 +66,7 @@ do_shutdown (void *cls) | |||
66 | 66 | ||
67 | 67 | ||
68 | /** | 68 | /** |
69 | * Functions of this type are to be given as acallback argumetn to | 69 | * Functions of this type are to be given as acallback argument to |
70 | * GNUNET_TESTBED_barrier_wait(). The callback will be called when the barrier | 70 | * GNUNET_TESTBED_barrier_wait(). The callback will be called when the barrier |
71 | * corresponding given in GNUNET_TESTBED_barrier_wait() is crossed or cancelled. | 71 | * corresponding given in GNUNET_TESTBED_barrier_wait() is crossed or cancelled. |
72 | * | 72 | * |
diff --git a/src/testbed/gnunet-service-testbed_barriers.c b/src/testbed/gnunet-service-testbed_barriers.c index ac89abc88..be33bd131 100644 --- a/src/testbed/gnunet-service-testbed_barriers.c +++ b/src/testbed/gnunet-service-testbed_barriers.c | |||
@@ -458,7 +458,7 @@ disconnect_cb (void *cls, | |||
458 | 458 | ||
459 | 459 | ||
460 | /** | 460 | /** |
461 | * Function to initialise barrriers component | 461 | * Function to initialise barriers component |
462 | * | 462 | * |
463 | * @param cfg the configuration to use for initialisation | 463 | * @param cfg the configuration to use for initialisation |
464 | */ | 464 | */ |
@@ -538,7 +538,7 @@ GST_barriers_destroy () | |||
538 | * @param status status of the barrier; #GNUNET_OK if the barrier is crossed; | 538 | * @param status status of the barrier; #GNUNET_OK if the barrier is crossed; |
539 | * #GNUNET_SYSERR upon error | 539 | * #GNUNET_SYSERR upon error |
540 | * @param emsg if the status were to be #GNUNET_SYSERR, this parameter has the | 540 | * @param emsg if the status were to be #GNUNET_SYSERR, this parameter has the |
541 | * error messsage | 541 | * error message |
542 | */ | 542 | */ |
543 | static void | 543 | static void |
544 | wbarrier_status_cb (void *cls, | 544 | wbarrier_status_cb (void *cls, |
diff --git a/src/testbed/gnunet-service-testbed_cpustatus.c b/src/testbed/gnunet-service-testbed_cpustatus.c index 440f2c24f..5b9528ba3 100644 --- a/src/testbed/gnunet-service-testbed_cpustatus.c +++ b/src/testbed/gnunet-service-testbed_cpustatus.c | |||
@@ -78,7 +78,7 @@ static double agedIOLoad = -1; | |||
78 | 78 | ||
79 | 79 | ||
80 | /** | 80 | /** |
81 | * hanlde to the file to write the load statistics to | 81 | * handle to the file to write the load statistics to |
82 | */ | 82 | */ |
83 | struct GNUNET_BIO_WriteHandle *bw; | 83 | struct GNUNET_BIO_WriteHandle *bw; |
84 | 84 | ||
diff --git a/src/testbed/gnunet-service-testbed_links.c b/src/testbed/gnunet-service-testbed_links.c index dbdeed0d9..fe87d64ea 100644 --- a/src/testbed/gnunet-service-testbed_links.c +++ b/src/testbed/gnunet-service-testbed_links.c | |||
@@ -58,7 +58,7 @@ enum LCFContextState | |||
58 | DELEGATED_HOST_REGISTERED, | 58 | DELEGATED_HOST_REGISTERED, |
59 | 59 | ||
60 | /** | 60 | /** |
61 | * The slave host has been registred at the forwarding controller | 61 | * The slave host has been registered at the forwarding controller |
62 | */ | 62 | */ |
63 | SLAVE_HOST_REGISTERED, | 63 | SLAVE_HOST_REGISTERED, |
64 | 64 | ||
@@ -539,7 +539,7 @@ GST_find_dest_route (uint32_t host_id) | |||
539 | 539 | ||
540 | 540 | ||
541 | /** | 541 | /** |
542 | * Function to send a failure reponse for controller link operation | 542 | * Function to send a failure response for controller link operation |
543 | * | 543 | * |
544 | * @param client the client to send the message to | 544 | * @param client the client to send the message to |
545 | * @param operation_id the operation ID of the controller link request | 545 | * @param operation_id the operation ID of the controller link request |
@@ -794,12 +794,12 @@ slave_event_cb (void *cls, const struct GNUNET_TESTBED_EventInformation *event) | |||
794 | 794 | ||
795 | 795 | ||
796 | /** | 796 | /** |
797 | * Callback to signal successfull startup of the controller process | 797 | * Callback to signal successful startup of the controller process |
798 | * | 798 | * |
799 | * @param cls the handle to the slave whose status is to be found here | 799 | * @param cls the handle to the slave whose status is to be found here |
800 | * @param cfg the configuration with which the controller has been started; | 800 | * @param cfg the configuration with which the controller has been started; |
801 | * NULL if status is not #GNUNET_OK | 801 | * NULL if status is not #GNUNET_OK |
802 | * @param status #GNUNET_OK if the startup is successfull; #GNUNET_SYSERR if not, | 802 | * @param status #GNUNET_OK if the startup is successful; #GNUNET_SYSERR if not, |
803 | * GNUNET_TESTBED_controller_stop() shouldn't be called in this case | 803 | * GNUNET_TESTBED_controller_stop() shouldn't be called in this case |
804 | */ | 804 | */ |
805 | static void | 805 | static void |
diff --git a/src/testbed/gnunet-service-testbed_oc.c b/src/testbed/gnunet-service-testbed_oc.c index 8a61f72f7..4fe7c20b3 100644 --- a/src/testbed/gnunet-service-testbed_oc.c +++ b/src/testbed/gnunet-service-testbed_oc.c | |||
@@ -392,7 +392,7 @@ forwarded_overlay_connect_timeout (void *cls) | |||
392 | 392 | ||
393 | /** | 393 | /** |
394 | * Callback to be called when forwarded overlay connection operation has a reply | 394 | * Callback to be called when forwarded overlay connection operation has a reply |
395 | * from the sub-controller successfull. We have to relay the reply msg back to | 395 | * from the sub-controller successful. We have to relay the reply msg back to |
396 | * the client | 396 | * the client |
397 | * | 397 | * |
398 | * @param cls ForwardedOperationContext | 398 | * @param cls ForwardedOperationContext |
@@ -578,7 +578,7 @@ cleanup_occ (struct OverlayConnectContext *occ) | |||
578 | 578 | ||
579 | 579 | ||
580 | /** | 580 | /** |
581 | * Task for cleaing up overlay connect context structure | 581 | * Task for cleaning up overlay connect context structure |
582 | * | 582 | * |
583 | * @param cls the overlay connect context | 583 | * @param cls the overlay connect context |
584 | */ | 584 | */ |
@@ -1222,7 +1222,7 @@ occ_cache_get_handle_core_cb (void *cls, | |||
1222 | 1222 | ||
1223 | /** | 1223 | /** |
1224 | * Callback to be called when forwarded get peer config operation as part of | 1224 | * Callback to be called when forwarded get peer config operation as part of |
1225 | * overlay connect is successfull. Connection to Peer 1's core is made and is | 1225 | * overlay connect is successful. Connection to Peer 1's core is made and is |
1226 | * checked for new connection from peer 2 | 1226 | * checked for new connection from peer 2 |
1227 | * | 1227 | * |
1228 | * @param cls ForwardedOperationContext | 1228 | * @param cls ForwardedOperationContext |
@@ -1369,7 +1369,7 @@ register_host (struct Slave *slave, | |||
1369 | reghost_match_iterator, | 1369 | reghost_match_iterator, |
1370 | &rhc))) | 1370 | &rhc))) |
1371 | { | 1371 | { |
1372 | /* create and add a new registerd host context */ | 1372 | /* create and add a new registered host context */ |
1373 | /* add the focc to its queue */ | 1373 | /* add the focc to its queue */ |
1374 | GNUNET_CONTAINER_multihashmap_put (slave->reghost_map, | 1374 | GNUNET_CONTAINER_multihashmap_put (slave->reghost_map, |
1375 | &hash, | 1375 | &hash, |
diff --git a/src/testbed/gnunet-service-testbed_peers.c b/src/testbed/gnunet-service-testbed_peers.c index 0184635fa..0bfeb4583 100644 --- a/src/testbed/gnunet-service-testbed_peers.c +++ b/src/testbed/gnunet-service-testbed_peers.c | |||
@@ -227,7 +227,7 @@ peer_create_forward_timeout (void *cls) | |||
227 | 227 | ||
228 | 228 | ||
229 | /** | 229 | /** |
230 | * Callback to be called when forwarded peer create operation is successfull. We | 230 | * Callback to be called when forwarded peer create operation is successful. We |
231 | * have to relay the reply msg back to the client | 231 | * have to relay the reply msg back to the client |
232 | * | 232 | * |
233 | * @param cls ForwardedOperationContext | 233 | * @param cls ForwardedOperationContext |
@@ -387,7 +387,7 @@ GST_notify_client_disconnect_peers (struct GNUNET_SERVICE_Client *client) | |||
387 | 387 | ||
388 | 388 | ||
389 | /** | 389 | /** |
390 | * Callback to be called when forwarded peer destroy operation is successfull. We | 390 | * Callback to be called when forwarded peer destroy operation is successful. We |
391 | * have to relay the reply msg back to the client | 391 | * have to relay the reply msg back to the client |
392 | * | 392 | * |
393 | * @param cls ForwardedOperationContext | 393 | * @param cls ForwardedOperationContext |
@@ -576,7 +576,7 @@ handle_peer_destroy (void *cls, | |||
576 | uint32_t peer_id; | 576 | uint32_t peer_id; |
577 | 577 | ||
578 | peer_id = ntohl (msg->peer_id); | 578 | peer_id = ntohl (msg->peer_id); |
579 | LOG_DEBUG ("Received peer destory on peer: %u and operation id: %llu\n", | 579 | LOG_DEBUG ("Received peer destroy on peer: %u and operation id: %llu\n", |
580 | (unsigned int) peer_id, | 580 | (unsigned int) peer_id, |
581 | (unsigned long long) GNUNET_ntohll (msg->operation_id)); | 581 | (unsigned long long) GNUNET_ntohll (msg->operation_id)); |
582 | if (! VALID_PEER_ID (peer_id)) | 582 | if (! VALID_PEER_ID (peer_id)) |
@@ -592,7 +592,7 @@ handle_peer_destroy (void *cls, | |||
592 | peer = GST_peer_list[peer_id]; | 592 | peer = GST_peer_list[peer_id]; |
593 | if (GNUNET_YES == peer->is_remote) | 593 | if (GNUNET_YES == peer->is_remote) |
594 | { | 594 | { |
595 | /* Forward the destory message to sub controller */ | 595 | /* Forward the destroy message to sub controller */ |
596 | fopc = GNUNET_new (struct ForwardedOperationContext); | 596 | fopc = GNUNET_new (struct ForwardedOperationContext); |
597 | fopc->client = client; | 597 | fopc->client = client; |
598 | fopc->cls = peer; | 598 | fopc->cls = peer; |
@@ -986,7 +986,7 @@ check_peer_reconfigure (void *cls, | |||
986 | 986 | ||
987 | /** | 987 | /** |
988 | * Handler for #GNUNET_MESSAGE_TYPDE_TESTBED_RECONFIGURE_PEER type messages. | 988 | * Handler for #GNUNET_MESSAGE_TYPDE_TESTBED_RECONFIGURE_PEER type messages. |
989 | * Should stop the peer asyncronously, destroy it and create it again with the | 989 | * Should stop the peer asynchronously, destroy it and create it again with the |
990 | * new configuration. | 990 | * new configuration. |
991 | * | 991 | * |
992 | * @param cls identification of the client | 992 | * @param cls identification of the client |
@@ -1342,7 +1342,7 @@ handle_manage_peer_service (void *cls, | |||
1342 | } | 1342 | } |
1343 | if (GNUNET_YES == peer->is_remote) | 1343 | if (GNUNET_YES == peer->is_remote) |
1344 | { | 1344 | { |
1345 | /* Forward the destory message to sub controller */ | 1345 | /* Forward the destroy message to sub controller */ |
1346 | fopc = GNUNET_new (struct ForwardedOperationContext); | 1346 | fopc = GNUNET_new (struct ForwardedOperationContext); |
1347 | fopc->client = client; | 1347 | fopc->client = client; |
1348 | fopc->cls = peer; | 1348 | fopc->cls = peer; |
diff --git a/src/testbed/gnunet-testbed-profiler.c b/src/testbed/gnunet-testbed-profiler.c index 90813c8e5..b07c725a3 100644 --- a/src/testbed/gnunet-testbed-profiler.c +++ b/src/testbed/gnunet-testbed-profiler.c | |||
@@ -287,7 +287,7 @@ main (int argc, char *const *argv) | |||
287 | "num-errors", | 287 | "num-errors", |
288 | "COUNT", | 288 | "COUNT", |
289 | gettext_noop ( | 289 | gettext_noop ( |
290 | "tolerate COUNT number of continious timeout failures"), | 290 | "tolerate COUNT number of continuous timeout failures"), |
291 | &num_cont_fails), | 291 | &num_cont_fails), |
292 | GNUNET_GETOPT_option_flag ('n', | 292 | GNUNET_GETOPT_option_flag ('n', |
293 | "non-interactive", | 293 | "non-interactive", |
diff --git a/src/testbed/test_gnunet_helper_testbed.c b/src/testbed/test_gnunet_helper_testbed.c index d4eec0269..ea303a86c 100644 --- a/src/testbed/test_gnunet_helper_testbed.c +++ b/src/testbed/test_gnunet_helper_testbed.c | |||
@@ -66,7 +66,7 @@ static struct GNUNET_SCHEDULER_Task *abort_task; | |||
66 | static struct GNUNET_SCHEDULER_Task *shutdown_task; | 66 | static struct GNUNET_SCHEDULER_Task *shutdown_task; |
67 | 67 | ||
68 | /** | 68 | /** |
69 | * Configuratin handler | 69 | * Configuration handle. |
70 | */ | 70 | */ |
71 | static struct GNUNET_CONFIGURATION_Handle *cfg; | 71 | static struct GNUNET_CONFIGURATION_Handle *cfg; |
72 | 72 | ||
@@ -178,7 +178,7 @@ mst_cb (void *cls, | |||
178 | 178 | ||
179 | /** | 179 | /** |
180 | * Callback that will be called when the helper process dies. This is not called | 180 | * Callback that will be called when the helper process dies. This is not called |
181 | * when the helper process is stoped using GNUNET_HELPER_stop() | 181 | * when the helper process is stopped using GNUNET_HELPER_stop() |
182 | * | 182 | * |
183 | * @param cls the closure from GNUNET_HELPER_start() | 183 | * @param cls the closure from GNUNET_HELPER_start() |
184 | */ | 184 | */ |
diff --git a/src/testbed/test_testbed_api.c b/src/testbed/test_testbed_api.c index 49f1d9ae9..a46a7596a 100644 --- a/src/testbed/test_testbed_api.c +++ b/src/testbed/test_testbed_api.c | |||
@@ -269,7 +269,7 @@ service_connect_comp_cb (void *cls, | |||
269 | * @param op the operation this callback corresponds to | 269 | * @param op the operation this callback corresponds to |
270 | * @param pinfo the result; will be NULL if the operation has failed | 270 | * @param pinfo the result; will be NULL if the operation has failed |
271 | * @param emsg error message if the operation has failed; will be NULL if the | 271 | * @param emsg error message if the operation has failed; will be NULL if the |
272 | * operation is successfull | 272 | * operation is successful |
273 | */ | 273 | */ |
274 | static void | 274 | static void |
275 | peerinfo_cb (void *cb_cls, | 275 | peerinfo_cb (void *cb_cls, |
@@ -420,12 +420,12 @@ registration_comp (void *cls, | |||
420 | 420 | ||
421 | 421 | ||
422 | /** | 422 | /** |
423 | * Callback to signal successfull startup of the controller process | 423 | * Callback to signal successful startup of the controller process |
424 | * | 424 | * |
425 | * @param cls the closure from GNUNET_TESTBED_controller_start() | 425 | * @param cls the closure from GNUNET_TESTBED_controller_start() |
426 | * @param cfg the configuration with which the controller has been started; | 426 | * @param cfg the configuration with which the controller has been started; |
427 | * NULL if status is not #GNUNET_OK | 427 | * NULL if status is not #GNUNET_OK |
428 | * @param status #GNUNET_OK if the startup is successfull; #GNUNET_SYSERR if not, | 428 | * @param status #GNUNET_OK if the startup is successful; #GNUNET_SYSERR if not, |
429 | * GNUNET_TESTBED_controller_stop() shouldn't be called in this case | 429 | * GNUNET_TESTBED_controller_stop() shouldn't be called in this case |
430 | */ | 430 | */ |
431 | static void | 431 | static void |
diff --git a/src/testbed/test_testbed_api_2peers_1controller.c b/src/testbed/test_testbed_api_2peers_1controller.c index 4a8b8a584..1ca1d1b2e 100644 --- a/src/testbed/test_testbed_api_2peers_1controller.c +++ b/src/testbed/test_testbed_api_2peers_1controller.c | |||
@@ -450,12 +450,12 @@ registration_comp (void *cls, const char *emsg) | |||
450 | 450 | ||
451 | 451 | ||
452 | /** | 452 | /** |
453 | * Callback to signal successfull startup of the controller process | 453 | * Callback to signal successful startup of the controller process |
454 | * | 454 | * |
455 | * @param cls the closure from GNUNET_TESTBED_controller_start() | 455 | * @param cls the closure from GNUNET_TESTBED_controller_start() |
456 | * @param cfg the configuration with which the controller has been started; | 456 | * @param cfg the configuration with which the controller has been started; |
457 | * NULL if status is not GNUNET_OK | 457 | * NULL if status is not GNUNET_OK |
458 | * @param status GNUNET_OK if the startup is successfull; GNUNET_SYSERR if not, | 458 | * @param status GNUNET_OK if the startup is successful; GNUNET_SYSERR if not, |
459 | * GNUNET_TESTBED_controller_stop() shouldn't be called in this case | 459 | * GNUNET_TESTBED_controller_stop() shouldn't be called in this case |
460 | */ | 460 | */ |
461 | static void | 461 | static void |
diff --git a/src/testbed/test_testbed_api_3peers_3controllers.c b/src/testbed/test_testbed_api_3peers_3controllers.c index bf9011941..17072ffa8 100644 --- a/src/testbed/test_testbed_api_3peers_3controllers.c +++ b/src/testbed/test_testbed_api_3peers_3controllers.c | |||
@@ -787,12 +787,12 @@ registration_comp (void *cls, const char *emsg) | |||
787 | 787 | ||
788 | 788 | ||
789 | /** | 789 | /** |
790 | * Callback to signal successfull startup of the controller process | 790 | * Callback to signal successful startup of the controller process |
791 | * | 791 | * |
792 | * @param cls the closure from GNUNET_TESTBED_controller_start() | 792 | * @param cls the closure from GNUNET_TESTBED_controller_start() |
793 | * @param cfg the configuration with which the controller has been started; | 793 | * @param cfg the configuration with which the controller has been started; |
794 | * NULL if status is not GNUNET_OK | 794 | * NULL if status is not GNUNET_OK |
795 | * @param status GNUNET_OK if the startup is successfull; GNUNET_SYSERR if not, | 795 | * @param status GNUNET_OK if the startup is successful; GNUNET_SYSERR if not, |
796 | * GNUNET_TESTBED_controller_stop() shouldn't be called in this case | 796 | * GNUNET_TESTBED_controller_stop() shouldn't be called in this case |
797 | */ | 797 | */ |
798 | static void | 798 | static void |
diff --git a/src/testbed/test_testbed_api_barriers.c b/src/testbed/test_testbed_api_barriers.c index f80e73ddd..74dd89126 100644 --- a/src/testbed/test_testbed_api_barriers.c +++ b/src/testbed/test_testbed_api_barriers.c | |||
@@ -98,7 +98,7 @@ do_timeout (void *cls) | |||
98 | * @param status status of the barrier; #GNUNET_OK if the barrier is crossed; | 98 | * @param status status of the barrier; #GNUNET_OK if the barrier is crossed; |
99 | * #GNUNET_SYSERR upon error | 99 | * #GNUNET_SYSERR upon error |
100 | * @param emsg if the status were to be #GNUNET_SYSERR, this parameter has the | 100 | * @param emsg if the status were to be #GNUNET_SYSERR, this parameter has the |
101 | * error messsage | 101 | * error message |
102 | */ | 102 | */ |
103 | static void | 103 | static void |
104 | barrier_cb (void *cls, | 104 | barrier_cb (void *cls, |
diff --git a/src/testbed/test_testbed_api_controllerlink.c b/src/testbed/test_testbed_api_controllerlink.c index 784407520..0ec9d63e1 100644 --- a/src/testbed/test_testbed_api_controllerlink.c +++ b/src/testbed/test_testbed_api_controllerlink.c | |||
@@ -163,7 +163,7 @@ enum Stage | |||
163 | SLAVE1_PEER_DESTROY_SUCCESS, | 163 | SLAVE1_PEER_DESTROY_SUCCESS, |
164 | 164 | ||
165 | /** | 165 | /** |
166 | * Peer destory on slave 2 successful | 166 | * Peer destroy on slave 2 successful |
167 | */ | 167 | */ |
168 | SLAVE2_PEER_DESTROY_SUCCESS, | 168 | SLAVE2_PEER_DESTROY_SUCCESS, |
169 | 169 | ||
@@ -178,7 +178,7 @@ enum Stage | |||
178 | SLAVE3_LINK_SUCCESS, | 178 | SLAVE3_LINK_SUCCESS, |
179 | 179 | ||
180 | /** | 180 | /** |
181 | * Master peer destoryed. Destory slave 3 peer | 181 | * Master peer destroyed. Destroy slave 3 peer |
182 | */ | 182 | */ |
183 | MASTER_PEER_DESTROY_SUCCESS, | 183 | MASTER_PEER_DESTROY_SUCCESS, |
184 | 184 | ||
@@ -478,7 +478,7 @@ peer_create_cb (void *cls, struct GNUNET_TESTBED_Peer *peer, const char *emsg) | |||
478 | 478 | ||
479 | /** | 479 | /** |
480 | * Checks the event if it is an operation finished event and if indicates a | 480 | * Checks the event if it is an operation finished event and if indicates a |
481 | * successfull completion of operation | 481 | * successful completion of operation |
482 | * | 482 | * |
483 | * @param event the event information to check | 483 | * @param event the event information to check |
484 | */ | 484 | */ |
@@ -727,12 +727,12 @@ registration_cont (void *cls, const char *emsg) | |||
727 | 727 | ||
728 | 728 | ||
729 | /** | 729 | /** |
730 | * Callback to signal successfull startup of the controller process | 730 | * Callback to signal successful startup of the controller process |
731 | * | 731 | * |
732 | * @param cls the closure from GNUNET_TESTBED_controller_start() | 732 | * @param cls the closure from GNUNET_TESTBED_controller_start() |
733 | * @param cfg the configuration with which the controller has been started; | 733 | * @param cfg the configuration with which the controller has been started; |
734 | * NULL if status is not GNUNET_OK | 734 | * NULL if status is not GNUNET_OK |
735 | * @param status GNUNET_OK if the startup is successfull; GNUNET_SYSERR if not, | 735 | * @param status GNUNET_OK if the startup is successful; GNUNET_SYSERR if not, |
736 | * GNUNET_TESTBED_controller_stop() shouldn't be called in this case | 736 | * GNUNET_TESTBED_controller_stop() shouldn't be called in this case |
737 | */ | 737 | */ |
738 | static void | 738 | static void |
diff --git a/src/testbed/test_testbed_api_operations.c b/src/testbed/test_testbed_api_operations.c index aed213d49..133aadf21 100644 --- a/src/testbed/test_testbed_api_operations.c +++ b/src/testbed/test_testbed_api_operations.c | |||
@@ -105,7 +105,7 @@ struct GNUNET_TESTBED_Operation *op7; | |||
105 | struct GNUNET_TESTBED_Operation *op8; | 105 | struct GNUNET_TESTBED_Operation *op8; |
106 | 106 | ||
107 | /** | 107 | /** |
108 | * This opration is started after activating op8. It should consume a resource | 108 | * This operation is started after activating op8. It should consume a resource |
109 | * on queues q1 and q2. It should not be started until op8 is again made | 109 | * on queues q1 and q2. It should not be started until op8 is again made |
110 | * inactive at which point it should be released. It can be released as soon as | 110 | * inactive at which point it should be released. It can be released as soon as |
111 | * it begins. | 111 | * it begins. |
@@ -250,7 +250,7 @@ start_cb (void *cls); | |||
250 | * be because of a call to "GNUNET_TESTBED_operation_cancel" (before the | 250 | * be because of a call to "GNUNET_TESTBED_operation_cancel" (before the |
251 | * operation generated an event) or AFTER the operation generated an event due | 251 | * operation generated an event) or AFTER the operation generated an event due |
252 | * to a call to "GNUNET_TESTBED_operation_done". Thus it is not guaranteed that | 252 | * to a call to "GNUNET_TESTBED_operation_done". Thus it is not guaranteed that |
253 | * a callback to the 'OperationStart' preceeds the call to 'OperationRelease'. | 253 | * a callback to the 'OperationStart' precedes the call to 'OperationRelease'. |
254 | * Implementations of this function are expected to clean up whatever state is | 254 | * Implementations of this function are expected to clean up whatever state is |
255 | * in 'cls' and release all resources associated with the operation. | 255 | * in 'cls' and release all resources associated with the operation. |
256 | */ | 256 | */ |
@@ -419,7 +419,7 @@ start_cb (void *cls) | |||
419 | * be because of a call to "GNUNET_TESTBED_operation_cancel" (before the | 419 | * be because of a call to "GNUNET_TESTBED_operation_cancel" (before the |
420 | * operation generated an event) or AFTER the operation generated an event due | 420 | * operation generated an event) or AFTER the operation generated an event due |
421 | * to a call to "GNUNET_TESTBED_operation_done". Thus it is not guaranteed that | 421 | * to a call to "GNUNET_TESTBED_operation_done". Thus it is not guaranteed that |
422 | * a callback to the 'OperationStart' preceeds the call to 'OperationRelease'. | 422 | * a callback to the 'OperationStart' precedes the call to 'OperationRelease'. |
423 | * Implementations of this function are expected to clean up whatever state is | 423 | * Implementations of this function are expected to clean up whatever state is |
424 | * in 'cls' and release all resources associated with the operation. | 424 | * in 'cls' and release all resources associated with the operation. |
425 | */ | 425 | */ |
diff --git a/src/testbed/test_testbed_api_test.c b/src/testbed/test_testbed_api_test.c index aefbd340e..f451c6555 100644 --- a/src/testbed/test_testbed_api_test.c +++ b/src/testbed/test_testbed_api_test.c | |||
@@ -122,7 +122,7 @@ do_abort (void *cls) | |||
122 | * @param op the operation this callback corresponds to | 122 | * @param op the operation this callback corresponds to |
123 | * @param pinfo the result; will be NULL if the operation has failed | 123 | * @param pinfo the result; will be NULL if the operation has failed |
124 | * @param emsg error message if the operation has failed; will be NULL if the | 124 | * @param emsg error message if the operation has failed; will be NULL if the |
125 | * operation is successfull | 125 | * operation is successful |
126 | */ | 126 | */ |
127 | static void | 127 | static void |
128 | peerinfo_cb (void *cb_cls, struct GNUNET_TESTBED_Operation *op_, | 128 | peerinfo_cb (void *cb_cls, struct GNUNET_TESTBED_Operation *op_, |
diff --git a/src/testbed/test_testbed_api_test_timeout.c b/src/testbed/test_testbed_api_test_timeout.c index d2f73df14..fe76ad441 100644 --- a/src/testbed/test_testbed_api_test_timeout.c +++ b/src/testbed/test_testbed_api_test_timeout.c | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file src/testbed/test_testbed_api_test.c | 22 | * @file src/testbed/test_testbed_api_test.c |
23 | * @brief testing cases for testing notications via test master callback upon | 23 | * @brief testing cases for testing notifications via test master callback upon |
24 | * timeout while setting up testbed using functions | 24 | * timeout while setting up testbed using functions |
25 | * GNUNET_TESTBED_test_run() | 25 | * GNUNET_TESTBED_test_run() |
26 | * @author Sree Harsha Totakura <sreeharsha@totakura.in> | 26 | * @author Sree Harsha Totakura <sreeharsha@totakura.in> |
diff --git a/src/testbed/testbed_api.c b/src/testbed/testbed_api.c index 386850b89..18bb0c3f6 100644 --- a/src/testbed/testbed_api.c +++ b/src/testbed/testbed_api.c | |||
@@ -239,7 +239,7 @@ struct SearchContext | |||
239 | /** | 239 | /** |
240 | * Search iterator for searching an operation context | 240 | * Search iterator for searching an operation context |
241 | * | 241 | * |
242 | * @param cls the serach context | 242 | * @param cls the search context |
243 | * @param key current key code | 243 | * @param key current key code |
244 | * @param value value in the hash map | 244 | * @param value value in the hash map |
245 | * @return #GNUNET_YES if we should continue to iterate, | 245 | * @return #GNUNET_YES if we should continue to iterate, |
@@ -408,7 +408,7 @@ handle_add_host_confirm (void *cls, | |||
408 | * Handler for forwarded operations | 408 | * Handler for forwarded operations |
409 | * | 409 | * |
410 | * @param c the controller handle | 410 | * @param c the controller handle |
411 | * @param opc the opearation context | 411 | * @param opc the operation context |
412 | * @param msg the message | 412 | * @param msg the message |
413 | */ | 413 | */ |
414 | static void | 414 | static void |
diff --git a/src/testbed/testbed_api_cmd_controller.c b/src/testbed/testbed_api_cmd_controller.c index da23df1ef..e3044eaa7 100644 --- a/src/testbed/testbed_api_cmd_controller.c +++ b/src/testbed/testbed_api_cmd_controller.c | |||
@@ -126,12 +126,12 @@ registration_comp (void *cls, | |||
126 | 126 | ||
127 | 127 | ||
128 | /** | 128 | /** |
129 | * Callback to signal successfull startup of the controller process | 129 | * Callback to signal successful startup of the controller process |
130 | * | 130 | * |
131 | * @param cls the closure from GNUNET_TESTBED_controller_start() | 131 | * @param cls the closure from GNUNET_TESTBED_controller_start() |
132 | * @param cfg the configuration with which the controller has been started; | 132 | * @param cfg the configuration with which the controller has been started; |
133 | * NULL if status is not #GNUNET_OK | 133 | * NULL if status is not #GNUNET_OK |
134 | * @param status #GNUNET_OK if the startup is successfull; #GNUNET_SYSERR if not, | 134 | * @param status #GNUNET_OK if the startup is successful; #GNUNET_SYSERR if not, |
135 | * GNUNET_TESTBED_controller_stop() shouldn't be called in this case | 135 | * GNUNET_TESTBED_controller_stop() shouldn't be called in this case |
136 | */ | 136 | */ |
137 | static void | 137 | static void |
diff --git a/src/testbed/testbed_api_cmd_tng_service.c b/src/testbed/testbed_api_cmd_tng_service.c index f9ef44bad..cce2e14e3 100644 --- a/src/testbed/testbed_api_cmd_tng_service.c +++ b/src/testbed/testbed_api_cmd_tng_service.c | |||
@@ -177,7 +177,7 @@ service_connect_comp_cb (void *cls, | |||
177 | if (NULL != emsg) | 177 | if (NULL != emsg) |
178 | { | 178 | { |
179 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 179 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
180 | "An error occured connecting to service %s\n", | 180 | "An error occurred connecting to service %s\n", |
181 | emsg); | 181 | emsg); |
182 | GNUNET_TESTBED_operation_done (ts->operation); | 182 | GNUNET_TESTBED_operation_done (ts->operation); |
183 | } | 183 | } |
@@ -191,7 +191,7 @@ service_connect_comp_cb (void *cls, | |||
191 | * @param op the operation this callback corresponds to | 191 | * @param op the operation this callback corresponds to |
192 | * @param pinfo the result; will be NULL if the operation has failed | 192 | * @param pinfo the result; will be NULL if the operation has failed |
193 | * @param emsg error message if the operation has failed; | 193 | * @param emsg error message if the operation has failed; |
194 | * NULL if the operation is successfull | 194 | * NULL if the operation is successful |
195 | */ | 195 | */ |
196 | static void | 196 | static void |
197 | pi_cb (void *cls, | 197 | pi_cb (void *cls, |
diff --git a/src/testbed/testbed_api_hosts.c b/src/testbed/testbed_api_hosts.c index 95a6bf76f..26d2553e0 100644 --- a/src/testbed/testbed_api_hosts.c +++ b/src/testbed/testbed_api_hosts.c | |||
@@ -1044,7 +1044,7 @@ clear_msg (void *cls, int result) | |||
1044 | 1044 | ||
1045 | /** | 1045 | /** |
1046 | * Callback that will be called when the helper process dies. This is not called | 1046 | * Callback that will be called when the helper process dies. This is not called |
1047 | * when the helper process is stoped using GNUNET_HELPER_stop() | 1047 | * when the helper process is stopped using GNUNET_HELPER_stop() |
1048 | * | 1048 | * |
1049 | * @param cls the closure from GNUNET_HELPER_start() | 1049 | * @param cls the closure from GNUNET_HELPER_start() |
1050 | */ | 1050 | */ |
diff --git a/src/testbed/testbed_api_operations.c b/src/testbed/testbed_api_operations.c index ae85e0842..a23f8c666 100644 --- a/src/testbed/testbed_api_operations.c +++ b/src/testbed/testbed_api_operations.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #define ADAPTIVE_QUEUE_DEFAULT_HISTORY 40 | 36 | #define ADAPTIVE_QUEUE_DEFAULT_HISTORY 40 |
37 | 37 | ||
38 | /** | 38 | /** |
39 | * The number of parallel opeartions we start with by default for adaptive | 39 | * The number of parallel operations we start with by default for adaptive |
40 | * queues | 40 | * queues |
41 | */ | 41 | */ |
42 | #define ADAPTIVE_QUEUE_DEFAULT_MAX_ACTIVE 4 | 42 | #define ADAPTIVE_QUEUE_DEFAULT_MAX_ACTIVE 4 |
@@ -213,7 +213,7 @@ struct OperationQueue | |||
213 | struct FeedbackCtx *fctx; | 213 | struct FeedbackCtx *fctx; |
214 | 214 | ||
215 | /** | 215 | /** |
216 | * The type of this opeartion queue | 216 | * The type of this operation queue |
217 | */ | 217 | */ |
218 | enum OperationQueueType type; | 218 | enum OperationQueueType type; |
219 | 219 | ||
@@ -232,7 +232,7 @@ struct OperationQueue | |||
232 | 232 | ||
233 | /** | 233 | /** |
234 | * The number of resources occupied by failed operations in the current shot. | 234 | * The number of resources occupied by failed operations in the current shot. |
235 | * This is only relavant if the operation queue is of type | 235 | * This is only relevant if the operation queue is of type |
236 | * #OPERATION_QUEUE_TYPE_ADAPTIVE | 236 | * #OPERATION_QUEUE_TYPE_ADAPTIVE |
237 | */ | 237 | */ |
238 | unsigned int overload; | 238 | unsigned int overload; |
@@ -1272,7 +1272,7 @@ GNUNET_TESTBED_operation_inactivate_ (struct GNUNET_TESTBED_Operation *op) | |||
1272 | 1272 | ||
1273 | 1273 | ||
1274 | /** | 1274 | /** |
1275 | * Marks and inactive operation as active. This fuction should be called to | 1275 | * Marks and inactive operation as active. This function should be called to |
1276 | * ensure that the oprelease callback will not be called until it is either | 1276 | * ensure that the oprelease callback will not be called until it is either |
1277 | * marked as inactive or released. | 1277 | * marked as inactive or released. |
1278 | * | 1278 | * |
diff --git a/src/testbed/testbed_api_statistics.c b/src/testbed/testbed_api_statistics.c index 7fe47d2a0..e800baa73 100644 --- a/src/testbed/testbed_api_statistics.c +++ b/src/testbed/testbed_api_statistics.c | |||
@@ -145,7 +145,7 @@ static struct OperationQueue *no_wait_queue; | |||
145 | /** | 145 | /** |
146 | * Call statistics operation completion. We call it in a separate task because | 146 | * Call statistics operation completion. We call it in a separate task because |
147 | * the iteration_completion_cb() cannot destroy statistics handle which will be | 147 | * the iteration_completion_cb() cannot destroy statistics handle which will be |
148 | * the case if the user calles GNUNET_TESTBED_operation_done() on the | 148 | * the case if the user calls GNUNET_TESTBED_operation_done() on the |
149 | * get_statistics operation. | 149 | * get_statistics operation. |
150 | * | 150 | * |
151 | * @param cls the GetStatsContext | 151 | * @param cls the GetStatsContext |
diff --git a/src/testbed/testbed_api_test.c b/src/testbed/testbed_api_test.c index dd43cf2f6..d9eb384ba 100644 --- a/src/testbed/testbed_api_test.c +++ b/src/testbed/testbed_api_test.c | |||
@@ -98,7 +98,7 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
98 | * the program is stopped without 'master' ever being run. | 98 | * the program is stopped without 'master' ever being run. |
99 | * | 99 | * |
100 | * NOTE: this function should be called from 'main', NOT from | 100 | * NOTE: this function should be called from 'main', NOT from |
101 | * within a GNUNET_SCHEDULER-loop. This function will initialze | 101 | * within a GNUNET_SCHEDULER-loop. This function will initialize |
102 | * the scheduler loop, the testbed and then pass control to | 102 | * the scheduler loop, the testbed and then pass control to |
103 | * 'master'. | 103 | * 'master'. |
104 | * | 104 | * |
diff --git a/src/testbed/testbed_api_testbed.c b/src/testbed/testbed_api_testbed.c index 1aa344e99..e9b9979ce 100644 --- a/src/testbed/testbed_api_testbed.c +++ b/src/testbed/testbed_api_testbed.c | |||
@@ -135,7 +135,7 @@ enum State | |||
135 | 135 | ||
136 | 136 | ||
137 | /** | 137 | /** |
138 | * Context for host compability checks | 138 | * Context for host compatibility checks |
139 | */ | 139 | */ |
140 | struct CompatibilityCheckContext | 140 | struct CompatibilityCheckContext |
141 | { | 141 | { |
@@ -145,7 +145,7 @@ struct CompatibilityCheckContext | |||
145 | struct GNUNET_TESTBED_RunHandle *rc; | 145 | struct GNUNET_TESTBED_RunHandle *rc; |
146 | 146 | ||
147 | /** | 147 | /** |
148 | * Handle for the compability check | 148 | * Handle for the compatibility check |
149 | */ | 149 | */ |
150 | struct GNUNET_TESTBED_HostHabitableCheckHandle *h; | 150 | struct GNUNET_TESTBED_HostHabitableCheckHandle *h; |
151 | 151 | ||
@@ -307,7 +307,7 @@ struct GNUNET_TESTBED_RunHandle | |||
307 | unsigned int num_peers; | 307 | unsigned int num_peers; |
308 | 308 | ||
309 | /** | 309 | /** |
310 | * Expected overlay connects. Should be zero if no topology is relavant | 310 | * Expected overlay connects. Should be zero if no topology is relevant |
311 | */ | 311 | */ |
312 | unsigned int num_oc; | 312 | unsigned int num_oc; |
313 | 313 | ||
@@ -1043,12 +1043,12 @@ register_hosts (void *cls) | |||
1043 | 1043 | ||
1044 | 1044 | ||
1045 | /** | 1045 | /** |
1046 | * Callback to signal successfull startup of the controller process | 1046 | * Callback to signal successful startup of the controller process |
1047 | * | 1047 | * |
1048 | * @param cls the closure from GNUNET_TESTBED_controller_start() | 1048 | * @param cls the closure from GNUNET_TESTBED_controller_start() |
1049 | * @param cfg the configuration with which the controller has been started; | 1049 | * @param cfg the configuration with which the controller has been started; |
1050 | * NULL if status is not GNUNET_OK | 1050 | * NULL if status is not GNUNET_OK |
1051 | * @param status GNUNET_OK if the startup is successfull; GNUNET_SYSERR if not, | 1051 | * @param status GNUNET_OK if the startup is successful; GNUNET_SYSERR if not, |
1052 | * GNUNET_TESTBED_controller_stop() shouldn't be called in this case | 1052 | * GNUNET_TESTBED_controller_stop() shouldn't be called in this case |
1053 | */ | 1053 | */ |
1054 | static void | 1054 | static void |
diff --git a/src/testbed/testbed_api_topology.c b/src/testbed/testbed_api_topology.c index a9a340e99..0f7c0b15c 100644 --- a/src/testbed/testbed_api_topology.c +++ b/src/testbed/testbed_api_topology.c | |||
@@ -639,7 +639,7 @@ gen_topo_ring (struct TopologyContext *tc) | |||
639 | 639 | ||
640 | /** | 640 | /** |
641 | * Returns the number of links that are required to generate a 2d torus for the | 641 | * Returns the number of links that are required to generate a 2d torus for the |
642 | * given number of peers. Also returns the arrangment (number of rows and the | 642 | * given number of peers. Also returns the arrangement (number of rows and the |
643 | * length of each row) | 643 | * length of each row) |
644 | * | 644 | * |
645 | * @param num_peers number of peers | 645 | * @param num_peers number of peers |