[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] small default route when doing speed testing
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/dev/src/or
Modified Files:
onion.c
Log Message:
small default route when doing speed testing
Index: onion.c
===================================================================
RCS file: /home/or/cvsroot/src/or/onion.c,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -d -r1.117 -r1.118
--- onion.c 8 Jan 2004 22:48:18 -0000 1.117
+++ onion.c 20 Jan 2004 03:12:46 -0000 1.118
@@ -185,10 +185,14 @@
assert((cw >= 0) && (cw < 1) && rarray); /* valid parameters */
- for(routelen=3; ; routelen++) { /* 3, increment until coinflip says we're done */
+#ifdef TOR_PERF
+ routelen = 2;
+#else
+ for(routelen = 3; ; routelen++) { /* 3, increment until coinflip says we're done */
if (crypto_pseudo_rand_int(255) >= cw*255) /* don't extend */
break;
}
+#endif
log_fn(LOG_DEBUG,"Chosen route length %d (%d routers available).",routelen, rarray_len);
num_acceptable_routers = count_acceptable_routers(rarray, rarray_len);