tor  master
Data Fields
dir_server_t Struct Reference

#include <or.h>

Collaboration diagram for dir_server_t:
Collaboration graph
[legend]

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.

Field Documentation

◆ addr

uint32_t addr

IPv4 address.

◆ addr_current_at

time_t addr_current_at

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

◆ address

char* address

Hostname.

◆ digest

char digest[DIGEST_LEN]

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

◆ dir_port

uint16_t dir_port

Directory port.

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

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

◆ ipv6_addr

tor_addr_t ipv6_addr

IPv6 address if present; AF_UNSPEC if not

◆ ipv6_orport

uint16_t ipv6_orport

OR port corresponding to ipv6_addr.

◆ is_authority

unsigned int is_authority

True iff this is a directory authority of some kind.

◆ is_running

unsigned int is_running

True iff we think this server is running.

◆ or_port

uint16_t or_port

OR port: Used for tunneling connections.

◆ type

What kind of authority is this? (Bitfield.)

◆ v3_identity_digest

char v3_identity_digest[DIGEST_LEN]

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


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