Tor 0.4.9.3-alpha-dev
Loading...
Searching...
No Matches
Data Fields
dir_server_t Struct Reference

#include <dir_server_st.h>

Data Fields

char * description
 
char * nickname
 
char * address
 
tor_addr_t ipv4_addr
 
uint16_t ipv4_dirport
 
uint16_t ipv4_orport
 
tor_addr_t ipv6_addr
 
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
 
struct smartlist_tauth_dirports
 
routerstatus_t fake_status
 

Detailed Description

Represents information about a single trusted or fallback directory server.

Definition at line 23 of file dir_server_st.h.

Field Documentation

◆ addr_current_at

time_t addr_current_at

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

Definition at line 50 of file dir_server_st.h.

Referenced by trusted_dirs_load_certs_from_string().

◆ address

char* address

Hostname.

Definition at line 26 of file dir_server_st.h.

Referenced by dir_server_free_(), dir_server_new(), and trusted_dirs_load_certs_from_string().

◆ auth_dirports

struct smartlist_t* auth_dirports

Authority only. Can be null. If present, a list of auth_dirport_t representing HTTP dirports for this authority.

Definition at line 55 of file dir_server_st.h.

Referenced by add_trusted_dir_to_nodelist_addr_set(), dir_server_free_(), trusted_dir_server_add_dirport(), and trusted_dir_server_get_dirport_exact().

◆ description

char* description

Definition at line 24 of file dir_server_st.h.

◆ digest

char digest[DIGEST_LEN]

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

Definition at line 35 of file dir_server_st.h.

Referenced by dir_server_new(), and update_consensus_router_descriptor_downloads().

◆ fake_status

routerstatus_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 57 of file dir_server_st.h.

Referenced by authority_certs_fetch_missing(), connection_dir_client_reached_eof(), dir_server_new(), reachable_addr_allows_dir_server(), reachable_addr_choose_from_dir_server(), router_pick_trusteddirserver_impl(), and update_consensus_router_descriptor_downloads().

◆ has_accepted_serverdesc

unsigned int has_accepted_serverdesc

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

Definition at line 45 of file dir_server_st.h.

Referenced by handle_response_upload_dir().

◆ ipv4_addr

tor_addr_t ipv4_addr

Definition at line 29 of file dir_server_st.h.

◆ ipv4_dirport

uint16_t ipv4_dirport

◆ ipv4_orport

uint16_t ipv4_orport

OR port: Used for tunneling connections.

Definition at line 31 of file dir_server_st.h.

Referenced by add_trusted_dir_to_nodelist_addr_set(), and dir_server_new().

◆ ipv6_addr

tor_addr_t ipv6_addr

IPv6 address if present; AF_UNSPEC if not

Definition at line 32 of file dir_server_st.h.

Referenced by add_trusted_dir_to_nodelist_addr_set(), and dir_server_new().

◆ ipv6_orport

uint16_t ipv6_orport

OR port corresponding to ipv6_addr.

Definition at line 33 of file dir_server_st.h.

Referenced by add_trusted_dir_to_nodelist_addr_set(), and dir_server_new().

◆ is_authority

unsigned int is_authority

True iff this is a directory authority of some kind.

Definition at line 40 of file dir_server_st.h.

Referenced by add_trusted_dir_to_nodelist_addr_set(), dir_server_add(), dir_server_new(), dirserver_choose_by_weight(), and trusted_dir_server_add_dirport().

◆ is_running

unsigned int is_running

True iff we think this server is running.

Definition at line 39 of file dir_server_st.h.

Referenced by dir_server_new(), and router_set_status().

◆ nickname

char* nickname

Definition at line 25 of file dir_server_st.h.

◆ type

What kind of authority is this? (Bitfield.)

Definition at line 48 of file dir_server_st.h.

Referenced by dir_server_new(), and init_keys().

◆ v3_identity_digest

char v3_identity_digest[DIGEST_LEN]

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

Definition at line 36 of file dir_server_st.h.

Referenced by dir_server_new(), and init_keys().

◆ weight

double weight

Definition at line 34 of file dir_server_st.h.


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