diff options
author | Roger Dingledine <arma@torproject.org> | 2004-04-14 05:06:08 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-04-14 05:06:08 +0000 |
commit | 49f5e5b4aeaededb7729fe38dcf5a1c7745038ee (patch) | |
tree | 39b62349506583cad7e8b7c423deccba6221baa4 /src | |
parent | 465f0e528af50f02f727c5b6b17058cb90f25f39 (diff) | |
download | tor-49f5e5b4aeaededb7729fe38dcf5a1c7745038ee.tar tor-49f5e5b4aeaededb7729fe38dcf5a1c7745038ee.tar.gz |
handle more purposes in new_route_len
svn:r1618
Diffstat (limited to 'src')
-rw-r--r-- | src/or/onion.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/onion.c b/src/or/onion.c index c827d0e34..aa93d81b7 100644 --- a/src/or/onion.c +++ b/src/or/onion.c @@ -171,9 +171,13 @@ static int new_route_len(double cw, uint8_t purpose, smartlist_t *routers) { #else if(purpose == CIRCUIT_PURPOSE_C_GENERAL) routelen = 3; - else if(purpose == CIRCUIT_PURPOSE_C_ESTABLISH_REND) + else if(purpose == CIRCUIT_PURPOSE_C_INTRODUCING) routelen = 4; + else if(purpose == CIRCUIT_PURPOSE_C_ESTABLISH_REND) + routelen = 3; else if(purpose == CIRCUIT_PURPOSE_S_ESTABLISH_INTRO) + routelen = 3; + else if(purpose == CIRCUIT_PURPOSE_S_CONNECT_REND) routelen = 4; else { log_fn(LOG_WARN,"Unhandled purpose %d", purpose); |