diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-03-19 17:00:40 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-03-19 17:00:40 -0400 |
commit | 7d1ade251bad76c82b3f1288097587e0fbd1c4ae (patch) | |
tree | 30448b21da47ecfacb18d5983aa616329ae9f693 /src/or/relay.h | |
parent | f1caa2f2146ac750962e6506fe672b03749c50f9 (diff) | |
download | tor-7d1ade251bad76c82b3f1288097587e0fbd1c4ae.tar.gz tor-7d1ade251bad76c82b3f1288097587e0fbd1c4ae.zip |
Debugging log for bug 8185
If the bug recurs, log the filename and line number that triggered it
Diffstat (limited to 'src/or/relay.h')
-rw-r--r-- | src/or/relay.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/or/relay.h b/src/or/relay.h index 7e59838f95..229fb4f737 100644 --- a/src/or/relay.h +++ b/src/or/relay.h @@ -20,9 +20,15 @@ int circuit_receive_relay_cell(cell_t *cell, circuit_t *circ, void relay_header_pack(uint8_t *dest, const relay_header_t *src); void relay_header_unpack(relay_header_t *dest, const uint8_t *src); -int relay_send_command_from_edge(streamid_t stream_id, circuit_t *circ, +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); + size_t payload_len, crypt_path_t *cpath_layer, + const char *filename, int lineno); +#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), \ + (payload), (payload_len), (cpath_layer), \ + __FILE__, __LINE__) int connection_edge_send_command(edge_connection_t *fromconn, uint8_t relay_command, const char *payload, size_t payload_len); |