diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-12-06 00:28:01 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-01-03 11:29:47 -0500 |
commit | ecf88b16b8672c8b734d13d84910e97357c470a8 (patch) | |
tree | 0aacc9fab28ed9e4355a979da9d510c6275338a0 | |
parent | 5c68a1efaa9511baf2a2af0a49946e0a2de9e246 (diff) | |
download | tor-ecf88b16b8672c8b734d13d84910e97357c470a8.tar tor-ecf88b16b8672c8b734d13d84910e97357c470a8.tar.gz |
Enable handling of create2/extend2/created2/extended2
-rw-r--r-- | src/or/command.c | 2 | ||||
-rw-r--r-- | src/or/relay.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/or/command.c b/src/or/command.c index 773d19cb5..7d1f53a87 100644 --- a/src/or/command.c +++ b/src/or/command.c @@ -133,11 +133,13 @@ command_process_cell(channel_t *chan, cell_t *cell) switch (cell->command) { case CELL_CREATE: case CELL_CREATE_FAST: + case CELL_CREATE2: ++stats_n_create_cells_processed; PROCESS_CELL(create, cell, chan); break; case CELL_CREATED: case CELL_CREATED_FAST: + case CELL_CREATED2: ++stats_n_created_cells_processed; PROCESS_CELL(created, cell, chan); break; diff --git a/src/or/relay.c b/src/or/relay.c index d0c8c2291..5d87b270f 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -1256,7 +1256,8 @@ connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ, connection_mark_and_flush(TO_CONN(conn)); } return 0; - case RELAY_COMMAND_EXTEND: { + case RELAY_COMMAND_EXTEND: + case RELAY_COMMAND_EXTEND2: { static uint64_t total_n_extend=0, total_nonearly=0; total_n_extend++; if (rh.stream_id) { @@ -1291,6 +1292,7 @@ connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ, return circuit_extend(cell, circ); } case RELAY_COMMAND_EXTENDED: + case RELAY_COMMAND_EXTENDED2: if (!layer_hint) { log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL, "'extended' unsupported at non-origin. Dropping."); |