diff options
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h index 1000297bc1..26ec35b4c5 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1252,7 +1252,7 @@ typedef struct local_routerstatus_t { * up? */ #define MAX_ROUTERDESC_DOWNLOAD_FAILURES 8 -/** Contents of a (v2 or later) network status object. */ +/** Contents of a v2 (non-consensus, non-vote) network status object. */ typedef struct networkstatus_t { /** When did we receive the network-status document? */ time_t received_on; @@ -1293,6 +1293,32 @@ typedef struct networkstatus_t { * sorted by identity_digest. */ } networkstatus_t; +/** DOCDOC */ +typedef struct ns_vote_routerstatus_t { + routerstatus_t status; + uint64_t flags; + char *version; +} ns_vote_routerstatus_t; + +/** DOCDOC */ +typedef struct networkstatus_vote_t { + time_t published; + time_t valid_after; + time_t fresh_until; + time_t valid_until; + char *client_versions; + char *server_versions; + char **known_flags; + char identity_digest[DIGEST_LEN]; + char *address; + uint32_t addr; + uint16_t dir_port; + uint16_t or_port; + struct authority_cert_t *cert; + char *contact; + smartlist_t *routerstatus_list; +} networkstatus_vote_t; + /** Contents of a directory of onion routers. */ typedef struct { /** Map from server identity digest to a member of routers. */ |