[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] for perf testing, paths are always 3 hops, not "3 or more"
- To: or-cvs@freehaven.net
- Subject: [or-cvs] for perf testing, paths are always 3 hops, not "3 or more"
- From: arma@seul.org (Roger Dingledine)
- Date: Fri, 30 Jan 2004 18:43:20 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Fri, 30 Jan 2004 18:43:35 -0500
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
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:
for perf testing, paths are always 3 hops, not "3 or more"
Index: onion.c
===================================================================
RCS file: /home/or/cvsroot/src/or/onion.c,v
retrieving revision 1.120
retrieving revision 1.121
diff -u -d -r1.120 -r1.121
--- onion.c 30 Jan 2004 21:32:40 -0000 1.120
+++ onion.c 30 Jan 2004 23:43:17 -0000 1.121
@@ -188,6 +188,9 @@
#ifdef TOR_PERF
routelen = 2;
#else
+ routelen = 3;
+#endif
+#if 0
for(routelen = 3; ; routelen++) { /* 3, increment until coinflip says we're done */
if (crypto_pseudo_rand_int(255) >= cw*255) /* don't extend */
break;