diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2013-02-24 13:32:57 +0100 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2013-05-16 14:18:13 +0200 |
commit | 2925e2fe786dfd9a27c2dff503996712cd180de4 (patch) | |
tree | a7fc1aa600c0284461ad288622819230cd0c830c /src/or/or.h | |
parent | dd5ce2157d8c47ffa3686b0579813e7b1aae8069 (diff) | |
download | tor-2925e2fe786dfd9a27c2dff503996712cd180de4.tar tor-2925e2fe786dfd9a27c2dff503996712cd180de4.tar.gz |
Add new CIRC_BW event.
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h index c2be28291..d41034cb7 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2967,6 +2967,15 @@ typedef struct origin_circuit_t { /** Linked list of AP streams (or EXIT streams if hidden service) * associated with this circuit. */ edge_connection_t *p_streams; + + /** Bytes read from any attached stream since last call to + * control_event_circ_bandwidth_used() */ + uint32_t n_read; + + /** Bytes written to any attached stream since last call to + * control_event_circ_bandwidth_used() */ + uint32_t n_written; + /** Build state for this circuit. It includes the intended path * length, the chosen exit router, rendezvous information, etc. */ |