aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/circuit_st.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-10-30 11:44:50 -0400
committerDavid Goulet <dgoulet@torproject.org>2019-10-30 16:12:56 -0400
commitcfc60e566cf4100400a8a411faccc9744c07cc8b (patch)
tree78e3673cd02ab7e39637a4f4e71caefcc3fb8ebd /src/core/or/circuit_st.h
parent183f9e490ff0aa5100567b1c753456904ca58a45 (diff)
downloadtor-cfc60e566cf4100400a8a411faccc9744c07cc8b.tar.gz
tor-cfc60e566cf4100400a8a411faccc9744c07cc8b.zip
circ: Add an handle to circuit_t
Closes #32343 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core/or/circuit_st.h')
-rw-r--r--src/core/or/circuit_st.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/or/circuit_st.h b/src/core/or/circuit_st.h
index 0c281f7257..929f3840ef 100644
--- a/src/core/or/circuit_st.h
+++ b/src/core/or/circuit_st.h
@@ -14,6 +14,8 @@
#include "core/or/or.h"
+#include "lib/container/handles.h"
+
#include "core/or/cell_queue_st.h"
struct hs_token_t;
@@ -59,6 +61,9 @@ struct circuit_t {
uint32_t magic; /**< For memory and type debugging: must equal
* ORIGIN_CIRCUIT_MAGIC or OR_CIRCUIT_MAGIC. */
+ /** Handle entry for handle-based lookup */
+ HANDLE_ENTRY(circuit, circuit_t);
+
/** The channel that is next in this circuit. */
channel_t *n_chan;