tor  0.4.0.0-alpha-dev
reachability.h
Go to the documentation of this file.
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 
12 #ifndef TOR_REACHABILITY_H
13 #define TOR_REACHABILITY_H
14 
18 #define REACHABILITY_MODULO_PER_TEST 128
19 
21 #define REACHABILITY_TEST_INTERVAL 10
22 
24 #define REACHABILITY_TEST_CYCLE_PERIOD \
25  (REACHABILITY_TEST_INTERVAL*REACHABILITY_MODULO_PER_TEST)
26 
27 void dirserv_orconn_tls_done(const tor_addr_t *addr,
28  uint16_t or_port,
29  const char *digest_rcvd,
30  const struct ed25519_public_key_t *ed_id_rcvd);
32  const routerinfo_t *ri_old);
33 void dirserv_single_reachability_test(time_t now, routerinfo_t *router);
34 void dirserv_test_reachability(time_t now);
35 
36 #endif
void dirserv_single_reachability_test(time_t now, routerinfo_t *router)
Definition: reachability.c:126
void dirserv_test_reachability(time_t now)
Definition: reachability.c:179
int dirserv_should_launch_reachability_test(const routerinfo_t *ri, const routerinfo_t *ri_old)
Definition: reachability.c:101
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)
Definition: reachability.c:38