diff options
author | teor <teor@riseup.net> | 2020-05-14 18:22:55 +1000 |
---|---|---|
committer | teor <teor@riseup.net> | 2020-05-14 21:15:16 +1000 |
commit | 6a0fdf381d413ccf1ad2668003b0c373a34f0e3c (patch) | |
tree | 300eec90c591a799467869ea7b6b5988bba0d61d /src/test/test_helpers.c | |
parent | d41d13ea73e0b5b7023a43e7d13d8738f2e59855 (diff) | |
download | tor-6a0fdf381d413ccf1ad2668003b0c373a34f0e3c.tar.gz tor-6a0fdf381d413ccf1ad2668003b0c373a34f0e3c.zip |
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.
Diffstat (limited to 'src/test/test_helpers.c')
-rw-r--r-- | src/test/test_helpers.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |