aboutsummaryrefslogtreecommitdiff
path: root/tor-spec.txt
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2020-04-28 17:34:15 +1000
committerteor <teor@torproject.org>2020-04-28 17:34:15 +1000
commit79fba6de64025991da4aac402d0b7f69493105d8 (patch)
tree069b2f7b026ce9cde4e80a0b9e3571dc7d845cac /tor-spec.txt
parentce0d233f6d834be8a2fd2a10b2791978b90c1df1 (diff)
downloadtorspec-79fba6de64025991da4aac402d0b7f69493105d8.tar.gz
torspec-79fba6de64025991da4aac402d0b7f69493105d8.zip
tor-spec: Explain the truncated reason better
It's the payload of a DESTROY cell, but the data of a RELAY_TRUNCATED cell.
Diffstat (limited to 'tor-spec.txt')
-rw-r--r--tor-spec.txt11
1 files changed, 6 insertions, 5 deletions
diff --git a/tor-spec.txt b/tor-spec.txt
index fa6026d..7f0256e 100644
--- a/tor-spec.txt
+++ b/tor-spec.txt
@@ -1438,11 +1438,12 @@ see tor-design.pdf.
RELAY_TRUNCATED cell towards the OP; the node farther from the OP
should send a DESTROY cell down the circuit.
- The payload of a RELAY_TRUNCATED or DESTROY cell contains a single octet,
- describing why the circuit is being closed or truncated. When sending a
- TRUNCATED or DESTROY cell because of another TRUNCATED or DESTROY cell,
- the error code should be propagated. The origin of a circuit always sets
- this error code to 0, to avoid leaking its version.
+ The payload of a DESTROY cell contains a single octet, describing the
+ reason that the circuit was closed. Similarly, the data of a
+ RELAY_TRUNCATED cell also contains this single octet "reason" field. When
+ sending a TRUNCATED or DESTROY cell because of another TRUNCATED or
+ DESTROY cell, the error code should be propagated. The origin of a circuit
+ always sets this error code to 0, to avoid leaking its version.
The error codes are: