summaryrefslogtreecommitdiff
path: root/src/or/routerlist.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-11-12 12:05:27 -0500
committerNick Mathewson <nickm@torproject.org>2011-05-05 20:54:13 -0400
commit711100c5971f5e14e741cca0ad52c85201383830 (patch)
treea8ab4ea814071ad5c1c598cb9d377c843e65e80f /src/or/routerlist.h
parent4cc348e896f74a4e02ef15a77d22fc636b08afae (diff)
downloadtor-711100c5971f5e14e741cca0ad52c85201383830.tar.gz
tor-711100c5971f5e14e741cca0ad52c85201383830.zip
Move dummy authority.z fetch out of update_router_descriptor_downloads
To make sure that a server learns if its IP has changed, the server sometimes launches authority.z descriptor fetches from update_router_descriptor_downloads. That's nice, but we're moving towards a situation where update_router_descriptor_downloads doesn't always get called. So this patch breaks the authority.z check-and-fetch into a new function. This function also renames last_routerdesc_download to a more appropriate last_descriptor_download, and adds a new update_all_descriptor_downloads() function. (For now, this is unnecessary, since servers don't actually use microdescriptors. But that could change, or bridges could start using microdescriptors, and then we'll be glad this is refactored nicely.)
Diffstat (limited to 'src/or/routerlist.h')
-rw-r--r--src/or/routerlist.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/routerlist.h b/src/or/routerlist.h
index 940e206365..a613c34b88 100644
--- a/src/or/routerlist.h
+++ b/src/or/routerlist.h
@@ -144,6 +144,7 @@ int any_trusted_dir_is_v1_authority(void);
void update_consensus_router_descriptor_downloads(time_t now, int is_vote,
networkstatus_t *consensus);
void update_router_descriptor_downloads(time_t now);
+void update_all_descriptor_downloads(time_t now);
void update_extrainfo_downloads(time_t now);
int router_have_minimum_dir_info(void);
void router_dir_info_changed(void);