aboutsummaryrefslogtreecommitdiff
path: root/src/or/connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/connection.h')
-rw-r--r--src/or/connection.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/or/connection.h b/src/or/connection.h
index 0454ac2f3..4073d9fc9 100644
--- a/src/or/connection.h
+++ b/src/or/connection.h
@@ -216,6 +216,15 @@ void connection_enable_rate_limiting(connection_t *conn);
#ifdef CONNECTION_PRIVATE
STATIC void connection_free_(connection_t *conn);
+
+/* Used only by connection.c and test*.c */
+uint32_t bucket_millis_empty(int tokens_before, uint32_t last_empty_time,
+ int tokens_after, int milliseconds_elapsed,
+ const struct timeval *tvnow);
+void connection_buckets_note_empty_ts(uint32_t *timestamp_var,
+ int tokens_before,
+ size_t tokens_removed,
+ const struct timeval *tvnow);
#endif
#endif