tor  0.4.2.0-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 
20 struct or_state_t {
21  uint32_t magic_;
25  time_t next_write;
26 
28  time_t LastWritten;
29 
32  uint64_t AccountingBytesReadInInterval;
33  uint64_t AccountingBytesWrittenInInterval;
34  int AccountingSecondsActive;
35  int AccountingSecondsToReachSoftLimit;
36  time_t AccountingSoftLimitHitAt;
37  uint64_t AccountingBytesAtSoftLimit;
38  uint64_t AccountingExpectedUsage;
39 
42 
45 
46  struct config_line_t *TransportProxies;
47 
50 
60  int BWHistoryReadInterval;
61  struct smartlist_t *BWHistoryReadValues;
62  struct smartlist_t *BWHistoryReadMaxima;
63  time_t BWHistoryWriteEnds;
64  int BWHistoryWriteInterval;
65  struct smartlist_t *BWHistoryWriteValues;
66  struct smartlist_t *BWHistoryWriteMaxima;
67  time_t BWHistoryDirReadEnds;
68  int BWHistoryDirReadInterval;
69  struct smartlist_t *BWHistoryDirReadValues;
70  struct smartlist_t *BWHistoryDirReadMaxima;
71  time_t BWHistoryDirWriteEnds;
72  int BWHistoryDirWriteInterval;
73  struct smartlist_t *BWHistoryDirWriteValues;
74  struct smartlist_t *BWHistoryDirWriteMaxima;
75 
78  int TotalBuildTimes;
79  int CircuitBuildAbandonedCount;
80 
82  char *TorVersion;
83 
87 
90 
96  int Dormant;
97 };
98 
99 #endif /* !defined(TOR_OR_STATE_ST_H) */
struct config_line_t * HidServRevCounter
Definition: or_state_st.h:49
time_t LastRotatedOnionKey
Definition: or_state_st.h:89
struct config_line_t * EntryGuards
Definition: or_state_st.h:41
Integer definitions used throughout Tor.
time_t AccountingIntervalStart
Definition: or_state_st.h:31
time_t LastWritten
Definition: or_state_st.h:28
struct config_line_t * BuildtimeHistogram
Definition: or_state_st.h:77
struct config_line_t * Guard
Definition: or_state_st.h:44
struct config_line_t * ExtraLines
Definition: or_state_st.h:86
time_t next_write
Definition: or_state_st.h:25
int MinutesSinceUserActivity
Definition: or_state_st.h:93
time_t BWHistoryReadEnds
Definition: or_state_st.h:59
char * TorVersion
Definition: or_state_st.h:82