aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-03-20 02:55:31 +0000
committerRoger Dingledine <arma@torproject.org>2007-03-20 02:55:31 +0000
commitb4f743562f609792619199007c2d091968f72a71 (patch)
tree2f6fbc5d9c48a62485ab54d4061857e20b2c7c33 /src/or/or.h
parent4ab0b979b29a5069d2c54f286b0666e0628f6727 (diff)
downloadtor-b4f743562f609792619199007c2d091968f72a71.tar.gz
tor-b4f743562f609792619199007c2d091968f72a71.zip
Add a separate set of token buckets for relayed traffic. Right
now that's just defined as answers to directory requests. svn:r9881
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h
index ffb173136b..3f76ceaaa6 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -804,7 +804,7 @@ typedef struct or_connection_t {
int n_circuits; /**< How many circuits use this connection as p_conn or
* n_conn ? */
struct or_connection_t *next_with_same_id; /**< Next connection with same
- * identity digest as this one. */
+ * identity digest as this one. */
/** Linked list of bridged dirserver connections that can't write until
* this connection's outbuf is less full. */
struct dir_connection_t *blocked_dir_connections;
@@ -1697,6 +1697,10 @@ typedef struct {
* to use in a second? */
uint64_t MaxAdvertisedBandwidth; /**< How much bandwidth are we willing to
* tell people we have? */
+ uint64_t RelayBandwidthRate; /**< How much bandwidth, on average, are we
+ * willing to use for all relayed conns? */
+ uint64_t RelayBandwidthBurst; /**< How much bandwidth, at maximum, will we
+ * use in a second for all relayed conns? */
int NumCpus; /**< How many CPUs should we try to use? */
int RunTesting; /**< If true, create testing circuits to measure how well the
* other ORs are running. */