tor  0.4.2.1-alpha-dev
voteflags.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-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
12 #ifndef TOR_VOTEFLAGS_H
13 #define TOR_VOTEFLAGS_H
14 
15 #ifdef HAVE_MODULE_DIRAUTH
16 void dirserv_set_router_is_running(routerinfo_t *router, time_t now);
18 void dirserv_compute_bridge_flag_thresholds(void);
19 int running_long_enough_to_decide_unreachable(void);
20 
22  node_t *node,
23  const routerinfo_t *ri,
24  time_t now,
25  int listbadexits);
26 
27 void dirserv_compute_performance_thresholds(digestmap_t *omit_as_sybil);
28 #endif /* defined(HAVE_MODULE_DIRAUTH) */
29 
30 void dirserv_set_bridges_running(time_t now);
31 
32 #ifdef VOTEFLAGS_PRIVATE
33 
35 #define DESC_IS_STALE_INTERVAL (18*60*60)
37 #endif /* defined(VOTEFLAGS_PRIVATE) */
38 
39 #endif /* !defined(TOR_VOTEFLAGS_H) */
Definition: node_st.h:28
void dirserv_set_router_is_running(routerinfo_t *router, time_t now)
Definition: voteflags.c:476
STATIC void dirserv_set_routerstatus_testing(routerstatus_t *rs)
Definition: voteflags.c:613
void dirauth_set_routerstatus_from_routerinfo(routerstatus_t *rs, node_t *node, const routerinfo_t *ri, time_t now, int listbadexits)
Definition: voteflags.c:556
void dirserv_compute_performance_thresholds(digestmap_t *omit_as_sybil)
Definition: voteflags.c:236
char * dirserv_get_flag_thresholds_line(void)
Definition: voteflags.c:427
void dirserv_set_bridges_running(time_t now)
Definition: voteflags.c:648