summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-01-27 09:24:23 +0000
committerRoger Dingledine <arma@torproject.org>2007-01-27 09:24:23 +0000
commitc6fd3c7158ac56e358adb73bfc794370eb282918 (patch)
treeffb57d16f0b060107ba6a34c13eddf3e594404ed
parent9057af692a9d3fa1802035e1cbdb9c098481b62e (diff)
downloadtor-c6fd3c7158ac56e358adb73bfc794370eb282918.tar.gz
tor-c6fd3c7158ac56e358adb73bfc794370eb282918.zip
the other half of my patch. more coming later.
svn:r9434
-rw-r--r--doc/TODO2
-rw-r--r--src/or/or.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/doc/TODO b/doc/TODO
index f3d99c2112..c93bf472fd 100644
--- a/doc/TODO
+++ b/doc/TODO
@@ -30,7 +30,7 @@ N - Test guard unreachable logic; make sure that we actually attempt to
Make sure that we don't freak out when the network is down.
Items for 0.1.2.x:
-R - weight dir requests by advertised bandwidth? with maybe a lower cutoff
+ o weight dir requests by advertised bandwidth? with maybe a lower cutoff
than for tor traffic. perhaps also weighted by the expected size of
the response.
diff --git a/src/or/or.h b/src/or/or.h
index 04f24a4c98..44542048d2 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -2836,6 +2836,7 @@ 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, int for_exit);
+routerstatus_t *routerstatus_sl_choose_by_bandwidth(smartlist_t *sl);
routerinfo_t *router_choose_random_node(const char *preferred,
const char *excluded,