aboutsummaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-03-28 12:01:58 +0000
committerRoger Dingledine <arma@torproject.org>2006-03-28 12:01:58 +0000
commit1f4d0d247934912c5d20d5e915b867c9d3e297e9 (patch)
tree2d4e30d4691a9a7acc3470d509ab54c81e4131c0 /src/or/or.h
parente7fbdcf70ed058216fe6cebce6b182d35d645d4b (diff)
downloadtor-1f4d0d247934912c5d20d5e915b867c9d3e297e9.tar
tor-1f4d0d247934912c5d20d5e915b867c9d3e297e9.tar.gz
When deciding whether a router is Fast or Guard-worthy, consider
his advertised BandwidthRate and not just the BandwidthCapacity. This is a bug in 0.1.0.x as well, but let's not bother backporting. svn:r6266
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 9253b3c48..1e97bdf9e 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -2312,6 +2312,7 @@ routerinfo_t *router_find_exact_exit_enclave(const char *address,
#define ROUTER_REQUIRED_MIN_BANDWIDTH 10000
int router_is_unreliable(routerinfo_t *router, int need_uptime,
int need_capacity, int need_guard);
+uint32_t router_get_advertised_bandwidth(routerinfo_t *router);
routerinfo_t *routerlist_sl_choose_by_bandwidth(smartlist_t *sl);
routerinfo_t *router_choose_random_node(const char *preferred,
const char *excluded,