diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2013-05-31 15:51:25 +0200 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2013-05-31 16:12:28 +0200 |
commit | e39292f21dd363bd7601b63b4f43a95705c3332b (patch) | |
tree | a54ba8d1b8a066f556113968fdcde05b7f22df2b /src/or/connection.c | |
parent | b33b366a7f8bcab1c9b4859788e3b2c7d3dcf180 (diff) | |
download | tor-e39292f21dd363bd7601b63b4f43a95705c3332b.tar.gz tor-e39292f21dd363bd7601b63b4f43a95705c3332b.zip |
Test functions used for TB_EMPTY and CELL_STATS events.
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 88def49e50..842523958e 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -17,6 +17,7 @@ * part of a subclass (channel_tls_t). */ #define TOR_CHANNEL_INTERNAL_ +#define CONNECTION_PRIVATE #include "channel.h" #include "channeltls.h" #include "circuitbuild.h" @@ -2561,7 +2562,7 @@ msec_since_midnight(struct timeval tvnow) * <b>tokens_removed</b> tokens removed at timestamp <b>tvnow</b> has run * out of tokens, and if so, note the milliseconds since midnight in * <b>timestamp_var</b> for the next TB_EMPTY event. */ -static void +void connection_buckets_note_empty_ts(uint32_t *timestamp_var, int tokens_before, size_t tokens_removed, struct timeval tvnow) @@ -2728,7 +2729,7 @@ connection_bucket_refill_helper(int *bucket, int rate, int burst, * <b>tvnow</b>, capped at <b>milliseconds_elapsed</b> milliseconds since * last refilling that bucket. Return 0 if the bucket has not been empty * since the last refill or has not been refilled. */ -static uint32_t +uint32_t bucket_millis_empty(int tokens_before, uint32_t last_empty_time, int tokens_after, int milliseconds_elapsed, struct timeval tvnow) |