tor  0.4.2.1-alpha-dev
or_state_st.h
1 /* Copyright (c) 2001 Matej Pfajfar.
2  * Copyright (c) 2001-2004, Roger Dingledine.
3  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4  * Copyright (c) 2007-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
13 #ifndef TOR_OR_STATE_ST_H
14 #define TOR_OR_STATE_ST_H
15 
16 #include "lib/cc/torint.h"
17 struct smartlist_t;
18 struct config_suite_t;
19 
21 struct or_state_t {
22  uint32_t magic_;
26  time_t next_write;
27 
29  time_t LastWritten;
30 
33  uint64_t AccountingBytesReadInInterval;
34  uint64_t AccountingBytesWrittenInInterval;
35  int AccountingSecondsActive;
36  int AccountingSecondsToReachSoftLimit;
37  time_t AccountingSoftLimitHitAt;
38  uint64_t AccountingBytesAtSoftLimit;
39  uint64_t AccountingExpectedUsage;
40 
43 
46 
47  struct config_line_t *TransportProxies;
48 
51 
61  int BWHistoryReadInterval;
62  struct smartlist_t *BWHistoryReadValues;
63  struct smartlist_t *BWHistoryReadMaxima;
64  time_t BWHistoryWriteEnds;
65  int BWHistoryWriteInterval;
66  struct smartlist_t *BWHistoryWriteValues;
67  struct smartlist_t *BWHistoryWriteMaxima;
68  time_t BWHistoryDirReadEnds;
69  int BWHistoryDirReadInterval;
70  struct smartlist_t *BWHistoryDirReadValues;
71  struct smartlist_t *BWHistoryDirReadMaxima;
72  time_t BWHistoryDirWriteEnds;
73  int BWHistoryDirWriteInterval;
74  struct smartlist_t *BWHistoryDirWriteValues;
75  struct smartlist_t *BWHistoryDirWriteMaxima;
76 
79  int TotalBuildTimes;
80  int CircuitBuildAbandonedCount;
81 
83  char *TorVersion;
84 
88 
91 
97  int Dormant;
98 
106 };
107 
108 #endif /* !defined(TOR_OR_STATE_ST_H) */
struct config_line_t * HidServRevCounter
Definition: or_state_st.h:50
time_t LastRotatedOnionKey
Definition: or_state_st.h:90
struct config_line_t * EntryGuards
Definition: or_state_st.h:42
Integer definitions used throughout Tor.
time_t AccountingIntervalStart
Definition: or_state_st.h:32
time_t LastWritten
Definition: or_state_st.h:29
struct config_line_t * BuildtimeHistogram
Definition: or_state_st.h:78
struct config_line_t * Guard
Definition: or_state_st.h:45
struct config_line_t * ExtraLines
Definition: or_state_st.h:87
time_t next_write
Definition: or_state_st.h:26
int MinutesSinceUserActivity
Definition: or_state_st.h:94
time_t BWHistoryReadEnds
Definition: or_state_st.h:60
char * TorVersion
Definition: or_state_st.h:83
struct config_suite_t * substates_
Definition: or_state_st.h:105