mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
Rename handle_relay_command to handle_relay_cell_command .
As per David's review.
This commit is contained in:
parent
1e970d17b8
commit
8248812188
@ -1585,7 +1585,7 @@ process_sendme_cell(const relay_header_t *rh, const cell_t *cell,
|
||||
* parent function.
|
||||
*/
|
||||
STATIC int
|
||||
handle_relay_command(cell_t *cell, circuit_t *circ,
|
||||
handle_relay_cell_command(cell_t *cell, circuit_t *circ,
|
||||
edge_connection_t *conn, crypt_path_t *layer_hint,
|
||||
relay_header_t *rh, int optimistic_data)
|
||||
{
|
||||
@ -2033,7 +2033,7 @@ connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ,
|
||||
}
|
||||
}
|
||||
|
||||
return handle_relay_command(cell, circ, conn, layer_hint,
|
||||
return handle_relay_cell_command(cell, circ, conn, layer_hint,
|
||||
&rh, optimistic_data);
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,7 @@ uint8_t packed_cell_get_command(const packed_cell_t *cell, int wide_circ_ids);
|
||||
|
||||
#ifdef RELAY_PRIVATE
|
||||
STATIC int
|
||||
handle_relay_command(cell_t *cell, circuit_t *circ,
|
||||
handle_relay_cell_command(cell_t *cell, circuit_t *circ,
|
||||
edge_connection_t *conn, crypt_path_t *layer_hint,
|
||||
relay_header_t *rh, int optimistic_data);
|
||||
|
||||
|
@ -3169,7 +3169,7 @@ test_circuitpadding_ignore_non_padding_cells(void *arg)
|
||||
rh.command = RELAY_COMMAND_BEGIN;
|
||||
|
||||
setup_full_capture_of_logs(LOG_INFO);
|
||||
retval = handle_relay_command(NULL, client_side, NULL, NULL, &rh, 0);
|
||||
retval = handle_relay_cell_command(NULL, client_side, NULL, NULL, &rh, 0);
|
||||
tt_int_op(retval, OP_EQ, 0);
|
||||
expect_log_msg_containing("Ignored cell");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user