Add a backpointer from entry_guard_t to guard_selection_t
commit6dcbc24a4e9da3d46dc9fa1c225982f7088a6e34
authorNick Mathewson <nickm@torproject.org>
Mon, 28 Nov 2016 15:50:36 +0000 (28 10:50 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 16 Dec 2016 16:06:18 +0000 (16 11:06 -0500)
treec674dc0216e5c77e4cc107bfcbfeeab4fb35c22c
parent404e9e5611eff39866c2e45133a60b40d7492f7e
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.
src/or/entrynodes.c
src/or/entrynodes.h