Tor  0.4.7.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 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.

◆ address

char* address

Hostname.

Definition at line 26 of file dir_server_st.h.

◆ 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(), and dir_server_free_().

◆ 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.

◆ 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 reachable_addr_allows_dir_server(), and reachable_addr_choose_from_dir_server().

◆ 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.

◆ ipv4_dirport

uint16_t ipv4_dirport

Directory port.

Definition at line 30 of file dir_server_st.h.

Referenced by add_trusted_dir_to_nodelist_addr_set().

◆ 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().

◆ 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().

◆ 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().

◆ 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(), and dir_server_add().

◆ is_running

unsigned int is_running

True iff we think this server is running.

Definition at line 39 of file dir_server_st.h.

◆ type

What kind of authority is this? (Bitfield.)

Definition at line 48 of file dir_server_st.h.

◆ 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.


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