tor  master
Data Fields
or_state_t Struct Reference

#include <or.h>

Collaboration diagram for or_state_t:
Collaboration graph
[legend]

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
 
config_line_tEntryGuards
 
config_line_tGuard
 
config_line_tTransportProxies
 
config_line_tHidServRevCounter
 
time_t BWHistoryReadEnds
 
int BWHistoryReadInterval
 
smartlist_tBWHistoryReadValues
 
smartlist_tBWHistoryReadMaxima
 
time_t BWHistoryWriteEnds
 
int BWHistoryWriteInterval
 
smartlist_tBWHistoryWriteValues
 
smartlist_tBWHistoryWriteMaxima
 
time_t BWHistoryDirReadEnds
 
int BWHistoryDirReadInterval
 
smartlist_tBWHistoryDirReadValues
 
smartlist_tBWHistoryDirReadMaxima
 
time_t BWHistoryDirWriteEnds
 
int BWHistoryDirWriteInterval
 
smartlist_tBWHistoryDirWriteValues
 
smartlist_tBWHistoryDirWriteMaxima
 
config_line_tBuildtimeHistogram
 
int TotalBuildTimes
 
int CircuitBuildAbandonedCount
 
char * TorVersion
 
config_line_tExtraLines
 
time_t LastRotatedOnionKey
 

Detailed Description

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

Field Documentation

◆ AccountingIntervalStart

time_t AccountingIntervalStart

Fields for accounting bandwidth use.

◆ BuildtimeHistogram

config_line_t* BuildtimeHistogram

Build time histogram

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

◆ EntryGuards

config_line_t* EntryGuards

A list of Entry Guard-related configuration lines. (pre-prop271)

◆ ExtraLines

config_line_t* ExtraLines

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

◆ Guard

config_line_t* Guard

A list of guard-related configuration lines. (post-prop271)

◆ HidServRevCounter

config_line_t* HidServRevCounter

Cached revision counters for active hidden services on this host

◆ LastRotatedOnionKey

time_t LastRotatedOnionKey

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

◆ LastWritten

time_t LastWritten

When was the state last written to disk?

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

◆ TorVersion

char* TorVersion

What version of Tor wrote this state file?


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