handle more purposes in new_route_len

svn:r1618
This commit is contained in:
Roger Dingledine 2004-04-14 05:06:08 +00:00
parent 465f0e528a
commit 49f5e5b4ae

View File

@ -171,9 +171,13 @@ static int new_route_len(double cw, uint8_t purpose, smartlist_t *routers) {
#else #else
if(purpose == CIRCUIT_PURPOSE_C_GENERAL) if(purpose == CIRCUIT_PURPOSE_C_GENERAL)
routelen = 3; routelen = 3;
else if(purpose == CIRCUIT_PURPOSE_C_ESTABLISH_REND) else if(purpose == CIRCUIT_PURPOSE_C_INTRODUCING)
routelen = 4; routelen = 4;
else if(purpose == CIRCUIT_PURPOSE_C_ESTABLISH_REND)
routelen = 3;
else if(purpose == CIRCUIT_PURPOSE_S_ESTABLISH_INTRO) else if(purpose == CIRCUIT_PURPOSE_S_ESTABLISH_INTRO)
routelen = 3;
else if(purpose == CIRCUIT_PURPOSE_S_CONNECT_REND)
routelen = 4; routelen = 4;
else { else {
log_fn(LOG_WARN,"Unhandled purpose %d", purpose); log_fn(LOG_WARN,"Unhandled purpose %d", purpose);