tor  0.4.1.0-alpha-dev
Data Fields
dir_server_t Struct Reference

#include <dir_server_st.h>

Data Fields

char * description
 
char * nickname
 
char * address
 
tor_addr_t ipv6_addr
 
uint32_t addr
 
uint16_t dir_port
 
uint16_t or_port
 
uint16_t ipv6_orport
 
double weight
 
char digest [DIGEST_LEN]
 
char v3_identity_digest [DIGEST_LEN]
 
unsigned int is_running:1
 
unsigned int is_authority:1
 
unsigned int has_accepted_serverdesc:1
 
dirinfo_type_t type
 
time_t addr_current_at
 
routerstatus_t fake_status
 

Detailed Description

Represents information about a single trusted or fallback directory server.

Definition at line 16 of file dir_server_st.h.

Field Documentation

◆ addr

uint32_t dir_server_t::addr

IPv4 address.

Definition at line 23 of file dir_server_st.h.

◆ addr_current_at

time_t dir_server_t::addr_current_at

When was the document that we derived the address information from published?

Definition at line 43 of file dir_server_st.h.

◆ address

char* dir_server_t::address

Hostname.

Definition at line 19 of file dir_server_st.h.

Referenced by dir_server_free_().

◆ digest

char dir_server_t::digest[DIGEST_LEN]

Weight used when selecting this node at random Digest of identity key.

Definition at line 28 of file dir_server_st.h.

◆ dir_port

uint16_t dir_server_t::dir_port

Directory port.

Definition at line 24 of file dir_server_st.h.

◆ fake_status

routerstatus_t dir_server_t::fake_status

Used when we need to pass this trusted dir_server_t to directory_request_set_routerstatus. as a routerstatus_t. Not updated by the router-status management code!

Definition at line 46 of file dir_server_st.h.

Referenced by fascist_firewall_allows_dir_server(), and fascist_firewall_choose_address_dir_server().

◆ has_accepted_serverdesc

unsigned int dir_server_t::has_accepted_serverdesc

True iff this server has accepted the most recent server descriptor we tried to upload to it.

Definition at line 38 of file dir_server_st.h.

◆ ipv6_addr

tor_addr_t dir_server_t::ipv6_addr

IPv6 address if present; AF_UNSPEC if not

Definition at line 22 of file dir_server_st.h.

◆ ipv6_orport

uint16_t dir_server_t::ipv6_orport

OR port corresponding to ipv6_addr.

Definition at line 26 of file dir_server_st.h.

◆ is_authority

unsigned int dir_server_t::is_authority

True iff this is a directory authority of some kind.

Definition at line 33 of file dir_server_st.h.

Referenced by dir_server_add().

◆ is_running

unsigned int dir_server_t::is_running

True iff we think this server is running.

Definition at line 32 of file dir_server_st.h.

◆ or_port

uint16_t dir_server_t::or_port

OR port: Used for tunneling connections.

Definition at line 25 of file dir_server_st.h.

◆ type

dirinfo_type_t dir_server_t::type

What kind of authority is this? (Bitfield.)

Definition at line 41 of file dir_server_st.h.

◆ v3_identity_digest

char dir_server_t::v3_identity_digest[DIGEST_LEN]

Digest of v3 (authority only, high-security) identity key.

Definition at line 29 of file dir_server_st.h.


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