Browse Source

Rename handle_relay_command to handle_relay_cell_command .

As per David's review.
George Kadianakis 4 years ago
parent
commit
8248812188
3 changed files with 4 additions and 4 deletions
  1. 2 2
      src/core/or/relay.c
  2. 1 1
      src/core/or/relay.h
  3. 1 1
      src/test/test_circuitpadding.c

+ 2 - 2
src/core/or/relay.c

@@ -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);
 }
 

+ 1 - 1
src/core/or/relay.h

@@ -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);
 

+ 1 - 1
src/test/test_circuitpadding.c

@@ -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");