[or-cvs] handle more purposes in new_route_len

Roger Dingledine arma at seul.org
Wed Apr 14 05:06:10 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	onion.c 
Log Message:
handle more purposes in new_route_len


Index: onion.c
===================================================================
RCS file: /home/or/cvsroot/src/or/onion.c,v
retrieving revision 1.153
retrieving revision 1.154
diff -u -d -r1.153 -r1.154
--- onion.c	12 Apr 2004 18:40:14 -0000	1.153
+++ onion.c	14 Apr 2004 05:06:08 -0000	1.154
@@ -171,9 +171,13 @@
 #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);



More information about the tor-commits mailing list