aboutsummaryrefslogtreecommitdiff
path: root/src/feature/relay/selftest.h
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2020-03-17 16:16:05 +1000
committerteor <teor@torproject.org>2020-03-20 18:05:10 +1000
commitfdba6ff0c0f27b9948101e63efd5acb965a2f6a3 (patch)
tree6fac49601c52f484c900e8890848ec820b8ea92e /src/feature/relay/selftest.h
parent07280c567e4afa9a74f203fbd22cc2cfcc34f875 (diff)
downloadtor-fdba6ff0c0f27b9948101e63efd5acb965a2f6a3.tar.gz
tor-fdba6ff0c0f27b9948101e63efd5acb965a2f6a3.zip
relay: Move inform_testing_rechability() to relay
Move inform_testing_rechability() to the relay module, and disable it when the relay module is disabled. Part of 33633.
Diffstat (limited to 'src/feature/relay/selftest.h')
-rw-r--r--src/feature/relay/selftest.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/feature/relay/selftest.h b/src/feature/relay/selftest.h
index ffe06eda67..f5babc95da 100644
--- a/src/feature/relay/selftest.h
+++ b/src/feature/relay/selftest.h
@@ -20,6 +20,7 @@ int check_whether_dirport_reachable(const struct or_options_t *options);
void router_do_reachability_checks(int test_or, int test_dir);
void router_perform_bandwidth_test(int num_circs, time_t now);
+int inform_testing_reachability(void);
void router_orport_found_reachable(void);
void router_dirport_found_reachable(void);
@@ -47,6 +48,12 @@ router_perform_bandwidth_test(int num_circs, time_t now)
(void)now;
tor_assert_nonfatal_unreached();
}
+static inline int
+inform_testing_reachability(void)
+{
+ tor_assert_nonfatal_unreached();
+ return 0;
+}
#define router_orport_found_reachable() \
STMT_NIL