summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-06-04 19:19:01 +0000
committerNick Mathewson <nickm@torproject.org>2007-06-04 19:19:01 +0000
commitbb6f53d60c78ad8d747bd48cb621083fe1de6bad (patch)
treef3eb9fb510ca1a417c4c5dfd2242253ade7f11e4 /src/or/or.h
parent32d12dcfbc02bc2e8c65bbed4e10f990fc41b77c (diff)
downloadtor-bb6f53d60c78ad8d747bd48cb621083fe1de6bad.tar.gz
tor-bb6f53d60c78ad8d747bd48cb621083fe1de6bad.zip
r13243@catbus: nickm | 2007-06-04 15:17:15 -0400
Start of code to compute consensus network-status stuff from a bunch of votes. Strangely, it does not yet feel like an enormous ugly hack. svn:r10489
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 7afa3eccc0..3b5f77ae5b 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1324,6 +1324,8 @@ typedef struct networkstatus_vote_t {
char *contact;
+ char vote_digest[DIGEST_LEN];
+
smartlist_t *routerstatus_list;
} networkstatus_vote_t;
@@ -2705,13 +2707,15 @@ int dirserv_statuses_are_old(smartlist_t *fps, time_t cutoff);
size_t dirserv_estimate_data_size(smartlist_t *fps, int is_serverdescs,
int compressed);
int routerstatus_format_entry(char *buf, size_t buf_len,
- routerstatus_t *rs, const char *platform);
+ routerstatus_t *rs, const char *platform,
+ int first_line_only);
void dirserv_free_all(void);
void cached_dir_decref(cached_dir_t *d);
/********************************* dirvote.c ************************/
void networkstatus_vote_free(networkstatus_vote_t *ns);
+char *networkstatus_compute_consensus(smartlist_t *votes);
/********************************* dns.c ***************************/