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

#include <routerinfo_st.h>

Data Fields

signed_descriptor_t cache_info
 
char * nickname
 
tor_addr_t ipv4_addr
 
uint16_t ipv4_orport
 
uint16_t ipv4_dirport
 
tor_addr_t ipv6_addr
 
uint16_t ipv6_orport
 
char * tap_onion_pkey
 
size_t tap_onion_pkey_len
 
crypto_pk_tidentity_pkey
 
struct curve25519_public_key_tonion_curve25519_pkey
 
time_t cert_expiration_time
 
char * platform
 
char * protocol_list
 
uint32_t bandwidthrate
 
uint32_t bandwidthburst
 
uint32_t bandwidthcapacity
 
smartlist_texit_policy
 
struct short_policy_tipv6_exit_policy
 
long uptime
 
smartlist_tdeclared_family
 
struct smartlist_tfamily_ids
 
char * contact_info
 
unsigned int is_hibernating:1
 
unsigned int caches_extra_info:1
 
unsigned int allow_single_hop_exits:1
 
unsigned int wants_to_be_hs_dir:1
 
unsigned int policy_is_reject_star:1
 
unsigned int needs_retest_if_added:1
 
unsigned int supports_tunnelled_dir_requests:1
 
unsigned int omit_from_vote:1
 
protover_summary_flags_t pv
 
uint8_t purpose
 

Detailed Description

Information about another onion router in the network.

Definition at line 21 of file routerinfo_st.h.

Field Documentation

◆ allow_single_hop_exits

unsigned int allow_single_hop_exits

Whether the router says it allows single hop exits.

Definition at line 80 of file routerinfo_st.h.

Referenced by node_allows_single_hop_exits(), and router_parse_entry_from_string().

◆ bandwidthburst

uint32_t bandwidthburst

◆ bandwidthcapacity

uint32_t bandwidthcapacity

◆ bandwidthrate

uint32_t bandwidthrate

◆ cache_info

signed_descriptor_t cache_info

Definition at line 22 of file routerinfo_st.h.

◆ caches_extra_info

unsigned int caches_extra_info

Whether the router says it caches and serves extrainfo documents.

Definition at line 78 of file routerinfo_st.h.

Referenced by router_parse_entry_from_string(), and router_supports_extrainfo().

◆ cert_expiration_time

time_t cert_expiration_time

What's the earliest expiration time on all the certs in this routerinfo?

Definition at line 50 of file routerinfo_st.h.

Referenced by router_add_to_routerlist(), router_parse_entry_from_string(), and update_consensus_router_descriptor_downloads().

◆ contact_info

char* contact_info

◆ declared_family

smartlist_t* declared_family

◆ exit_policy

smartlist_t* exit_policy

◆ family_ids

struct smartlist_t* family_ids

A list of strings representing router family IDs. May be null. Extracted from family-certs. (Happy families only.)

Definition at line 74 of file routerinfo_st.h.

Referenced by dirvote_create_microdescriptor(), node_get_family_ids(), router_parse_entry_from_string(), and routerinfo_free_().

◆ identity_pkey

crypto_pk_t* identity_pkey

◆ ipv4_addr

tor_addr_t ipv4_addr

◆ ipv4_dirport

uint16_t ipv4_dirport

Definition at line 28 of file routerinfo_st.h.

◆ ipv4_orport

uint16_t ipv4_orport

Definition at line 27 of file routerinfo_st.h.

◆ ipv6_addr

tor_addr_t ipv6_addr

◆ ipv6_exit_policy

struct short_policy_t* ipv6_exit_policy

◆ ipv6_orport

uint16_t ipv6_orport

Definition at line 32 of file routerinfo_st.h.

◆ is_hibernating

unsigned int is_hibernating

◆ needs_retest_if_added

unsigned int needs_retest_if_added

True if, after we have added this router, we should re-launch tests for it.

Definition at line 89 of file routerinfo_st.h.

Referenced by dirserv_add_descriptor().

◆ nickname

char* nickname

◆ omit_from_vote

unsigned int omit_from_vote

Used during voting to indicate that we should not include an entry for this routerinfo. Used only during voting.

Definition at line 98 of file routerinfo_st.h.

Referenced by routers_make_ed_keys_unique().

◆ onion_curve25519_pkey

struct curve25519_public_key_t* onion_curve25519_pkey

◆ platform

char* platform

◆ policy_is_reject_star

unsigned int policy_is_reject_star

◆ protocol_list

char* protocol_list

Encoded list of subprotocol versions supported by this OR

Definition at line 54 of file routerinfo_st.h.

Referenced by router_build_fresh_unsigned_routerinfo(), router_dump_router_to_string(), router_parse_entry_from_string(), and routerinfo_free_().

◆ purpose

uint8_t purpose

◆ pv

Flags to summarize the protocol versions for this routerinfo_t.

Definition at line 101 of file routerinfo_st.h.

Referenced by extend_info_from_node(), node_get_protover_summary_flags(), and router_parse_entry_from_string().

◆ supports_tunnelled_dir_requests

unsigned int supports_tunnelled_dir_requests

True iff this router included "tunnelled-dir-server" in its descriptor, implying it accepts tunnelled directory requests, or it advertised dir_port > 0.

Definition at line 94 of file routerinfo_st.h.

Referenced by dirauth_set_routerstatus_from_routerinfo(), dirclient_fetches_from_authorities(), dirserv_thinks_router_is_hs_dir(), node_is_dir(), router_build_fresh_unsigned_routerinfo(), router_differences_are_cosmetic(), router_dump_router_to_string(), router_parse_entry_from_string(), and set_routerstatus_from_routerinfo().

◆ tap_onion_pkey

char* tap_onion_pkey

Public RSA TAP key for onions, ASN.1 encoded. We store this in its encoded format since storing it as a crypto_pk_t uses significantly more memory.

This may be absent.

Definition at line 41 of file routerinfo_st.h.

Referenced by dirserv_add_descriptor(), dirvote_create_microdescriptor(), router_build_fresh_unsigned_routerinfo(), router_dump_router_to_string(), router_parse_entry_from_string(), router_tap_onion_keys_eq(), and routerinfo_free_().

◆ tap_onion_pkey_len

size_t tap_onion_pkey_len

◆ uptime

long uptime

How many seconds the router claims to have been up

Definition at line 68 of file routerinfo_st.h.

Referenced by node_get_declared_uptime(), real_uptime(), router_differences_are_cosmetic(), and router_parse_entry_from_string().

◆ wants_to_be_hs_dir

unsigned int wants_to_be_hs_dir

True iff this router claims to be a hidden service directory.

Definition at line 83 of file routerinfo_st.h.

Referenced by dirserv_thinks_router_is_hs_dir(), and router_parse_entry_from_string().


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