aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-20 00:37:00 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-20 00:37:00 +0000
commit8acaf8e1872f711898e850687ccf55a196dc1312 (patch)
tree71991ac1c30547461a6c17fbbbbe4ef5ee6a809e /src/or/or.h
parentaa9461f13a9a0489da7bdb169d07ac18265ca817 (diff)
downloadtor-8acaf8e1872f711898e850687ccf55a196dc1312.tar
tor-8acaf8e1872f711898e850687ccf55a196dc1312.tar.gz
Add "MEMUNIT" and "INTERVAL" types to configuration. Also tweak Accounting setup. More docs needed
svn:r2911
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 223ea4a84..f581291f4 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -937,9 +937,9 @@ typedef struct {
* them? */
int NewCircuitPeriod; /**< How long do we use a circuit before building
* a new one? */
- int BandwidthRateBytes; /**< How much bandwidth, on average, are we willing to
+ uint64_t BandwidthRate; /**< How much bandwidth, on average, are we willing to
* use in a second? */
- int BandwidthBurstBytes; /**< How much bandwidth, at maximum, are we willing to
+ uint64_t BandwidthBurst; /**< How much bandwidth, at maximum, are we willing to
* use in a second? */
int NumCpus; /**< How many CPUs should we try to use? */
int RunTesting; /**< If true, create testing circuits to measure how well the
@@ -963,9 +963,13 @@ typedef struct {
int AccountingStart; /**< At what offset within the accounting interval
* do we begin measuring? (Currently only day-of-month
* is supported.) */
- int AccountingMaxKB; /**< How many KB do we allow per accounting
- * interval before hibernation? 0 for "never
- * hibernate." */
+ uint64_t AccountingMax; /**< How many bytes do we allow per accounting
+ * interval before hibernation? 0 for "never
+ * hibernate." */
+ int _AccountingMaxKB; /**< How many KB do we allow per accounting
+ * interval before hibernation? 0 for "never
+ * hibernate." */
+
char *HashedControlPassword; /**< Base64-encoded hash of a password for
* the control system. */
int CookieAuthentication; /**< Boolean: do we enable cookie-based auth for