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/feature/relay/selftest.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/feature/relay/selftest.c')
-rw-r--r-- | src/feature/relay/selftest.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/feature/relay/selftest.c b/src/feature/relay/selftest.c index e311c08ec5..ae5633bfbb 100644 --- a/src/feature/relay/selftest.c +++ b/src/feature/relay/selftest.c @@ -190,15 +190,19 @@ router_do_orport_reachability_checks(const routerinfo_t *me, int orport_reachable) { extend_info_t *ei = extend_info_from_router(me, family); + int ipv6_flags = (family == AF_INET6 ? CIRCLAUNCH_IS_IPV6_SELFTEST : 0); - /* If we don't have an IPv6 ORPort, ei will be NULL. */ + /* If we're trying to test IPv6, but we don't have an IPv6 ORPort, ei will + * be NULL. */ if (ei) { const char *family_name = fmt_af_family(family); log_info(LD_CIRC, "Testing %s of my %s ORPort: %s.", !orport_reachable ? "reachability" : "bandwidth", family_name, fmt_addrport(&ei->addr, ei->port)); circuit_launch_by_extend_info(CIRCUIT_PURPOSE_TESTING, ei, - CIRCLAUNCH_NEED_CAPACITY|CIRCLAUNCH_IS_INTERNAL); + CIRCLAUNCH_NEED_CAPACITY| + CIRCLAUNCH_IS_INTERNAL| + ipv6_flags); extend_info_free(ei); } } |