Tor 0.4.9.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 113 of file rephist.c.

Field Documentation

◆ changed

time_t changed

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

Definition at line 117 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 121 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 124 of file rephist.c.

◆ since

time_t since

When did we start tracking this OR?

Definition at line 115 of file rephist.c.

◆ start_of_downtime

time_t start_of_downtime

Definition at line 136 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 132 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 134 of file rephist.c.

Referenced by get_stability(), and rep_history_clean().

◆ total_weighted_time

unsigned long total_weighted_time

Definition at line 138 of file rephist.c.

◆ weighted_run_length

unsigned long weighted_run_length

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

Definition at line 129 of file rephist.c.

Referenced by get_stability(), and rep_hist_make_router_pessimal().

◆ weighted_uptime

unsigned long weighted_uptime

Definition at line 137 of file rephist.c.


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