aboutsummaryrefslogtreecommitdiff
path: root/src/feature/relay/router.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-09-25 15:10:11 -0400
committerNick Mathewson <nickm@torproject.org>2018-09-25 15:14:57 -0400
commit8a350e088bf59355f5e2fa3a05fa545923d4e74d (patch)
treeb7e11a2523e85c5afe0c1263b9b0f373d5d19619 /src/feature/relay/router.h
parent934859cf80902e6a16fb69d884fadc8ea831779f (diff)
downloadtor-8a350e088bf59355f5e2fa3a05fa545923d4e74d.tar.gz
tor-8a350e088bf59355f5e2fa3a05fa545923d4e74d.zip
Move self-test functionality into its own file.
Diffstat (limited to 'src/feature/relay/router.h')
-rw-r--r--src/feature/relay/router.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/feature/relay/router.h b/src/feature/relay/router.h
index e6a1639739..52c4ac0bd6 100644
--- a/src/feature/relay/router.h
+++ b/src/feature/relay/router.h
@@ -56,13 +56,7 @@ int router_initialize_tls_context(void);
int init_keys(void);
int init_keys_client(void);
-int check_whether_orport_reachable(const or_options_t *options);
-int check_whether_dirport_reachable(const or_options_t *options);
int dir_server_mode(const 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);
int net_is_disabled(void);
int net_is_completely_disabled(void);
@@ -81,6 +75,9 @@ uint16_t router_get_advertised_or_port_by_af(const or_options_t *options,
uint16_t router_get_advertised_dir_port(const or_options_t *options,
uint16_t dirport);
+int router_should_advertise_dirport(const or_options_t *options,
+ uint16_t dir_port);
+
MOCK_DECL(int, server_mode, (const or_options_t *options));
MOCK_DECL(int, public_server_mode, (const or_options_t *options));
MOCK_DECL(int, advertised_server_mode, (void));