summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-15 12:56:54 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-15 12:56:54 -0400
commitad52fe7e88754fd8c7c1eb3da9bbf593d7752af9 (patch)
tree6abb1fe895909970ac2c992f2393606799e99a46 /src/or/or.h
parente13f59416c8c97b540828b8a78cfc913a89ddf71 (diff)
downloadtor-ad52fe7e88754fd8c7c1eb3da9bbf593d7752af9.tar.gz
tor-ad52fe7e88754fd8c7c1eb3da9bbf593d7752af9.zip
Move network_liveness_t into circuitstats.h and make it private
This type is only used in one place and never exposed.
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 3d0611c637..5707e02027 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -3733,21 +3733,6 @@ int32_t circuit_build_times_initial_timeout(void);
#error "RECENT_CIRCUITS is set too low."
#endif
-/** Information about the state of our local network connection */
-typedef struct {
- /** The timestamp we last completed a TLS handshake or received a cell */
- time_t network_last_live;
- /** If the network is not live, how many timeouts has this caused? */
- int nonlive_timeouts;
- /** Circular array of circuits that have made it to the first hop. Slot is
- * 1 if circuit timed out, 0 if circuit succeeded */
- int8_t *timeouts_after_firsthop;
- /** Number of elements allocated for the above array */
- int num_recent_circs;
- /** Index into circular array. */
- int after_firsthop_idx;
-} network_liveness_t;
-
typedef struct circuit_build_times_s circuit_build_times_t;
/********************************* config.c ***************************/