aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-03-26 14:08:35 +0000
committerNick Mathewson <nickm@torproject.org>2007-03-26 14:08:35 +0000
commita25c5d699454a9af02556cdb329b521ba0867872 (patch)
tree87f7a1b01df9a99920a101545a32b10cd70edceb /src/or/circuitlist.c
parent83b2208ea49816d5fc3bd733a488da3eac54a9a7 (diff)
downloadtor-a25c5d699454a9af02556cdb329b521ba0867872.tar.gz
tor-a25c5d699454a9af02556cdb329b521ba0867872.zip
r12654@Kushana: nickm | 2007-03-25 19:03:44 -0400
Add documentation for cell queue functions; make destroy cells result in cell queues getting cleared before the destroy gets sent. svn:r9907
Diffstat (limited to 'src/or/circuitlist.c')
-rw-r--r--src/or/circuitlist.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index f76d2cba1b..68a0eca5dd 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -71,7 +71,12 @@ HT_GENERATE(orconn_circid_map, orconn_circid_circuit_map_t, node,
*/
orconn_circid_circuit_map_t *_last_circid_orconn_ent = NULL;
-/** DOCDOC */
+/** Implementation helper for circuit_set_{p,n}_circid_orconn: A circuit ID
+ * and/or or_connection for circ has just changed from <b>old_conn, old_id</b>
+ * to <b>conn, id</b>. Adjust the conn,circid map as appropriate, removing
+ * the old entry (if any) and adding a new one. If If <b>active</b> is true,
+ * remove the circuit from the list of active circuits on old_conn and add it
+ * to the list of active circuits on conn. */
static void
circuit_set_circid_orconn_helper(circuit_t *circ, uint16_t id,
or_connection_t *conn,