diff options
-rw-r--r-- | changes/feature3457 | 3 | ||||
-rw-r--r-- | src/or/control.c | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/changes/feature3457 b/changes/feature3457 index eda1d38e60..e2676cbff4 100644 --- a/changes/feature3457 +++ b/changes/feature3457 @@ -6,4 +6,7 @@ circuit is cannibalized or its purpose is changed. Implements part of ticket 3457. + - Include the creation time of a circuit in CIRC and CIRC2 + control-port events and the list produced by the 'GETINFO + circuit-status' control-port command. diff --git a/src/or/control.c b/src/or/control.c index 5874fe1d5a..eedc8eac34 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -1851,6 +1851,16 @@ circuit_describe_status_for_controller(origin_circuit_t *circ) smartlist_add(descparts, rend_query_arg); } + { + char *time_created_arg = NULL; + + tor_asprintf(&time_created_arg, "TIME_CREATED=%ld,%ld", + circ->_base.timestamp_created.tv_sec, + circ->_base.timestamp_created.tv_usec); + + smartlist_add(descparts, time_created_arg); + } + rv = smartlist_join_strings(descparts, " ", 0, NULL); SMARTLIST_FOREACH(descparts, char *, cp, tor_free(cp)); |