Tor  0.4.5.0-alpha-dev
control_events.h
Go to the documentation of this file.
1 /* Copyright (c) 2001 Matej Pfajfar.
2  * Copyright (c) 2001-2004, Roger Dingledine.
3  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4  * Copyright (c) 2007-2020, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 /**
8  * \file control_events.h
9  * \brief Header file for control_events.c.
10  **/
11 
12 #ifndef TOR_CONTROL_EVENTS_H
13 #define TOR_CONTROL_EVENTS_H
14 
15 #include "lib/cc/ctassert.h"
16 #include "core/or/ocirc_event.h"
17 #include "core/or/orconn_event.h"
18 
19 struct config_line_t;
20 
21 /** Used to indicate the type of a CIRC_MINOR event passed to the controller.
22  * The various types are defined in control-spec.txt . */
24  CIRC_MINOR_EVENT_PURPOSE_CHANGED,
25  CIRC_MINOR_EVENT_CANNIBALIZED,
27 
28 /** Used to indicate the type of a stream event passed to the controller.
29  * The various types are defined in control-spec.txt */
30 typedef enum stream_status_event_t {
31  STREAM_EVENT_SENT_CONNECT = 0,
32  STREAM_EVENT_SENT_RESOLVE = 1,
33  STREAM_EVENT_SUCCEEDED = 2,
34  STREAM_EVENT_FAILED = 3,
35  STREAM_EVENT_CLOSED = 4,
36  STREAM_EVENT_NEW = 5,
37  STREAM_EVENT_NEW_RESOLVE = 6,
38  STREAM_EVENT_FAILED_RETRIABLE = 7,
39  STREAM_EVENT_REMAP = 8,
40  STREAM_EVENT_CONTROLLER_WAIT = 9
42 
43 /** Used to indicate the type of a buildtime event */
45  BUILDTIMEOUT_SET_EVENT_COMPUTED = 0,
46  BUILDTIMEOUT_SET_EVENT_RESET = 1,
47  BUILDTIMEOUT_SET_EVENT_SUSPENDED = 2,
48  BUILDTIMEOUT_SET_EVENT_DISCARD = 3,
49  BUILDTIMEOUT_SET_EVENT_RESUME = 4
51 
52 /** Enum describing various stages of bootstrapping, for use with controller
53  * bootstrap status events. The values range from 0 to 100. */
54 typedef enum {
55  BOOTSTRAP_STATUS_UNDEF=-1,
56  BOOTSTRAP_STATUS_STARTING=0,
57 
58  /* Initial connection to any relay */
59 
60  BOOTSTRAP_STATUS_CONN_PT=1,
61  BOOTSTRAP_STATUS_CONN_DONE_PT=2,
62  BOOTSTRAP_STATUS_CONN_PROXY=3,
63  BOOTSTRAP_STATUS_CONN_DONE_PROXY=4,
64  BOOTSTRAP_STATUS_CONN=5,
65  BOOTSTRAP_STATUS_CONN_DONE=10,
66  BOOTSTRAP_STATUS_HANDSHAKE=14,
67  BOOTSTRAP_STATUS_HANDSHAKE_DONE=15,
68 
69  /* Loading directory info */
70 
71  BOOTSTRAP_STATUS_ONEHOP_CREATE=20,
72  BOOTSTRAP_STATUS_REQUESTING_STATUS=25,
73  BOOTSTRAP_STATUS_LOADING_STATUS=30,
74  BOOTSTRAP_STATUS_LOADING_KEYS=40,
75  BOOTSTRAP_STATUS_REQUESTING_DESCRIPTORS=45,
76  BOOTSTRAP_STATUS_LOADING_DESCRIPTORS=50,
77  BOOTSTRAP_STATUS_ENOUGH_DIRINFO=75,
78 
79  /* Connecting to a relay for AP circuits */
80 
81  BOOTSTRAP_STATUS_AP_CONN_PT=76,
82  BOOTSTRAP_STATUS_AP_CONN_DONE_PT=77,
83  BOOTSTRAP_STATUS_AP_CONN_PROXY=78,
84  BOOTSTRAP_STATUS_AP_CONN_DONE_PROXY=79,
85  BOOTSTRAP_STATUS_AP_CONN=80,
86  BOOTSTRAP_STATUS_AP_CONN_DONE=85,
87  BOOTSTRAP_STATUS_AP_HANDSHAKE=89,
88  BOOTSTRAP_STATUS_AP_HANDSHAKE_DONE=90,
89 
90  /* Creating AP circuits */
91 
92  BOOTSTRAP_STATUS_CIRCUIT_CREATE=95,
93  BOOTSTRAP_STATUS_DONE=100
95 
96 /** Reason for remapping an AP connection's address: we have a cached
97  * answer. */
98 #define REMAP_STREAM_SOURCE_CACHE 1
99 /** Reason for remapping an AP connection's address: the exit node told us an
100  * answer. */
101 #define REMAP_STREAM_SOURCE_EXIT 2
102 
103 void control_initialize_event_queue(void);
104 
107 
108 #define EVENT_NS 0x000F
109 int control_event_is_interesting(int event);
110 
111 void control_per_second_events(void);
113 
115  circuit_status_event_t e, int reason);
117  int old_purpose);
119  int old_purpose,
120  const struct timeval *old_tv_created);
123  int reason);
125  or_conn_status_event_t e, int reason);
126 int control_event_bandwidth_used(uint32_t n_read, uint32_t n_written);
134 void control_event_logmsg(int severity, log_domain_mask_t domain,
135  const char *msg);
138 int control_event_address_mapped(const char *from, const char *to,
139  time_t expires, const char *error,
140  const int cached);
142 int control_event_network_liveness_update(int liveness);
144 
145 int control_event_newconsensus(const networkstatus_t *consensus);
147 int control_event_general_status(int severity, const char *format, ...)
148  CHECK_PRINTF(2,3);
149 int control_event_client_status(int severity, const char *format, ...)
150  CHECK_PRINTF(2,3);
151 int control_event_server_status(int severity, const char *format, ...)
152  CHECK_PRINTF(2,3);
153 
154 int control_event_general_error(const char *format, ...)
155  CHECK_PRINTF(1,2);
156 int control_event_client_error(const char *format, ...)
157  CHECK_PRINTF(1,2);
158 int control_event_server_error(const char *format, ...)
159  CHECK_PRINTF(1,2);
160 
161 int control_event_guard(const char *nickname, const char *digest,
162  const char *status);
163 void control_event_conf_changed(const struct config_line_t *changes);
165  const char *args);
166 int control_event_signal(uintptr_t signal);
167 
168 void control_event_bootstrap(bootstrap_status_t status, int progress);
169 int control_get_bootstrap_percent(void);
170 MOCK_DECL(void, control_event_bootstrap_prob_or,(const char *warn,
171  int reason,
172  or_connection_t *or_conn));
173 void control_event_boot_dir(bootstrap_status_t status, int progress);
175 void control_event_bootstrap_problem(const char *warn, const char *reason,
176  const connection_t *conn, int dowarn);
177 char *control_event_boot_last_msg(void);
179 
180 void control_event_clients_seen(const char *controller_str);
181 void control_event_transport_launched(const char *mode,
182  const char *transport_name,
183  tor_addr_t *addr, uint16_t port);
184 void control_event_pt_log(const char *log);
185 void control_event_pt_status(const char *status);
186 
187 void control_event_hs_descriptor_requested(const char *onion_address,
188  rend_auth_type_t auth_type,
189  const char *id_digest,
190  const char *desc_id,
191  const char *hsdir_index);
192 void control_event_hs_descriptor_created(const char *onion_address,
193  const char *desc_id,
194  int replica);
195 void control_event_hs_descriptor_upload(const char *onion_address,
196  const char *desc_id,
197  const char *hs_dir,
198  const char *hsdir_index);
199 void control_event_hs_descriptor_upload_end(const char *action,
200  const char *onion_address,
201  const char *hs_dir,
202  const char *reason);
203 void control_event_hs_descriptor_uploaded(const char *hs_dir,
204  const char *onion_address);
205 /* Hidden service v2 HS_DESC specific. */
207  const char *id_digest,
208  const char *reason);
209 void control_event_hsv2_descriptor_received(const char *onion_address,
210  const rend_data_t *rend_data,
211  const char *id_digest);
212 /* Hidden service v3 HS_DESC specific. */
213 void control_event_hsv3_descriptor_failed(const char *onion_address,
214  const char *desc_id,
215  const char *hsdir_id_digest,
216  const char *reason);
217 void control_event_hsv3_descriptor_received(const char *onion_address,
218  const char *desc_id,
219  const char *hsdir_id_digest);
220 void control_event_hs_descriptor_upload_failed(const char *hs_dir,
221  const char *onion_address,
222  const char *reason);
223 void control_event_hs_descriptor_content(const char *onion_address,
224  const char *desc_id,
225  const char *hsdir_fp,
226  const char *content);
227 void cbt_control_event_buildtimeout_set(const circuit_build_times_t *cbt,
229 
230 int control_event_enter_controller_wait(void);
231 
232 void control_events_free_all(void);
233 
234 #ifdef CONTROL_MODULE_PRIVATE
235 char *get_bw_samples(void);
236 #endif /* defined(CONTROL_MODULE_PRIVATE) */
237 
238 #ifdef CONTROL_EVENTS_PRIVATE
239 /** Bitfield: The bit 1&lt;&lt;e is set if <b>any</b> open control
240  * connection is interested in events of type <b>e</b>. We use this
241  * so that we can decide to skip generating event messages that nobody
242  * has interest in without having to walk over the global connection
243  * list to find out.
244  **/
245 typedef uint64_t event_mask_t;
246 
247 /* Recognized asynchronous event types. It's okay to expand this list
248  * because it is used both as a list of v0 event types, and as indices
249  * into the bitfield to determine which controllers want which events.
250  */
251 /* This bitfield has no event zero 0x0000 */
252 #define EVENT_MIN_ 0x0001
253 #define EVENT_CIRCUIT_STATUS 0x0001
254 #define EVENT_STREAM_STATUS 0x0002
255 #define EVENT_OR_CONN_STATUS 0x0003
256 #define EVENT_BANDWIDTH_USED 0x0004
257 #define EVENT_CIRCUIT_STATUS_MINOR 0x0005
258 #define EVENT_NEW_DESC 0x0006
259 #define EVENT_DEBUG_MSG 0x0007
260 #define EVENT_INFO_MSG 0x0008
261 #define EVENT_NOTICE_MSG 0x0009
262 #define EVENT_WARN_MSG 0x000A
263 #define EVENT_ERR_MSG 0x000B
264 #define EVENT_ADDRMAP 0x000C
265 /* There was an AUTHDIR_NEWDESCS event, but it no longer exists. We
266  can reclaim 0x000D. */
267 #define EVENT_DESCCHANGED 0x000E
268 /* Exposed above */
269 // #define EVENT_NS 0x000F
270 #define EVENT_STATUS_CLIENT 0x0010
271 #define EVENT_STATUS_SERVER 0x0011
272 #define EVENT_STATUS_GENERAL 0x0012
273 #define EVENT_GUARD 0x0013
274 #define EVENT_STREAM_BANDWIDTH_USED 0x0014
275 #define EVENT_CLIENTS_SEEN 0x0015
276 #define EVENT_NEWCONSENSUS 0x0016
277 #define EVENT_BUILDTIMEOUT_SET 0x0017
278 #define EVENT_GOT_SIGNAL 0x0018
279 #define EVENT_CONF_CHANGED 0x0019
280 #define EVENT_CONN_BW 0x001A
281 #define EVENT_CELL_STATS 0x001B
282 /* UNUSED : 0x001C */
283 #define EVENT_CIRC_BANDWIDTH_USED 0x001D
284 #define EVENT_TRANSPORT_LAUNCHED 0x0020
285 #define EVENT_HS_DESC 0x0021
286 #define EVENT_HS_DESC_CONTENT 0x0022
287 #define EVENT_NETWORK_LIVENESS 0x0023
288 #define EVENT_PT_LOG 0x0024
289 #define EVENT_PT_STATUS 0x0025
290 #define EVENT_CONTROLLER_WAIT 0x0026
291 #define EVENT_MAX_ 0x0026
292 
293 /* sizeof(control_connection_t.event_mask) in bits, currently a uint64_t */
294 #define EVENT_CAPACITY_ 0x0040
295 
296 /* If EVENT_MAX_ ever hits 0x0040, we need to make the mask into a
297  * different structure, as it can only handle a maximum left shift of 1<<63. */
298 CTASSERT(EVENT_MAX_ < EVENT_CAPACITY_);
299 
300 #define EVENT_MASK_(e) (((uint64_t)1)<<(e))
301 
302 #define EVENT_MASK_NONE_ ((uint64_t)0x0)
303 
304 #define EVENT_MASK_ABOVE_MIN_ ((~((uint64_t)0x0)) << EVENT_MIN_)
305 #define EVENT_MASK_BELOW_MAX_ ((~((uint64_t)0x0)) \
306  >> (EVENT_CAPACITY_ - EVENT_MAX_ \
307  - EVENT_MIN_))
308 
309 #define EVENT_MASK_ALL_ (EVENT_MASK_ABOVE_MIN_ \
310  & EVENT_MASK_BELOW_MAX_)
311 
312 /** Helper structure: temporarily stores cell statistics for a circuit. */
313 typedef struct cell_stats_t {
314  /** Number of cells added in app-ward direction by command. */
315  uint64_t added_cells_appward[CELL_COMMAND_MAX_ + 1];
316  /** Number of cells added in exit-ward direction by command. */
317  uint64_t added_cells_exitward[CELL_COMMAND_MAX_ + 1];
318  /** Number of cells removed in app-ward direction by command. */
319  uint64_t removed_cells_appward[CELL_COMMAND_MAX_ + 1];
320  /** Number of cells removed in exit-ward direction by command. */
321  uint64_t removed_cells_exitward[CELL_COMMAND_MAX_ + 1];
322  /** Total waiting time of cells in app-ward direction by command. */
323  uint64_t total_time_appward[CELL_COMMAND_MAX_ + 1];
324  /** Total waiting time of cells in exit-ward direction by command. */
325  uint64_t total_time_exitward[CELL_COMMAND_MAX_ + 1];
326 } cell_stats_t;
327 
329  cell_stats_t *cell_stats);
330 void append_cell_stats_by_command(smartlist_t *event_parts,
331  const char *key,
332  const uint64_t *include_if_non_zero,
333  const uint64_t *number_to_include);
334 void format_cell_stats(char **event_string, circuit_t *circ,
335  cell_stats_t *cell_stats);
336 
337 /** Helper structure: maps event values to their names. */
338 struct control_event_t {
339  uint16_t event_code;
340  const char *event_name;
341 };
342 
343 extern const struct control_event_t control_event_table[];
344 
345 #ifdef TOR_UNIT_TESTS
346 MOCK_DECL(STATIC void,
347  send_control_event_string,(uint16_t event, const char *msg));
348 
349 MOCK_DECL(STATIC void,
350  queue_control_event_string,(uint16_t event, char *msg));
351 
352 void control_testing_set_global_event_mask(uint64_t mask);
353 
354 #endif /* defined(TOR_UNIT_TESTS) */
355 
356 #endif /* defined(CONTROL_EVENTS_PRIVATE) */
357 
358 #endif /* !defined(TOR_CONTROL_EVENTS_H) */
send_control_event_string
STATIC void send_control_event_string(uint16_t event, const char *msg)
Definition: control_events.c:590
control_event_hs_descriptor_upload_end
void control_event_hs_descriptor_upload_end(const char *action, const char *onion_address, const char *hs_dir, const char *reason)
Definition: control_events.c:2087
control_event_boot_first_orconn
void control_event_boot_first_orconn(void)
Definition: control_bootstrap.c:255
bootstrap_status_t
bootstrap_status_t
Definition: control_events.h:54
append_cell_stats_by_command
void append_cell_stats_by_command(smartlist_t *event_parts, const char *key, const uint64_t *include_if_non_zero, const uint64_t *number_to_include)
Definition: control_events.c:1182
stream_status_event_t
stream_status_event_t
Definition: control_events.h:30
tor_addr_t
Definition: address.h:69
format_cell_stats
void format_cell_stats(char **event_string, circuit_t *circ, cell_stats_t *cell_stats)
Definition: control_events.c:1207
control_event_stream_status
int control_event_stream_status(entry_connection_t *conn, stream_status_event_t e, int reason)
Definition: control_events.c:789
control_any_per_second_event_enabled
int control_any_per_second_event_enabled(void)
Definition: control_events.c:322
rend_auth_type_t
rend_auth_type_t
Definition: or.h:403
control_event_network_liveness_update
int control_event_network_liveness_update(int liveness)
Definition: control_events.c:1494
control_event_clients_seen
void control_event_clients_seen(const char *controller_str)
Definition: control_events.c:1855
control_event_conn_bandwidth_used
int control_event_conn_bandwidth_used(void)
Definition: control_events.c:1136
routerstatus_t
Definition: routerstatus_st.h:19
control_event_is_interesting
int control_event_is_interesting(int event)
Definition: control_events.c:315
control_event_general_error
int control_event_general_error(const char *format,...)
Definition: control_events.c:1748
control_event_hsv3_descriptor_failed
void control_event_hsv3_descriptor_failed(const char *onion_address, const char *desc_id, const char *hsdir_id_digest, const char *reason)
Definition: control_events.c:2267
or_connection_t
Definition: or_connection_st.h:22
control_event_circuit_cannibalized
int control_event_circuit_cannibalized(origin_circuit_t *circ, int old_purpose, const struct timeval *old_tv_created)
Definition: control_events.c:776
control_event_logmsg
void control_event_logmsg(int severity, log_domain_mask_t domain, const char *msg)
Definition: control_events.c:1358
control_event_bootstrap_prob_or
void control_event_bootstrap_prob_or(const char *warn, int reason, or_connection_t *or_conn)
Definition: control_bootstrap.c:347
control_event_hs_descriptor_content
void control_event_hs_descriptor_content(const char *onion_address, const char *desc_id, const char *hsdir_fp, const char *content)
Definition: control_events.c:2293
circuit_status_event_t
circuit_status_event_t
Definition: ocirc_event.h:19
control_event_hs_descriptor_uploaded
void control_event_hs_descriptor_uploaded(const char *hs_dir, const char *onion_address)
Definition: control_events.c:2216
control_event_server_error
int control_event_server_error(const char *format,...)
Definition: control_events.c:1788
circuit_build_times_t
Definition: circuitstats.h:177
control_event_general_status
int control_event_general_status(int severity, const char *format,...)
Definition: control_events.c:1739
control_event_circ_bandwidth_used_for_circ
int control_event_circ_bandwidth_used_for_circ(origin_circuit_t *ocirc)
Definition: control_events.c:1058
control_event_bootstrap_problem
void control_event_bootstrap_problem(const char *warn, const char *reason, const connection_t *conn, int dowarn)
Definition: control_bootstrap.c:268
control_event_table
const struct control_event_t control_event_table[]
Definition: control_events.c:80
origin_circuit_t
Definition: origin_circuit_st.h:79
control_event_transport_launched
void control_event_transport_launched(const char *mode, const char *transport_name, tor_addr_t *addr, uint16_t port)
Definition: control_events.c:1868
control_event_client_error
int control_event_client_error(const char *format,...)
Definition: control_events.c:1768
control_event_server_status
int control_event_server_status(int severity, const char *format,...)
Definition: control_events.c:1779
control_event_hsv2_descriptor_received
void control_event_hsv2_descriptor_received(const char *onion_address, const rend_data_t *rend_data, const char *id_digest)
Definition: control_events.c:2161
control_event_networkstatus_changed_single
int control_event_networkstatus_changed_single(const routerstatus_t *rs)
Definition: control_events.c:1644
log_domain_mask_t
uint64_t log_domain_mask_t
Definition: logging_types.h:21
circuit_t
Definition: circuit_st.h:61
control_event_circuit_cell_stats
int control_event_circuit_cell_stats(void)
Definition: control_events.c:1254
ctassert.h
Compile-time assertions: CTASSERT(expression).
MOCK_DECL
#define MOCK_DECL(rv, funcname, arglist)
Definition: testsupport.h:127
CTASSERT
#define CTASSERT(x)
Definition: ctassert.h:44
control_event_circuit_purpose_changed
int control_event_circuit_purpose_changed(origin_circuit_t *circ, int old_purpose)
Definition: control_events.c:762
connection_t
Definition: connection_st.h:45
control_event_buildtimeout_set
int control_event_buildtimeout_set(buildtimeout_set_event_t type, const char *args)
Definition: control_events.c:1578
control_event_hs_descriptor_created
void control_event_hs_descriptor_created(const char *onion_address, const char *desc_id, int replica)
Definition: control_events.c:1985
control_event_bootstrap
void control_event_bootstrap(bootstrap_status_t status, int progress)
Definition: control_bootstrap.c:188
circuit_status_minor_event_t
circuit_status_minor_event_t
Definition: control_events.h:23
control_event_descriptors_changed
int control_event_descriptors_changed(smartlist_t *routers)
Definition: control_events.c:1431
control_event_boot_last_msg
char * control_event_boot_last_msg(void)
Definition: control_bootstrap.c:372
control_event_newconsensus
int control_event_newconsensus(const networkstatus_t *consensus)
Definition: control_events.c:1568
timeval
Definition: compat_time.h:151
control_event_bandwidth_used
int control_event_bandwidth_used(uint32_t n_read, uint32_t n_written)
Definition: control_events.c:1290
control_adjust_event_log_severity
void control_adjust_event_log_severity(void)
Definition: control_events.c:278
control_event_hs_descriptor_upload
void control_event_hs_descriptor_upload(const char *onion_address, const char *desc_id, const char *hs_dir, const char *hsdir_index)
Definition: control_events.c:2013
control_event_address_mapped
int control_event_address_mapped(const char *from, const char *to, time_t expires, const char *error, const int cached)
Definition: control_events.c:1463
control_event_bootstrap_reset
void control_event_bootstrap_reset(void)
Definition: control_bootstrap.c:379
control_event_guard
int control_event_guard(const char *nickname, const char *digest, const char *status)
Definition: control_events.c:1800
orconn_event.h
Header file for orconn_event.c.
edge_connection_t
Definition: edge_connection_st.h:21
control_event_hs_descriptor_requested
void control_event_hs_descriptor_requested(const char *onion_address, rend_auth_type_t auth_type, const char *id_digest, const char *desc_id, const char *hsdir_index)
Definition: control_events.c:1951
control_event_pt_log
void control_event_pt_log(const char *log)
Definition: control_events.c:1879
or_conn_status_event_t
or_conn_status_event_t
Definition: orconn_event.h:59
rend_data_t
Definition: or.h:419
control_event_stream_bandwidth
int control_event_stream_bandwidth(edge_connection_t *edge_conn)
Definition: control_events.c:971
config_line_t
Definition: confline.h:29
queue_control_event_string
STATIC void queue_control_event_string(uint16_t event, char *msg)
Definition: control_events.c:449
sum_up_cell_stats_by_command
void sum_up_cell_stats_by_command(circuit_t *circ, cell_stats_t *cell_stats)
Definition: control_events.c:1151
control_event_my_descriptor_changed
int control_event_my_descriptor_changed(void)
Definition: control_events.c:1662
control_event_networkstatus_changed
int control_event_networkstatus_changed(smartlist_t *statuses)
Definition: control_events.c:1560
control_event_logmsg_pending
void control_event_logmsg_pending(void)
Definition: control_events.c:1413
STATIC
#define STATIC
Definition: testsupport.h:32
control_event_hs_descriptor_upload_failed
void control_event_hs_descriptor_upload_failed(const char *hs_dir, const char *onion_address, const char *reason)
Definition: control_events.c:2330
control_event_circ_bandwidth_used
int control_event_circ_bandwidth_used(void)
Definition: control_events.c:1033
control_event_signal
int control_event_signal(uintptr_t signal)
Definition: control_events.c:1616
control_event_hsv2_descriptor_failed
void control_event_hsv2_descriptor_failed(const rend_data_t *rend_data, const char *id_digest, const char *reason)
Definition: control_events.c:2233
control_event_conn_bandwidth
int control_event_conn_bandwidth(connection_t *conn)
Definition: control_events.c:1101
control_event_pt_status
void control_event_pt_status(const char *status)
Definition: control_events.c:1889
entry_connection_t
Definition: entry_connection_st.h:19
control_event_boot_dir
void control_event_boot_dir(bootstrap_status_t status, int progress)
Definition: control_bootstrap.c:234
buildtimeout_set_event_t
buildtimeout_set_event_t
Definition: control_events.h:44
networkstatus_t
Definition: networkstatus_st.h:26
control_event_conf_changed
void control_event_conf_changed(const config_line_t *changes)
Definition: control_events.c:1828
control_event_circuit_status
int control_event_circuit_status(origin_circuit_t *circ, circuit_status_event_t e, int reason)
Definition: control_events.c:632
smartlist_t
Definition: smartlist_core.h:26
control_update_global_event_mask
void control_update_global_event_mask(void)
Definition: control_events.c:207
ocirc_event.h
Header file for ocirc_event.c.
control_event_stream_bandwidth_used
int control_event_stream_bandwidth_used(void)
Definition: control_events.c:997
control_event_or_conn_status
int control_event_or_conn_status(or_connection_t *conn, or_conn_status_event_t e, int reason)
Definition: control_events.c:923
control_per_second_events
void control_per_second_events(void)
Definition: control_events.c:364
control_event_client_status
int control_event_client_status(int severity, const char *format,...)
Definition: control_events.c:1759