diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2013-10-28 11:30:49 +0100 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2013-10-28 12:09:42 +0100 |
commit | 2e0fad542cccddf9ad8b8dbaeba8b1e825c09ff4 (patch) | |
tree | f4639f6ed8b224087e665373ba147df1fd53144d /src/or/connection.h | |
parent | 49278cd68a0d84727ae1131e677bc3481b3e2fc7 (diff) | |
parent | e46de82c97e694d3bfa399af48b9de9365e264bd (diff) | |
download | tor-2e0fad542cccddf9ad8b8dbaeba8b1e825c09ff4.tar.gz tor-2e0fad542cccddf9ad8b8dbaeba8b1e825c09ff4.zip |
Merge branch 'morestats4' into morestats5
Conflicts:
doc/tor.1.txt
src/or/config.c
src/or/connection.h
src/or/control.c
src/or/control.h
src/or/or.h
src/or/relay.c
src/or/relay.h
src/test/test.c
Diffstat (limited to 'src/or/connection.h')
-rw-r--r-- | src/or/connection.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/or/connection.h b/src/or/connection.h index 0454ac2f36..4073d9fc9c 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 |