diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-15 13:23:02 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-15 13:23:02 -0400 |
commit | 72d2fd83d898c2a7151c7fdbbffbc4c25fe34894 (patch) | |
tree | 2d0a4945d054bb87e4f1a860de574c89e50aabc2 /src/or/or.h | |
parent | d2942d127da454a1ffb69da176582b5d74918bb1 (diff) | |
download | tor-72d2fd83d898c2a7151c7fdbbffbc4c25fe34894.tar.gz tor-72d2fd83d898c2a7151c7fdbbffbc4c25fe34894.zip |
Split vote_{microdesc_hash,routerstatus}_t into their own headers
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 41 |
1 files changed, 2 insertions, 39 deletions
diff --git a/src/or/or.h b/src/or/or.h index f2de729ece..23f565857b 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -1858,45 +1858,8 @@ typedef struct microdesc_t { } microdesc_t; typedef struct node_t node_t; - -/** Linked list of microdesc hash lines for a single router in a directory - * vote. - */ -typedef struct vote_microdesc_hash_t { - /** Next element in the list, or NULL. */ - struct vote_microdesc_hash_t *next; - /** The raw contents of the microdesc hash line, from the "m" through the - * newline. */ - char *microdesc_hash_line; -} vote_microdesc_hash_t; - -/** The claim about a single router, made in a vote. */ -typedef struct vote_routerstatus_t { - routerstatus_t status; /**< Underlying 'status' object for this router. - * Flags are redundant. */ - /** How many known-flags are allowed in a vote? This is the width of - * the flags field of vote_routerstatus_t */ -#define MAX_KNOWN_FLAGS_IN_VOTE 64 - uint64_t flags; /**< Bit-field for all recognized flags; index into - * networkstatus_t.known_flags. */ - char *version; /**< The version that the authority says this router is - * running. */ - char *protocols; /**< The protocols that this authority says this router - * provides. */ - unsigned int has_measured_bw:1; /**< The vote had a measured bw */ - /** True iff the vote included an entry for ed25519 ID, or included - * "id ed25519 none" to indicate that there was no ed25519 ID. */ - unsigned int has_ed25519_listing:1; - /** True if the Ed25519 listing here is the consensus-opinion for the - * Ed25519 listing; false if there was no consensus on Ed25519 key status, - * or if this VRS doesn't reflect it. */ - unsigned int ed25519_reflects_consensus:1; - uint32_t measured_bw_kb; /**< Measured bandwidth (capacity) of the router */ - /** The hash or hashes that the authority claims this microdesc has. */ - vote_microdesc_hash_t *microdesc; - /** Ed25519 identity for this router, or zero if it has none. */ - uint8_t ed25519_id[ED25519_PUBKEY_LEN]; -} vote_routerstatus_t; +typedef struct vote_microdesc_hash_t vote_microdesc_hash_t; +typedef struct vote_routerstatus_t vote_routerstatus_t; /** A signature of some document by an authority. */ typedef struct document_signature_t { |