#include <or.h>
Data Fields | |
uint32_t | _magic |
time_t | next_write |
time_t | LastWritten |
time_t | AccountingIntervalStart |
uint64_t | AccountingBytesReadInInterval |
uint64_t | AccountingBytesWrittenInInterval |
int | AccountingSecondsActive |
uint64_t | AccountingExpectedUsage |
config_line_t * | EntryGuards |
time_t | BWHistoryReadEnds |
int | BWHistoryReadInterval |
smartlist_t * | BWHistoryReadValues |
time_t | BWHistoryWriteEnds |
int | BWHistoryWriteInterval |
smartlist_t * | BWHistoryWriteValues |
config_line_t * | BuildtimeHistogram |
uint16_t | TotalBuildTimes |
char * | TorVersion |
config_line_t * | ExtraLines |
time_t | LastRotatedOnionKey |
time_t or_state_t::next_write |
The time at which we next plan to write the state to the disk. Equal to TIME_MAX if there are no savable changes, 0 if there are changes that should be saved right away.
Referenced by or_state_load(), or_state_mark_dirty(), and or_state_save().
time_t or_state_t::LastWritten |
When was the state last written to disk?
Referenced by or_state_save(), and read_bandwidth_usage().
Fields for accounting bandwidth use.
Referenced by accounting_record_bandwidth_usage(), and read_bandwidth_usage().
A list of Entry Guard-related configuration lines.
Referenced by entry_guards_parse_state(), and entry_guards_update_state().
These fields hold information on the history of bandwidth usage for servers. The "Ends" fields hold the time when we last updated the bandwidth usage. The "Interval" fields hold the granularity, in seconds, of the entries of Values. The "Values" lists hold decimal string representations of the number of bytes read or written in each interval.
Referenced by rep_hist_load_state(), and rep_hist_update_state().
Build time histogram
Referenced by circuit_build_times_parse_state(), and circuit_build_times_update_state().
char* or_state_t::TorVersion |
What version of Tor wrote this state file?
Referenced by entry_guards_parse_state(), and or_state_save().
Holds any unrecognized values we found in the state file, in the order in which we found them.
When did we last rotate our onion key? "0" for 'no idea'.
Referenced by init_keys(), and rotate_onion_key().