selftest.h 744 B

123456789101112131415161718192021222324
  1. /* Copyright (c) 2001 Matej Pfajfar.
  2. * Copyright (c) 2001-2004, Roger Dingledine.
  3. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  4. * Copyright (c) 2007-2018, The Tor Project, Inc. */
  5. /* See LICENSE for licensing information */
  6. /**
  7. * \file selftest.h
  8. * \brief Header file for selftest.c.
  9. **/
  10. #ifndef TOR_SELFTEST_H
  11. #define TOR_SELFTEST_H
  12. struct or_options_t;
  13. int check_whether_orport_reachable(const struct or_options_t *options);
  14. int check_whether_dirport_reachable(const struct or_options_t *options);
  15. void router_do_reachability_checks(int test_or, int test_dir);
  16. void router_orport_found_reachable(void);
  17. void router_dirport_found_reachable(void);
  18. void router_perform_bandwidth_test(int num_circs, time_t now);
  19. #endif