Tor  0.4.7.0-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-2021, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 /**
8  * \file voteflags.h
9  * \brief Header file for voteflags.c
10  **/
11 
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 /** Any descriptor older than this age causes the authorities to set the
34  * StaleDesc flag. */
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:34
#define STATIC
Definition: testsupport.h:32
STATIC void dirserv_set_routerstatus_testing(routerstatus_t *rs)
Definition: voteflags.c:621
void dirauth_set_routerstatus_from_routerinfo(routerstatus_t *rs, node_t *node, const routerinfo_t *ri, time_t now, int listbadexits)
Definition: voteflags.c:564
char * dirserv_get_flag_thresholds_line(void)
Definition: voteflags.c:433
void dirserv_compute_performance_thresholds(digestmap_t *omit_as_sybil)
Definition: voteflags.c:239
void dirserv_set_router_is_running(routerinfo_t *router, time_t now)
Definition: voteflags.c:483
void dirserv_set_bridges_running(time_t now)
Definition: voteflags.c:656