tor  master
Data Fields
routerinfo_t Struct Reference

#include <or.h>

Collaboration diagram for routerinfo_t:
Collaboration graph
[legend]

Data Fields

signed_descriptor_t cache_info
 
char * nickname
 
uint32_t addr
 
uint16_t or_port
 
uint16_t dir_port
 
tor_addr_t ipv6_addr
 
uint16_t ipv6_orport
 
crypto_pk_tonion_pkey
 
crypto_pk_tidentity_pkey
 
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
 
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.

Field Documentation

◆ addr

uint32_t addr

IPv4 address of OR, in host order.

◆ allow_single_hop_exits

unsigned int allow_single_hop_exits

Whether the router says it allows single hop exits.

◆ bandwidthburst

uint32_t bandwidthburst

How large is this OR's token bucket?

◆ bandwidthcapacity

uint32_t bandwidthcapacity

How many bytes/s is this router known to handle?

◆ bandwidthrate

uint32_t bandwidthrate

How many bytes does this OR add to its token bucket per second?

◆ caches_extra_info

unsigned int caches_extra_info

Whether the router says it caches and serves extrainfo documents.

◆ cert_expiration_time

time_t cert_expiration_time

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

◆ contact_info

char* contact_info

Declared contact info for this router.

◆ declared_family

smartlist_t* declared_family

Nicknames of router which this router claims are its family.

◆ dir_port

uint16_t dir_port

Port for HTTP directory connections.

◆ exit_policy

smartlist_t* exit_policy

What streams will this OR permit to exit on IPv4? NULL for 'reject *:*'.

◆ identity_pkey

crypto_pk_t* identity_pkey

Public RSA key for signing.

◆ ipv6_addr

tor_addr_t ipv6_addr

A router's IPv6 address, if it has one.

◆ ipv6_exit_policy

struct short_policy_t* ipv6_exit_policy

What streams will this OR permit to exit on IPv6? NULL for 'reject *:*'

◆ is_hibernating

unsigned int is_hibernating

Whether the router claims to be 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.

◆ nickname

char* nickname

Human-readable OR name.

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

◆ onion_curve25519_pkey

curve25519_public_key_t* onion_curve25519_pkey

Public curve25519 key for onions

◆ onion_pkey

crypto_pk_t* onion_pkey

Public RSA key for onions.

◆ or_port

uint16_t or_port

Port for TLS connections.

◆ platform

char* platform

What software/operating system is this OR using?

◆ policy_is_reject_star

unsigned int policy_is_reject_star

True iff the exit policy for this router rejects everything.

◆ protocol_list

char* protocol_list

Encoded list of subprotocol versions supported by this OR

◆ purpose

uint8_t purpose

In what way did we find out about this router? One of ROUTER_PURPOSE_*. Routers of different purposes are kept segregated and used for different things; see notes on ROUTER_PURPOSE_* macros above.

◆ pv

Flags to summarize the protocol versions for this routerinfo_t.

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

◆ uptime

long uptime

How many seconds the router claims to have been up

◆ wants_to_be_hs_dir

unsigned int wants_to_be_hs_dir

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


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