Explorar el Código

mike needs DEFAULT_ROUTE_LEN in other files

Roger Dingledine hace 14 años
padre
commit
1d6656fcb3
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 0 3
      src/or/circuitbuild.c
  2. 3 0
      src/or/or.h

+ 0 - 3
src/or/circuitbuild.c

@@ -2323,9 +2323,6 @@ onionskin_answer(or_circuit_t *circ, uint8_t cell_type, const char *payload,
   return 0;
 }
 
-/** How many hops does a general-purpose circuit have by default? */
-#define DEFAULT_ROUTE_LEN 3
-
 /** Choose a length for a circuit of purpose <b>purpose</b>.
  * Default length is 3 + the number of endpoints that would give something
  * away. If the routerlist <b>routers</b> doesn't have enough routers

+ 3 - 0
src/or/or.h

@@ -2958,6 +2958,9 @@ int buf_find_string_offset(const buf_t *buf, const char *s, size_t n);
 
 /********************************* circuitbuild.c **********************/
 
+/** How many hops does a general-purpose circuit have by default? */
+#define DEFAULT_ROUTE_LEN 3
+
 char *circuit_list_path(origin_circuit_t *circ, int verbose);
 char *circuit_list_path_for_controller(origin_circuit_t *circ);
 void circuit_log_path(int severity, unsigned int domain,