aboutsummaryrefslogtreecommitdiff
path: root/src/or/entrynodes.h
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@fscked.org>2012-10-24 17:34:18 -0700
committerMike Perry <mikeperry-git@fscked.org>2012-12-07 15:28:36 -0800
commit954f263ed5eb451a0742f8888681e10e64dd193a (patch)
tree17cf84ee506b600c6f597ecc5dbfad9c49580f17 /src/or/entrynodes.h
parentc8056dcbbb9b468fe4070eff4b55b63d109801c5 (diff)
downloadtor-954f263ed5eb451a0742f8888681e10e64dd193a.tar
tor-954f263ed5eb451a0742f8888681e10e64dd193a.tar.gz
Add the ability to count circuit timeouts for guards.
This is purely for informational reasons for debugging.
Diffstat (limited to 'src/or/entrynodes.h')
-rw-r--r--src/or/entrynodes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/entrynodes.h b/src/or/entrynodes.h
index 4d031c359..b34744183 100644
--- a/src/or/entrynodes.h
+++ b/src/or/entrynodes.h
@@ -47,6 +47,8 @@ typedef struct entry_guard_t {
unsigned first_hops; /**< Number of first hops this guard has completed */
unsigned circuit_successes; /**< Number of successfully built circuits using
* this guard as first hop. */
+ unsigned timeouts; /**< Number of 'right-censored' timeouts
+ for this guard. */
} entry_guard_t;
entry_guard_t *entry_guard_get_by_id_digest(const char *digest);