From e13e30221ef6715cafa93bbffc156583c8b58ecf Mon Sep 17 00:00:00 2001 From: Mike Perry Date: Fri, 18 Jan 2013 19:37:16 -0800 Subject: Implement Path use bias accounting. Path use bias measures how often we can actually succeed using the circuits we actually try to use. It is a subset of path bias accounting, but it is computed as a separate statistic because the rate of client circuit use may vary depending on use case. --- src/or/circuitbuild.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/or/circuitbuild.h') diff --git a/src/or/circuitbuild.h b/src/or/circuitbuild.h index e6cf802f2..d03a7c532 100644 --- a/src/or/circuitbuild.h +++ b/src/or/circuitbuild.h @@ -58,10 +58,13 @@ const char *build_state_get_exit_nickname(cpath_build_state_t *state); const node_t *choose_good_entry_server(uint8_t purpose, cpath_build_state_t *state); double pathbias_get_extreme_rate(const or_options_t *options); +double pathbias_get_extreme_use_rate(const or_options_t *options); int pathbias_get_dropguards(const or_options_t *options); void pathbias_count_timeout(origin_circuit_t *circ); int pathbias_check_close(origin_circuit_t *circ, int reason); int pathbias_check_probe_response(circuit_t *circ, const cell_t *cell); +void pathbias_count_use_attempt(origin_circuit_t *circ); +void pathbias_mark_use_success(origin_circuit_t *circ); #endif -- cgit v1.2.3