tor  0.4.2.0-alpha-dev
Data Fields
vote_routerstatus_t Struct Reference

#include <vote_routerstatus_st.h>

Data Fields

routerstatus_t status
 
uint64_t flags
 
char * version
 
char * protocols
 
unsigned int has_measured_bw:1
 
unsigned int has_ed25519_listing:1
 
unsigned int ed25519_reflects_consensus:1
 
uint32_t measured_bw_kb
 
vote_microdesc_hash_tmicrodesc
 
uint8_t ed25519_id [ED25519_PUBKEY_LEN]
 

Detailed Description

The claim about a single router, made in a vote.

Definition at line 14 of file vote_routerstatus_st.h.

Field Documentation

◆ ed25519_id

uint8_t vote_routerstatus_t::ed25519_id[ED25519_PUBKEY_LEN]

Ed25519 identity for this router, or zero if it has none.

Definition at line 38 of file vote_routerstatus_st.h.

◆ ed25519_reflects_consensus

unsigned int vote_routerstatus_t::ed25519_reflects_consensus

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.

Definition at line 33 of file vote_routerstatus_st.h.

◆ flags

uint64_t vote_routerstatus_t::flags

Bit-field for all recognized flags; index into networkstatus_t.known_flags.

Definition at line 20 of file vote_routerstatus_st.h.

◆ has_ed25519_listing

unsigned int vote_routerstatus_t::has_ed25519_listing

True iff the vote included an entry for ed25519 ID, or included "id ed25519 none" to indicate that there was no ed25519 ID.

Definition at line 29 of file vote_routerstatus_st.h.

◆ has_measured_bw

unsigned int vote_routerstatus_t::has_measured_bw

The vote had a measured bw

Definition at line 26 of file vote_routerstatus_st.h.

Referenced by measured_bw_line_apply().

◆ measured_bw_kb

uint32_t vote_routerstatus_t::measured_bw_kb

Measured bandwidth (capacity) of the router

Definition at line 34 of file vote_routerstatus_st.h.

Referenced by measured_bw_line_apply().

◆ microdesc

vote_microdesc_hash_t* vote_routerstatus_t::microdesc

The hash or hashes that the authority claims this microdesc has.

Definition at line 36 of file vote_routerstatus_st.h.

Referenced by vote_routerstatus_free_().

◆ protocols

char* vote_routerstatus_t::protocols

The protocols that this authority says this router provides.

Definition at line 24 of file vote_routerstatus_st.h.

Referenced by vote_routerstatus_free_().

◆ status

routerstatus_t vote_routerstatus_t::status

Underlying 'status' object for this router. Flags are redundant.

Definition at line 15 of file vote_routerstatus_st.h.

Referenced by compare_digest_to_vote_routerstatus_entry(), compare_vote_rs(), compute_routerstatus_consensus(), and vote_routerstatus_free_().

◆ version

char* vote_routerstatus_t::version

The version that the authority says this router is running.

Definition at line 22 of file vote_routerstatus_st.h.

Referenced by vote_routerstatus_free_().


The documentation for this struct was generated from the following file: