mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
cell: Add a control cell ID for semantic
Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
92139b0077
commit
cacfd82c8d
@ -24,6 +24,8 @@ int relay_send_command_from_edge_(streamid_t stream_id, circuit_t *circ,
|
|||||||
uint8_t relay_command, const char *payload,
|
uint8_t relay_command, const char *payload,
|
||||||
size_t payload_len, crypt_path_t *cpath_layer,
|
size_t payload_len, crypt_path_t *cpath_layer,
|
||||||
const char *filename, int lineno);
|
const char *filename, int lineno);
|
||||||
|
/* Indicates to relay_send_command_from_edge() that it is a control cell. */
|
||||||
|
#define CONTROL_CELL_ID 0
|
||||||
#define relay_send_command_from_edge(stream_id, circ, relay_command, payload, \
|
#define relay_send_command_from_edge(stream_id, circ, relay_command, payload, \
|
||||||
payload_len, cpath_layer) \
|
payload_len, cpath_layer) \
|
||||||
relay_send_command_from_edge_((stream_id), (circ), (relay_command), \
|
relay_send_command_from_edge_((stream_id), (circ), (relay_command), \
|
||||||
|
Loading…
Reference in New Issue
Block a user