diff options
author | Roger Dingledine <arma@torproject.org> | 2004-05-20 05:10:30 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-05-20 05:10:30 +0000 |
commit | 30a07b2ecd6093bd0f066a842a4fdae220be517d (patch) | |
tree | 4508281375cc0ada495cc5d17f2a9e5c7e0d4bbd /src/or/or.h | |
parent | b6faca2268712ba73aa18f7fc99ed106e107f57d (diff) | |
download | tor-30a07b2ecd6093bd0f066a842a4fdae220be517d.tar.gz tor-30a07b2ecd6093bd0f066a842a4fdae220be517d.zip |
non-dirservers expire routerinfo's that are more than a day old
svn:r1907
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index 149c197d5f..88bd8ee56a 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -128,6 +128,11 @@ /** How often do we rotate TLS contexts? */ #define MAX_SSL_KEY_LIFETIME (120*60) +/** How old do we allow a router to get before removing it, either + * from the descriptor list (for dirservers) or the router list (for others)? + * In seconds. */ +#define ROUTER_MAX_AGE (60*60*24) + #define CIRC_ID_TYPE_LOWER 0 #define CIRC_ID_TYPE_HIGHER 1 @@ -1298,6 +1303,7 @@ void routerlist_clear_trusted_directories(void); void routerinfo_free(routerinfo_t *router); routerinfo_t *routerinfo_copy(const routerinfo_t *router); void router_mark_as_down(char *nickname); +void routerlist_remove_old_routers(void); int router_load_routerlist_from_file(char *routerfile, int trusted); int router_load_routerlist_from_string(const char *s, int trusted); int router_load_routerlist_from_directory(const char *s,crypto_pk_env_t *pkey); |