From 6a0fdf381d413ccf1ad2668003b0c373a34f0e3c Mon Sep 17 00:00:00 2001 From: teor Date: Thu, 14 May 2020 18:22:55 +1000 Subject: circuitbuild: test relays sending IPv6 extend cells Add tests for relays sending IPv6 extend cells in circuit_send_next_onion_skin(). Clients also use this code, check that they can only extend over IPv4 (for now). Part of 33222. --- src/test/test_helpers.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/test/test_helpers.c') diff --git a/src/test/test_helpers.c b/src/test/test_helpers.c index a9c003798f..14913b4b40 100644 --- a/src/test/test_helpers.c +++ b/src/test/test_helpers.c @@ -40,6 +40,7 @@ #include "core/or/cell_st.h" #include "core/or/connection_st.h" #include "core/or/cpath_build_state_st.h" +#include "core/or/crypt_path_st.h" #include "core/or/origin_circuit_st.h" #include "core/or/or_connection_st.h" @@ -471,9 +472,11 @@ new_test_origin_circuit(bool has_opened, if (has_opened) { origin_circ->has_opened = 1; TO_CIRCUIT(origin_circ)->state = CIRCUIT_STATE_OPEN; + origin_circ->cpath->state = CPATH_STATE_OPEN; } else { TO_CIRCUIT(origin_circ)->timestamp_began = circ_start_time; TO_CIRCUIT(origin_circ)->timestamp_created = circ_start_time; + origin_circ->cpath->state = CPATH_STATE_CLOSED; } return origin_circ; -- cgit v1.2.3-54-g00ecf