Tor 0.4.9.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
16void dirserv_set_router_is_running(routerinfo_t *router, time_t now);
18void dirserv_compute_bridge_flag_thresholds(void);
20
22 node_t *node,
23 const routerinfo_t *ri,
24 time_t now,
25 int listbadexits,
26 int listmiddleonly);
27
28void dirserv_compute_performance_thresholds(digestmap_t *omit_as_sybil);
29#endif /* defined(HAVE_MODULE_DIRAUTH) */
30
31void dirserv_set_bridges_running(time_t now);
32
33#ifdef VOTEFLAGS_PRIVATE
34/** Any descriptor older than this age causes the authorities to set the
35 * StaleDesc flag. */
36#define DESC_IS_STALE_INTERVAL (18*60*60)
38#endif /* defined(VOTEFLAGS_PRIVATE) */
39
40#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:636
int running_long_enough_to_decide_unreachable(void)
Definition: voteflags.c:451
void dirserv_compute_performance_thresholds(digestmap_t *omit_as_sybil)
Definition: voteflags.c:206
void dirauth_set_routerstatus_from_routerinfo(routerstatus_t *rs, node_t *node, const routerinfo_t *ri, time_t now, int listbadexits, int listmiddleonly)
Definition: voteflags.c:568
void dirserv_set_router_is_running(routerinfo_t *router, time_t now)
Definition: voteflags.c:472
char * dirserv_get_flag_thresholds_line(void)
Definition: voteflags.c:403
void dirserv_set_bridges_running(time_t now)
Definition: voteflags.c:671