diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-03-14 12:13:45 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-03-21 11:55:07 -0400 |
commit | 967503c12c46f1c75209622ebddd15242e8af79a (patch) | |
tree | 7cba17b7ec7e885c2fb622cb4e49fa33d0fc02cb /src/or/circuitlist.h | |
parent | 42fb61d172b172687cd57c86dd72b117f03f2136 (diff) | |
download | tor-967503c12c46f1c75209622ebddd15242e8af79a.tar.gz tor-967503c12c46f1c75209622ebddd15242e8af79a.zip |
Implement a placeholder mechanism in the channel,id->circ map
We'll use this to help fix bug 7912, by providing a way to mark
that a circuit ID can't get reused while a DESTROY is queued but not sent.
Diffstat (limited to 'src/or/circuitlist.h')
-rw-r--r-- | src/or/circuitlist.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/circuitlist.h b/src/or/circuitlist.h index d67f80b065..434d2a8699 100644 --- a/src/or/circuitlist.h +++ b/src/or/circuitlist.h @@ -23,6 +23,8 @@ void circuit_set_p_circid_chan(or_circuit_t *circ, circid_t id, channel_t *chan); void circuit_set_n_circid_chan(circuit_t *circ, circid_t id, channel_t *chan); +void channel_mark_circid_unusable(channel_t *chan, circid_t id); +void channel_mark_circid_usable(channel_t *chan, circid_t id); void circuit_set_state(circuit_t *circ, uint8_t state); void circuit_close_all_marked(void); int32_t circuit_initial_package_window(void); |