if (recognized) {
edge_connection_t *conn = NULL;
- relay_cell_fmt_t format = relay_msg_get_format(circ, layer_hint);
+ relay_cell_fmt_t format = circuit_get_relay_format(circ, layer_hint);
/* Recognized cell, the cell digest has been updated, we'll record it for
* the SENDME if need be. */
size_t msg_body_len;
{
- relay_cell_fmt_t cell_format = relay_msg_get_format(circ, cpath_layer);
+ relay_cell_fmt_t cell_format = circuit_get_relay_format(circ, cpath_layer);
relay_msg_t msg;
if (payload_len >
relay_cell_max_payload_size(cell_format, relay_command)) {
(on_circuit->send_randomness_after_n_cells == 0) &&
(! on_circuit->have_sent_sufficiently_random_cell);
- relay_cell_fmt_t cell_format = relay_msg_get_format(on_circuit, cpath);
+ relay_cell_fmt_t cell_format = circuit_get_relay_format(on_circuit, cpath);
size_t target_length =
relay_cell_max_payload_size(cell_format, RELAY_COMMAND_DATA);
/** Return the format to use.
*
* NULL can be passed but not for both. */
-/* TODO #41051: Rename this. */
relay_cell_fmt_t
-relay_msg_get_format(const circuit_t *circ, const crypt_path_t *cpath)
+circuit_get_relay_format(const circuit_t *circ, const crypt_path_t *cpath)
{
if (circ && CIRCUIT_IS_ORCIRC(circ)) {
return CONST_TO_OR_CIRCUIT(circ)->relay_cell_format;
FREE_AND_NULL(relay_msg_t, relay_msg_free_, (msg))
/* Getters */
-relay_cell_fmt_t relay_msg_get_format(const circuit_t *circ,
- const crypt_path_t *cpath);
+relay_cell_fmt_t circuit_get_relay_format(const circuit_t *circ,
+ const crypt_path_t *cpath);
/*
* NOTE: The following are inlined for performance reasons. These values are