summaryrefslogtreecommitdiff
path: root/src/or/command.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-02-11 01:09:24 +0000
committerNick Mathewson <nickm@torproject.org>2008-02-11 01:09:24 +0000
commit65ee9dc5852fb8eaada7ff3e6f72249b7ceeef3f (patch)
tree3096be2b7659ea2e8bc46d7fcb3cf1b841be3694 /src/or/command.c
parentab0c85eea656ad6659c2df48795e2fe28f2a2209 (diff)
downloadtor-65ee9dc5852fb8eaada7ff3e6f72249b7ceeef3f.tar.gz
tor-65ee9dc5852fb8eaada7ff3e6f72249b7ceeef3f.zip
r14108@tombo: nickm | 2008-02-10 20:09:10 -0500
add some documentation svn:r13462
Diffstat (limited to 'src/or/command.c')
-rw-r--r--src/or/command.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/or/command.c b/src/or/command.c
index 8e706cd7e0..48e3bd1c68 100644
--- a/src/or/command.c
+++ b/src/or/command.c
@@ -447,8 +447,8 @@ command_process_destroy_cell(cell_t *cell, or_connection_t *conn)
/** Process a 'versions' cell. The current link protocol version must be 0
* to indicate that no version has yet been negotiated. We compare the versions
- * cell to the list of versions we support, and pick the highest version we
- * have in common.
+ * cell to the list of versions we support, pick the highest version we
+ * have in common, and continue the negotiation from there.
*/
static void
command_process_versions_cell(var_cell_t *cell, or_connection_t *conn)
@@ -477,6 +477,7 @@ command_process_versions_cell(var_cell_t *cell, or_connection_t *conn)
connection_mark_for_close(TO_CONN(conn));
return;
} else if (highest_supported_version == 1) {
+ /*XXXXX020 consider this carefully. */
log_fn(LOG_PROTOCOL_WARN, LD_OR,
"Used version negotiation protocol to negotiate a v1 connection. "
"That's crazily non-compliant. Closing connection.");
@@ -500,7 +501,8 @@ command_process_versions_cell(var_cell_t *cell, or_connection_t *conn)
}
}
-/** Process a 'netinfo' cell. DOCDOC say more. */
+/** Process a 'netinfo' cell: read and act on its contents, and set the
+ * connection state to "open". */
static void
command_process_netinfo_cell(cell_t *cell, or_connection_t *conn)
{