diff options
author | teor <teor@riseup.net> | 2020-05-11 16:54:01 +1000 |
---|---|---|
committer | teor <teor@riseup.net> | 2020-05-11 16:54:01 +1000 |
commit | 9e7f51e469cd275ef519498945124fe5addc889f (patch) | |
tree | 6cf2c2f1b080e3c9c6f9dd81696364fffe7af128 /src/core/or/circuitbuild.c | |
parent | b64972edcd7e3707ff25ed8bfca421d61101efed (diff) | |
download | tor-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/circuitbuild.c')
-rw-r--r-- | src/core/or/circuitbuild.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/core/or/circuitbuild.c b/src/core/or/circuitbuild.c index 8d5988b63c..ba70c47536 100644 --- a/src/core/or/circuitbuild.c +++ b/src/core/or/circuitbuild.c @@ -439,7 +439,8 @@ onion_populate_cpath(origin_circuit_t *circ) /** Create and return a new origin circuit. Initialize its purpose and * build-state based on our arguments. The <b>flags</b> argument is a - * bitfield of CIRCLAUNCH_* flags. */ + * bitfield of CIRCLAUNCH_* flags, see circuit_launch_by_extend_info() for + * more details. */ origin_circuit_t * origin_circuit_init(uint8_t purpose, int flags) { @@ -455,13 +456,16 @@ origin_circuit_init(uint8_t purpose, int flags) ((flags & CIRCLAUNCH_NEED_CAPACITY) ? 1 : 0); circ->build_state->is_internal = ((flags & CIRCLAUNCH_IS_INTERNAL) ? 1 : 0); + circ->build_state->is_ipv6_selftest = + ((flags & CIRCLAUNCH_IS_IPV6_SELFTEST) ? 1 : 0); circ->base_.purpose = purpose; return circ; } -/** Build a new circuit for <b>purpose</b>. If <b>exit</b> - * is defined, then use that as your exit router, else choose a suitable - * exit node. +/** Build a new circuit for <b>purpose</b>. If <b>exit</b> is defined, then use + * that as your exit router, else choose a suitable exit node. The <b>flags</b> + * argument is a bitfield of CIRCLAUNCH_* flags, see + * circuit_launch_by_extend_info() for more details. * * Also launch a connection to the first OR in the chosen path, if * it's not open already. |