summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-09-23 08:34:22 -0400
committerNick Mathewson <nickm@torproject.org>2014-09-29 09:05:11 -0400
commit8527a2996675d9502551ccdd4224036a45aae47b (patch)
tree9b2ab6a02949da52b42b5b1b1b4cd7a29465e778 /src/or/or.h
parente6150c7fc079d7841bedd0df838b29aef0f497d7 (diff)
downloadtor-8527a2996675d9502551ccdd4224036a45aae47b.tar.gz
tor-8527a2996675d9502551ccdd4224036a45aae47b.zip
Add an "AccountingRule" feature to permit limiting bw usage by read+write
Patch from "chobe". Closes ticket 961.
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index b2b0d5f7ab..20cfa5be36 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -3775,6 +3775,10 @@ typedef struct {
uint64_t AccountingMax; /**< How many bytes do we allow per accounting
* interval before hibernation? 0 for "never
* hibernate." */
+ char *AccountingRule; /**< How do we determine when our AccountingMax
+ * has been reached?
+ * "max" for when in or out reaches AccountingMax
+ * "sum for when in plus out reaches AccountingMax */
/** Base64-encoded hash of accepted passwords for the control system. */
config_line_t *HashedControlPassword;