Tor 0.4.9.1-alpha-dev
Data Fields
or_state_t Struct Reference

#include <or_state_st.h>

Data Fields

uint32_t magic_
 
time_t next_write
 
time_t LastWritten
 
time_t AccountingIntervalStart
 
uint64_t AccountingBytesReadInInterval
 
uint64_t AccountingBytesWrittenInInterval
 
int AccountingSecondsActive
 
int AccountingSecondsToReachSoftLimit
 
time_t AccountingSoftLimitHitAt
 
uint64_t AccountingBytesAtSoftLimit
 
uint64_t AccountingExpectedUsage
 
struct config_line_tGuard
 
struct config_line_tTransportProxies
 
time_t BWHistoryReadEnds
 
int BWHistoryReadInterval
 
struct smartlist_tBWHistoryReadValues
 
struct smartlist_tBWHistoryReadMaxima
 
time_t BWHistoryWriteEnds
 
int BWHistoryWriteInterval
 
struct smartlist_tBWHistoryWriteValues
 
struct smartlist_tBWHistoryWriteMaxima
 
time_t BWHistoryIPv6ReadEnds
 
int BWHistoryIPv6ReadInterval
 
struct smartlist_tBWHistoryIPv6ReadValues
 
struct smartlist_tBWHistoryIPv6ReadMaxima
 
time_t BWHistoryIPv6WriteEnds
 
int BWHistoryIPv6WriteInterval
 
struct smartlist_tBWHistoryIPv6WriteValues
 
struct smartlist_tBWHistoryIPv6WriteMaxima
 
time_t BWHistoryDirReadEnds
 
int BWHistoryDirReadInterval
 
struct smartlist_tBWHistoryDirReadValues
 
struct smartlist_tBWHistoryDirReadMaxima
 
time_t BWHistoryDirWriteEnds
 
int BWHistoryDirWriteInterval
 
struct smartlist_tBWHistoryDirWriteValues
 
struct smartlist_tBWHistoryDirWriteMaxima
 
struct config_line_tBuildtimeHistogram
 
int TotalBuildTimes
 
int CircuitBuildAbandonedCount
 
char * TorVersion
 
struct config_line_tExtraLines
 
time_t LastRotatedOnionKey
 
struct config_suite_tsubstates_
 

Detailed Description

Persistent state for an onion router, as saved to disk.

Definition at line 21 of file or_state_st.h.

Field Documentation

◆ AccountingBytesAtSoftLimit

uint64_t AccountingBytesAtSoftLimit

Definition at line 38 of file or_state_st.h.

◆ AccountingBytesReadInInterval

uint64_t AccountingBytesReadInInterval

Definition at line 33 of file or_state_st.h.

◆ AccountingBytesWrittenInInterval

uint64_t AccountingBytesWrittenInInterval

Definition at line 34 of file or_state_st.h.

◆ AccountingExpectedUsage

uint64_t AccountingExpectedUsage

Definition at line 39 of file or_state_st.h.

◆ AccountingIntervalStart

time_t AccountingIntervalStart

Fields for accounting bandwidth use.

Definition at line 32 of file or_state_st.h.

Referenced by accounting_record_bandwidth_usage().

◆ AccountingSecondsActive

int AccountingSecondsActive

Definition at line 35 of file or_state_st.h.

◆ AccountingSecondsToReachSoftLimit

int AccountingSecondsToReachSoftLimit

Definition at line 36 of file or_state_st.h.

◆ AccountingSoftLimitHitAt

time_t AccountingSoftLimitHitAt

Definition at line 37 of file or_state_st.h.

◆ BuildtimeHistogram

struct config_line_t* BuildtimeHistogram

Build time histogram

Definition at line 80 of file or_state_st.h.

◆ BWHistoryDirReadEnds

time_t BWHistoryDirReadEnds

Definition at line 70 of file or_state_st.h.

◆ BWHistoryDirReadInterval

int BWHistoryDirReadInterval

Definition at line 71 of file or_state_st.h.

◆ BWHistoryDirReadMaxima

struct smartlist_t* BWHistoryDirReadMaxima

Definition at line 73 of file or_state_st.h.

◆ BWHistoryDirReadValues

struct smartlist_t* BWHistoryDirReadValues

Definition at line 72 of file or_state_st.h.

◆ BWHistoryDirWriteEnds

time_t BWHistoryDirWriteEnds

Definition at line 74 of file or_state_st.h.

