diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-11-12 02:55:38 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-11-12 02:55:38 +0000 |
commit | 7d441ec6b4135739eae184a5770362dc6872a213 (patch) | |
tree | 0e52d942e21fa60683bb4885d24b18887a061592 /src/or/onion.c | |
parent | e6296a4e2f32e29e2b5227934d0db30a67d52992 (diff) | |
download | tor-7d441ec6b4135739eae184a5770362dc6872a213.tar.gz tor-7d441ec6b4135739eae184a5770362dc6872a213.zip |
Compute paths as we build them.
svn:r793
Diffstat (limited to 'src/or/onion.c')
-rw-r--r-- | src/or/onion.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/onion.c b/src/or/onion.c index 8b8a87cfe7..848b7e866e 100644 --- a/src/or/onion.c +++ b/src/or/onion.c @@ -212,6 +212,13 @@ static int new_route_len(double cw, routerinfo_t **rarray, int rarray_len) { return routelen; } +int onion_new_route_len(void) { + directory_t *dir; + + router_get_directory(&dir); + return new_route_len(options.CoinWeight, dir->routers, dir->n_routers); +} + static int count_acceptable_routers(routerinfo_t **rarray, int rarray_len) { int i, j; int num=0; |