aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/circuituse.c
diff options
context:
space:
mode:
authorteor <teor@riseup.net>2020-05-11 16:54:01 +1000
committerteor <teor@riseup.net>2020-05-11 16:54:01 +1000
commit9e7f51e469cd275ef519498945124fe5addc889f (patch)
tree6cf2c2f1b080e3c9c6f9dd81696364fffe7af128 /src/core/or/circuituse.c
parentb64972edcd7e3707ff25ed8bfca421d61101efed (diff)
downloadtor-9e7f51e469cd275ef519498945124fe5addc889f.tar.gz
tor-9e7f51e469cd275ef519498945124fe5addc889f.zip
circuit: Add flags for IPv6 extends
But don't implement the actual node selection yet. Part of 33226.
Diffstat (limited to 'src/core/or/circuituse.c')
-rw-r--r--src/core/or/circuituse.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/core/or/circuituse.c b/src/core/or/circuituse.c
index 46ebcc5dc1..71063dc729 100644
--- a/src/core/or/circuituse.c
+++ b/src/core/or/circuituse.c
@@ -2092,11 +2092,18 @@ circuit_should_cannibalize_to_build(uint8_t purpose_to_build,
}
/** Launch a new circuit with purpose <b>purpose</b> and exit node
- * <b>extend_info</b> (or NULL to select a random exit node). If flags
- * contains CIRCLAUNCH_NEED_UPTIME, choose among routers with high uptime. If
- * CIRCLAUNCH_NEED_CAPACITY is set, choose among routers with high bandwidth.
- * If CIRCLAUNCH_IS_INTERNAL is true, the last hop need not be an exit node.
- * If CIRCLAUNCH_ONEHOP_TUNNEL is set, the circuit will have only one hop.
+ * <b>extend_info</b> (or NULL to select a random exit node).
+ *
+ * If flags contains:
+ * - CIRCLAUNCH_ONEHOP_TUNNEL: the circuit will have only one hop;
+ * - CIRCLAUNCH_NEED_UPTIME: choose routers with high uptime;
+ * - CIRCLAUNCH_NEED_CAPACITY: choose routers with high bandwidth;
+ * - CIRCLAUNCH_IS_IPV6_SELFTEST: the second-last hop must support IPv6
+ * extends;
+ * - CIRCLAUNCH_IS_INTERNAL: the last hop need not be an exit node;
+ * - CIRCLAUNCH_IS_V3_RP: the last hop must support v3 onion service
+ * rendezvous.
+ *
* Return the newly allocated circuit on success, or NULL on failure. */
origin_circuit_t *
circuit_launch_by_extend_info(uint8_t purpose,