diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-09-25 15:10:11 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-09-25 15:14:57 -0400 |
commit | 8a350e088bf59355f5e2fa3a05fa545923d4e74d (patch) | |
tree | b7e11a2523e85c5afe0c1263b9b0f373d5d19619 /src/feature/relay/selftest.h | |
parent | 934859cf80902e6a16fb69d884fadc8ea831779f (diff) | |
download | tor-8a350e088bf59355f5e2fa3a05fa545923d4e74d.tar.gz tor-8a350e088bf59355f5e2fa3a05fa545923d4e74d.zip |
Move self-test functionality into its own file.
Diffstat (limited to 'src/feature/relay/selftest.h')
-rw-r--r-- | src/feature/relay/selftest.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/feature/relay/selftest.h b/src/feature/relay/selftest.h new file mode 100644 index 0000000000..26034c9e8e --- /dev/null +++ b/src/feature/relay/selftest.h @@ -0,0 +1,24 @@ +/* Copyright (c) 2001 Matej Pfajfar. + * Copyright (c) 2001-2004, Roger Dingledine. + * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. + * Copyright (c) 2007-2018, The Tor Project, Inc. */ +/* See LICENSE for licensing information */ + +/** + * \file selftest.h + * \brief Header file for selftest.c. + **/ + +#ifndef TOR_SELFTEST_H +#define TOR_SELFTEST_H + +struct or_options_t; +int check_whether_orport_reachable(const struct or_options_t *options); +int check_whether_dirport_reachable(const struct or_options_t *options); + +void router_do_reachability_checks(int test_or, int test_dir); +void router_orport_found_reachable(void); +void router_dirport_found_reachable(void); +void router_perform_bandwidth_test(int num_circs, time_t now); + +#endif |