◆ BWHistoryDirWriteInterval

int BWHistoryDirWriteInterval

Definition at line 75 of file or_state_st.h.

◆ BWHistoryDirWriteMaxima

struct smartlist_t* BWHistoryDirWriteMaxima

Definition at line 77 of file or_state_st.h.

◆ BWHistoryDirWriteValues

struct smartlist_t* BWHistoryDirWriteValues

Definition at line 76 of file or_state_st.h.

◆ BWHistoryIPv6ReadEnds

time_t BWHistoryIPv6ReadEnds

Definition at line 62 of file or_state_st.h.

◆ BWHistoryIPv6ReadInterval

int BWHistoryIPv6ReadInterval

Definition at line 63 of file or_state_st.h.

◆ BWHistoryIPv6ReadMaxima

struct smartlist_t* BWHistoryIPv6ReadMaxima

Definition at line 65 of file or_state_st.h.

◆ BWHistoryIPv6ReadValues

struct smartlist_t* BWHistoryIPv6ReadValues

Definition at line 64 of file or_state_st.h.

◆ BWHistoryIPv6WriteEnds

time_t BWHistoryIPv6WriteEnds

Definition at line 66 of file or_state_st.h.

◆ BWHistoryIPv6WriteInterval

int BWHistoryIPv6WriteInterval

Definition at line 67 of file or_state_st.h.

◆ BWHistoryIPv6WriteMaxima

struct smartlist_t* BWHistoryIPv6WriteMaxima

Definition at line 69 of file or_state_st.h.

◆ BWHistoryIPv6WriteValues

struct smartlist_t* BWHistoryIPv6WriteValues

Definition at line 68 of file or_state_st.h.

◆ BWHistoryReadEnds

time_t BWHistoryReadEnds

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. The "Maxima" list holds decimal strings describing the highest rate achieved during the interval.

Definition at line 54 of file or_state_st.h.

◆ BWHistoryReadInterval

int BWHistoryReadInterval

Definition at line 55 of file or_state_st.h.

◆ BWHistoryReadMaxima

struct smartlist_t* BWHistoryReadMaxima

Definition at line 57 of file or_state_st.h.

◆ BWHistoryReadValues

struct smartlist_t* BWHistoryReadValues

Definition at line 56 of file or_state_st.h.

◆ BWHistoryWriteEnds

time_t BWHistoryWriteEnds

Definition at line 58 of file or_state_st.h.

◆ BWHistoryWriteInterval

int BWHistoryWriteInterval

Definition at line 59 of file or_state_st.h.

◆ BWHistoryWriteMaxima

struct smartlist_t* BWHistoryWriteMaxima

Definition at line 61 of file or_state_st.h.

◆ BWHistoryWriteValues

struct smartlist_t* BWHistoryWriteValues

Definition at line 60 of file or_state_st.h.

◆ CircuitBuildAbandonedCount

int CircuitBuildAbandonedCount

Definition at line 82 of file or_state_st.h.

◆ ExtraLines

struct config_line_t* ExtraLines

Holds any unrecognized values we found in the state file, in the order in which we found them.

Definition at line 89 of file or_state_st.h.

◆ Guard

struct config_line_t* Guard

A list of guard-related configuration lines.

Definition at line 42 of file or_state_st.h.

Referenced by entry_guards_load_guards_from_state().

◆ LastRotatedOnionKey

time_t LastRotatedOnionKey

When did we last rotate our onion key? "0" for 'no idea'.

Definition at line 92 of file or_state_st.h.

◆ LastWritten

time_t LastWritten

When was the state last written to disk?

Definition at line 29 of file or_state_st.h.

◆ magic_

uint32_t magic_

Definition at line 22 of file or_state_st.h.

◆ next_write

time_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 saveable changes, 0 if there are changes that should be saved right away.

Definition at line 26 of file or_state_st.h.

Referenced by or_state_mark_dirty(), and save_state_callback().

◆ substates_

struct config_suite_t* substates_

State objects for individual modules.

Never access this field or its members directly: instead, use the module in question to get its relevant state object if you must.

Definition at line 100 of file or_state_st.h.

◆ TorVersion

char* TorVersion

What version of Tor wrote this state file?

Definition at line 85 of file or_state_st.h.

◆ TotalBuildTimes

int TotalBuildTimes

Definition at line 81 of file or_state_st.h.

◆ TransportProxies

struct config_line_t* TransportProxies

Definition at line 44 of file or_state_st.h.


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