diff options
author | David Goulet <dgoulet@torproject.org> | 2016-11-10 16:04:04 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2016-12-15 11:44:02 -0500 |
commit | cacfd82c8dcc74ef8d96c0051649b5eae3e31d61 (patch) | |
tree | 2a6877c41fde3d53519b6438634bf12194b1e74b /src/or/relay.h | |
parent | 92139b0077c8496006350f94aefbb72e29aa928f (diff) | |
download | tor-cacfd82c8dcc74ef8d96c0051649b5eae3e31d61.tar.gz tor-cacfd82c8dcc74ef8d96c0051649b5eae3e31d61.zip |
cell: Add a control cell ID for semantic
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/relay.h')
-rw-r--r-- | src/or/relay.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/relay.h b/src/or/relay.h index e15551ca51..26b594ece6 100644 --- a/src/or/relay.h +++ b/src/or/relay.h @@ -24,6 +24,8 @@ int relay_send_command_from_edge_(streamid_t stream_id, circuit_t *circ, uint8_t relay_command, const char *payload, size_t payload_len, crypt_path_t *cpath_layer, 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, \ payload_len, cpath_layer) \ relay_send_command_from_edge_((stream_id), (circ), (relay_command), \ |