2018-09-20 08:09:35 -04:00
|
|
|
/* Copyright (c) 2001 Matej Pfajfar.
|
|
|
|
* Copyright (c) 2001-2004, Roger Dingledine.
|
|
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
2019-01-16 12:33:22 -05:00
|
|
|
* Copyright (c) 2007-2019, The Tor Project, Inc. */
|
2018-09-20 08:09:35 -04:00
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* \file voteflags.h
|
|
|
|
* \brief Header file for voteflags.c
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef TOR_VOTEFLAGS_H
|
|
|
|
#define TOR_VOTEFLAGS_H
|
|
|
|
|
2019-04-30 12:42:33 -04:00
|
|
|
#ifdef HAVE_MODULE_DIRAUTH
|
2018-09-20 08:09:35 -04:00
|
|
|
void dirserv_set_router_is_running(routerinfo_t *router, time_t now);
|
|
|
|
char *dirserv_get_flag_thresholds_line(void);
|
|
|
|
void dirserv_compute_bridge_flag_thresholds(void);
|
|
|
|
int running_long_enough_to_decide_unreachable(void);
|
|
|
|
|
2019-04-30 12:42:33 -04:00
|
|
|
void dirauth_set_routerstatus_from_routerinfo(routerstatus_t *rs,
|
|
|
|
node_t *node,
|
|
|
|
const routerinfo_t *ri,
|
|
|
|
time_t now,
|
|
|
|
int listbadexits);
|
2018-09-20 08:09:35 -04:00
|
|
|
|
|
|
|
void dirserv_compute_performance_thresholds(digestmap_t *omit_as_sybil);
|
2019-04-30 12:42:33 -04:00
|
|
|
#endif
|
2018-09-20 08:09:35 -04:00
|
|
|
|
2019-04-11 20:44:30 -04:00
|
|
|
void dirserv_set_bridges_running(time_t now);
|
|
|
|
|
2018-09-20 08:09:35 -04:00
|
|
|
#ifdef VOTEFLAGS_PRIVATE
|
2018-11-25 10:05:13 -05:00
|
|
|
/** Any descriptor older than this age causes the authorities to set the
|
|
|
|
* StaleDesc flag. */
|
|
|
|
#define DESC_IS_STALE_INTERVAL (18*60*60)
|
2018-09-20 08:09:35 -04:00
|
|
|
STATIC void dirserv_set_routerstatus_testing(routerstatus_t *rs);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|