[or-cvs] r10532: Added patch to be able to measure RTT to the first hop of an (torflow/trunk/tordiffs)

renner at seul.org renner at seul.org
Fri Jun 8 10:51:06 UTC 2007


Author: renner
Date: 2007-06-08 06:51:06 -0400 (Fri, 08 Jun 2007)
New Revision: 10532

Added:
   torflow/trunk/tordiffs/one-hop.diff
Log:

  Added patch to be able to measure RTT to the first hop of any circuit.



Added: torflow/trunk/tordiffs/one-hop.diff
===================================================================
--- torflow/trunk/tordiffs/one-hop.diff	                        (rev 0)
+++ torflow/trunk/tordiffs/one-hop.diff	2007-06-08 10:51:06 UTC (rev 10532)
@@ -0,0 +1,14 @@
+--- tor/src/or/control.c	2007-06-08 10:55:51.000000000 +0200
++++ tor-mine/src/or/control.c	2007-06-08 11:03:14.000000000 +0200
+@@ -2014,11 +2014,6 @@
+                     conn);
+     return 0;
+   }
+-  if (circ && (circuit_get_cpath_len(circ)<2 || hop==1)) {
+-    connection_write_str_to_buf(
+-                    "551 Can't attach stream to one-hop circuit.\r\n", conn);
+-    return 0;
+-  }
+   if (circ && hop>0) {
+     /* find this hop in the circuit, and set cpath */
+     cpath = circuit_get_cpath_hop(circ, hop);



More information about the tor-commits mailing list