aboutsummaryrefslogtreecommitdiff
path: root/src/or/relay.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-11-14 20:01:15 +0000
committerNick Mathewson <nickm@torproject.org>2007-11-14 20:01:15 +0000
commite843e0556355d1487a61640457d073238e214417 (patch)
treec855f360aa4badae5654e76ee920429fae47e740 /src/or/relay.c
parentd483d3144aa20b316578a37cf6a8b74343ca7dba (diff)
downloadtor-e843e0556355d1487a61640457d073238e214417.tar.gz
tor-e843e0556355d1487a61640457d073238e214417.zip
r16670@catbus: nickm | 2007-11-14 14:56:30 -0500
Initial phase of proposal 110: accept RELAY_EARLY cells, and turn them into RELAY cells when sending them on over a v1 OR connection. svn:r12496
Diffstat (limited to 'src/or/relay.c')
-rw-r--r--src/or/relay.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index d9ca3760f9..95d30a9842 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -1890,6 +1890,10 @@ append_cell_to_circuit_queue(circuit_t *circ, or_connection_t *orconn,
queue = &orcirc->p_conn_cells;
streams_blocked = circ->streams_blocked_on_p_conn;
}
+ if (cell->command == CELL_RELAY_EARLY && orconn->link_proto < 2) {
+ /* V1 connections don't understand RELAY_EARLY. */
+ cell->command = CELL_RELAY;
+ }
cell_queue_append_packed_copy(queue, cell);