diff options
author | George Kadianakis <desnacked@riseup.net> | 2019-07-23 13:17:37 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2019-08-05 18:03:23 +0300 |
commit | ce477da8a7969964810fb16502073d5f34e58692 (patch) | |
tree | 8c285de46394cecc6ab88b099c70cc2848a9b5d0 /src/core/or/circuitpadding.h | |
parent | 7a032c5e4838651b62b99938d56e94b4a6fc6197 (diff) | |
download | tor-ce477da8a7969964810fb16502073d5f34e58692.tar.gz tor-ce477da8a7969964810fb16502073d5f34e58692.zip |
Ignore regular cells in padding circuits.
Padding circuits were regular cells that got closed before their padding
machine could finish. This means that they can still receive regular cells from
their past life, but they have no way or reason to answer them anymore. Hence
let's ignore them before they even get to the proper subsystems.
Diffstat (limited to 'src/core/or/circuitpadding.h')
-rw-r--r-- | src/core/or/circuitpadding.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/or/circuitpadding.h b/src/core/or/circuitpadding.h index fc2e595c0a..e9eb32c618 100644 --- a/src/core/or/circuitpadding.h +++ b/src/core/or/circuitpadding.h @@ -734,6 +734,10 @@ bool circpad_padding_negotiated(struct circuit_t *circ, circpad_purpose_mask_t circpad_circ_purpose_to_mask(uint8_t circ_purpose); +int circpad_check_received_cell(cell_t *cell, circuit_t *circ, + crypt_path_t *layer_hint, + const relay_header_t *rh); + MOCK_DECL(circpad_decision_t, circpad_machine_schedule_padding,(circpad_machine_runtime_t *)); |