From c7d01b0541a10a51b5e41f3e68eabb90fca3067a Mon Sep 17 00:00:00 2001 From: Robert Ransom Date: Thu, 23 Jun 2011 17:28:59 -0700 Subject: Report HS circ states stored in circ purpose field in CIRC events --- src/or/control.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/or/control.c') diff --git a/src/or/control.c b/src/or/control.c index 29573099ae..6b7f9dc7a0 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -1829,6 +1829,19 @@ circuit_describe_status_for_controller(origin_circuit_t *circ) smartlist_add(descparts, purpose); } + { + char *hs_state_arg = NULL; + const char *hs_state = + circuit_purpose_to_controller_hs_state_string(circ->_base.purpose); + + if (hs_state != NULL) { + tor_asprintf(&hs_state_arg, "HS_STATE=%s", + hs_state); + + smartlist_add(descparts, hs_state_arg); + } + } + rv = smartlist_join_strings(descparts, " ", 0, NULL); SMARTLIST_FOREACH(descparts, char *, cp, tor_free(cp)); -- cgit v1.2.3-54-g00ecf