#include <or.h>
Data Fields | |
networkstatus_type_t | type: 8 |
consensus_flavor_t | flavor: 8 |
time_t | published |
time_t | valid_after |
time_t | fresh_until |
time_t | valid_until |
int | consensus_method |
smartlist_t * | supported_methods |
int | vote_seconds |
int | dist_seconds |
char * | client_versions |
char * | server_versions |
smartlist_t * | known_flags |
smartlist_t * | net_params |
smartlist_t * | weight_params |
smartlist_t * | voters |
struct authority_cert_t * | cert |
digests_t | digests |
smartlist_t * | routerstatus_list |
digestmap_t * | desc_digest_map |
Vote, consensus, or opinion?
Referenced by format_networkstatus_vote(), get_voter(), networkstatus_add_detached_signatures(), networkstatus_check_consensus_signature(), networkstatus_parse_vote_from_string(), and networkstatus_vote_free().
If a consensus, what kind?
Referenced by dirvote_add_signatures_to_pending_consensus(), networkstatus_add_detached_signatures(), networkstatus_format_signatures(), networkstatus_parse_vote_from_string(), and networkstatus_set_current_consensus().
time_t networkstatus_t::published |
Vote only: Time when vote was written.
Referenced by dirvote_add_vote(), format_networkstatus_vote(), and networkstatus_parse_vote_from_string().
time_t networkstatus_t::valid_after |
Time after which this vote or consensus applies.
Referenced by directory_get_from_dirserver(), dirvote_add_vote(), dirvote_recalculate_timing(), format_networkstatus_vote(), networkstatus_add_detached_signatures(), networkstatus_get_detached_signatures(), networkstatus_get_live_consensus(), networkstatus_get_reasonably_live_consensus(), networkstatus_parse_vote_from_string(), networkstatus_set_current_consensus(), router_reload_consensus_networkstatus(), and update_consensus_networkstatus_fetch_time().
time_t networkstatus_t::fresh_until |
Time before which this is the most recent vote or consensus.
Referenced by directory_handle_command_get(), dirvote_recalculate_timing(), format_networkstatus_vote(), networkstatus_add_detached_signatures(), networkstatus_get_detached_signatures(), networkstatus_parse_vote_from_string(), and update_consensus_networkstatus_fetch_time().
time_t networkstatus_t::valid_until |
Time after which this vote or consensus should not be used.
Referenced by format_networkstatus_vote(), networkstatus_add_detached_signatures(), networkstatus_get_detached_signatures(), networkstatus_parse_vote_from_string(), networkstatus_set_current_consensus(), run_scheduled_events(), signed_descs_update_status_from_consensus_networkstatus(), and update_consensus_networkstatus_fetch_time().
Consensus only: what method was used to produce this consensus?
Referenced by networkstatus_parse_vote_from_string().
Vote only: what methods is this voter willing to use?
Referenced by networkstatus_parse_vote_from_string(), and networkstatus_vote_free().
How long does this vote/consensus claim that authorities take to distribute their votes to one another?
Referenced by dirvote_recalculate_timing(), format_networkstatus_vote(), and networkstatus_parse_vote_from_string().
How long does this vote/consensus claim that authorities take to distribute their consensus signatures to one another?
Referenced by dirvote_recalculate_timing(), format_networkstatus_vote(), and networkstatus_parse_vote_from_string().
Comma-separated list of recommended client software, or NULL if this voter has no opinion.
Referenced by format_networkstatus_vote(), getinfo_helper_events(), networkstatus_parse_vote_from_string(), networkstatus_vote_free(), and routers_update_all_from_networkstatus().
List of flags that this vote/consensus applies to routers. If a flag is not listed here, the voter has no opinion on what its value should be.
Referenced by format_networkstatus_vote(), networkstatus_parse_vote_from_string(), networkstatus_vote_free(), and routerstatus_parse_entry_from_string().
List of key=value strings for the parameters in this vote or consensus, sorted by key.
Referenced by format_networkstatus_vote(), networkstatus_get_param(), networkstatus_parse_vote_from_string(), and networkstatus_vote_free().
List of key=value strings for the bw weight parameters in the consensus.
Referenced by networkstatus_get_bw_weight(), and networkstatus_parse_vote_from_string().
List of networkstatus_voter_info_t. For a vote, only one element is included. For a consensus, one element is included for every voter whose vote contributed to the consensus.
Referenced by authority_certs_fetch_missing(), client_likes_consensus(), dirvote_add_vote(), format_networkstatus_vote(), get_voter(), networkstatus_check_consensus_signature(), networkstatus_format_signatures(), networkstatus_get_voter_by_id(), networkstatus_parse_vote_from_string(), networkstatus_vote_free(), and update_consensus_router_descriptor_downloads().
struct authority_cert_t* networkstatus_t::cert [read] |
Vote only: the voter's certificate.
Referenced by dirvote_add_vote(), format_networkstatus_vote(), networkstatus_parse_vote_from_string(), and networkstatus_vote_free().
Digests of this document, as signed.
Referenced by networkstatus_add_detached_signatures(), networkstatus_check_document_signature(), networkstatus_get_detached_signatures(), networkstatus_parse_vote_from_string(), and networkstatus_set_current_consensus().
List of router statuses, sorted by identity digest. For a vote, the elements are vote_routerstatus_t; for a consensus, the elements are routerstatus_t.
Referenced by control_event_newconsensus(), count_usable_descriptors(), format_networkstatus_vote(), getinfo_helper_networkstatus(), hid_serv_get_responsible_directories(), networkstatus_copy_old_consensus_info(), networkstatus_parse_vote_from_string(), networkstatus_reset_warnings(), networkstatus_verify_bw_weights(), networkstatus_vote_find_entry(), networkstatus_vote_find_entry_idx(), networkstatus_vote_free(), notify_control_networkstatus_changed(), router_get_consensus_status_by_descriptor_digest(), router_get_consensus_status_by_id(), router_get_consensus_status_by_nickname(), router_pick_directory_server_impl(), routerlist_remove_old_routers(), routers_update_status_from_consensus_networkstatus(), routerstatus_list_update_named_server_map(), update_consensus_router_descriptor_downloads(), and upload_service_descriptor().
digestmap_t* networkstatus_t::desc_digest_map |
If present, a map from descriptor digest to elements of routerstatus_list.
Referenced by networkstatus_vote_free(), router_get_consensus_status_by_descriptor_digest(), and signed_descs_update_status_from_consensus_networkstatus().