Tor  0.4.7.0-alpha-dev
Data Fields
or_history_t Struct Reference

Data Fields

time_t since
 
time_t changed
 
tor_addr_t last_reached_addr
 
uint16_t last_reached_port
 
unsigned long weighted_run_length
 
time_t start_of_run
 
double total_run_weights
 
time_t start_of_downtime
 
unsigned long weighted_uptime
 
unsigned long total_weighted_time
 

Detailed Description

History of an OR.

Definition at line 112 of file rephist.c.

Field Documentation

◆ changed

time_t changed

When did we most recently note a change to this OR?

Definition at line 116 of file rephist.c.

Referenced by rep_history_clean().

◆ last_reached_addr

tor_addr_t last_reached_addr

The address at which we most recently connected to this OR successfully.

Definition at line 120 of file rephist.c.

◆ last_reached_port

uint16_t last_reached_port

The port at which we most recently connected to this OR successfully

Definition at line 123 of file rephist.c.

◆ since

time_t since

When did we start tracking this OR?

Definition at line 114 of file rephist.c.

◆ start_of_run

time_t start_of_run

If the router is now online (according to stability-checking rules), when did it come online?

Definition at line 131 of file rephist.c.

Referenced by get_stability(), get_total_weighted_time(), get_weighted_fractional_uptime(), rep_hist_get_uptime(), and rep_history_clean().

◆ total_run_weights

double total_run_weights

Sum of weights for runs in weighted_run_length.

Definition at line 133 of file rephist.c.

Referenced by get_stability(), and rep_history_clean().

◆ weighted_run_length

unsigned long weighted_run_length

Weighted sum total of all times that this router has been online.

Definition at line 128 of file rephist.c.

Referenced by get_stability(), and rep_hist_make_router_pessimal().


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