12 #ifndef TOR_REACHABILITY_H
13 #define TOR_REACHABILITY_H
18 #define REACHABILITY_MODULO_PER_TEST 128
21 #define REACHABILITY_TEST_INTERVAL 10
24 #define REACHABILITY_TEST_CYCLE_PERIOD \
25 (REACHABILITY_TEST_INTERVAL*REACHABILITY_MODULO_PER_TEST)
27 #ifdef HAVE_MODULE_DIRAUTH
35 const char *digest_rcvd,
38 #define dirserv_single_reachability_test(now, router) \
39 (((void)(now)),((void)(router)))
40 #define dirserv_test_reachability(now) \
43 #define dirserv_should_launch_reachability_test(ri, ri_old) \
44 (((void)(ri)),((void)(ri_old)),0)
45 #define dirserv_orconn_tls_done(addr, or_port, digest_rcvd, ed_id_rcvd) \
46 (((void)(addr)),((void)(or_port)),((void)(digest_rcvd)), \
int dirserv_should_launch_reachability_test(const routerinfo_t *ri, const routerinfo_t *ri_old)
void dirserv_orconn_tls_done(const tor_addr_t *addr, uint16_t or_port, const char *digest_rcvd, const ed25519_public_key_t *ed_id_rcvd)
void dirserv_single_reachability_test(time_t now, routerinfo_t *router)
void dirserv_test_reachability(time_t now)