aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuituse.h
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@torproject.org>2018-04-23 20:06:34 +0000
committerMike Perry <mikeperry-git@torproject.org>2018-05-09 21:23:06 +0000
commite07e95edd35f1608ecba94b281818d27f63812e3 (patch)
tree8e571ebd65e845771fcfe72c4a8176a80e78e863 /src/or/circuituse.h
parent7b09282dc723381e68fef79c3474a56315a0edfa (diff)
downloadtor-e07e95edd35f1608ecba94b281818d27f63812e3.tar.gz
tor-e07e95edd35f1608ecba94b281818d27f63812e3.zip
Bug 25903: Perform accounting for new CIRC_BW fields.
Two new values in each direction. DELIVERED counts valid end-to-end circuit data that is accepted by our end and OVERHEAD counts the slack unused data in each of the relay command cells for those accepted cells. Control port changes are in the next commit.
Diffstat (limited to 'src/or/circuituse.h')
-rw-r--r--src/or/circuituse.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/circuituse.h b/src/or/circuituse.h
index 71c818b978..6458bd6908 100644
--- a/src/or/circuituse.h
+++ b/src/or/circuituse.h
@@ -65,6 +65,8 @@ void mark_circuit_unusable_for_new_conns(origin_circuit_t *circ);
int circuit_purpose_is_hidden_service(uint8_t);
int circuit_should_use_vanguards(uint8_t);
+void circuit_sent_valid_data(origin_circuit_t *circ, uint16_t relay_body_len);
+void circuit_read_valid_data(origin_circuit_t *circ, uint16_t relay_body_len);
#ifdef TOR_UNIT_TESTS
/* Used only by circuituse.c and test_circuituse.c */