aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2013-02-06 14:04:27 +0100
committerKarsten Loesing <karsten.loesing@gmx.net>2013-05-16 13:48:30 +0200
commite54d664f7bb1205162c1df3495f8ebc30c23d867 (patch)
tree8860596e4377bbde64d187dfb887cd000d2d1128 /src/or
parent95c34399cfb66a46371562f1532e8aa396243876 (diff)
downloadtor-e54d664f7bb1205162c1df3495f8ebc30c23d867.tar
tor-e54d664f7bb1205162c1df3495f8ebc30c23d867.tar.gz
Add connection ID to ORCONN event.
Jointly authored with Rob Jansen <jansen@cs.umn.edu>.
Diffstat (limited to 'src/or')
-rw-r--r--src/or/control.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 75f7af99a..0f202c864 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -3843,8 +3843,9 @@ control_event_or_conn_status(or_connection_t *conn, or_conn_status_event_t tp,
orconn_target_get_name(name, sizeof(name), conn);
send_control_event(EVENT_OR_CONN_STATUS, ALL_FORMATS,
- "650 ORCONN %s %s %s%s%s\r\n",
+ "650 ORCONN %s %s ID="U64_FORMAT" %s%s%s\r\n",
name, status,
+ U64_PRINTF_ARG(conn->base_.global_identifier),
reason ? "REASON=" : "",
orconn_end_reason_to_control_string(reason),
ncircs_buf);