aboutsummaryrefslogtreecommitdiff
path: root/src/or/entrynodes.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-11-28 10:50:36 -0500
committerNick Mathewson <nickm@torproject.org>2016-12-16 11:06:18 -0500
commit6dcbc24a4e9da3d46dc9fa1c225982f7088a6e34 (patch)
treec674dc0216e5c77e4cc107bfcbfeeab4fb35c22c /src/or/entrynodes.h
parent404e9e5611eff39866c2e45133a60b40d7492f7e (diff)
downloadtor-6dcbc24a4e9da3d46dc9fa1c225982f7088a6e34.tar.gz
tor-6dcbc24a4e9da3d46dc9fa1c225982f7088a6e34.zip
Add a backpointer from entry_guard_t to guard_selection_t
This is safe, because no entry_guard_t ever outlives its guard_selection_t. I want this because now that multiple guard selections can be active during one tor session, we should make sure that any information we register about guards is with respect to the selection that they came from.
Diffstat (limited to 'src/or/entrynodes.h')
-rw-r--r--src/or/entrynodes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/entrynodes.h b/src/or/entrynodes.h
index 0164667d22..97cc4d254b 100644
--- a/src/or/entrynodes.h
+++ b/src/or/entrynodes.h
@@ -125,6 +125,7 @@ struct entry_guard_t {
* Which selection does this guard belong to?
*/
char *selection_name;
+ guard_selection_t *in_selection;
/* ==== Non-persistent fields. */
/* == These are used by sampled guards */