aboutsummaryrefslogtreecommitdiff
path: root/tor-spec.txt
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-09-17 09:14:00 -0400
committerNick Mathewson <nickm@torproject.org>2020-09-17 09:14:00 -0400
commit7640567727f03906db29d47f036cab5e6d62760d (patch)
treebc5eb5e1f7140e137935a77b584ac4cbdd5754c2 /tor-spec.txt
parent121ccea1b8bc7fac20ff68af22cb2270550839cc (diff)
downloadtorspec-7640567727f03906db29d47f036cab5e6d62760d.tar.gz
torspec-7640567727f03906db29d47f036cab5e6d62760d.zip
tor-spec: describe END cell format better.
Diffstat (limited to 'tor-spec.txt')
-rw-r--r--tor-spec.txt15
1 files changed, 11 insertions, 4 deletions
diff --git a/tor-spec.txt b/tor-spec.txt
index af16fa4..f20fcfd 100644
--- a/tor-spec.txt
+++ b/tor-spec.txt
@@ -1686,7 +1686,7 @@ see tor-design.pdf.
Upon receiving this cell, the exit node resolves the address as
necessary, and opens a new TCP connection to the target port. If the
address cannot be resolved, or a connection can't be established, the
- exit node replies with a RELAY_END cell. (See 6.4 below.)
+ exit node replies with a RELAY_END cell. (See 6.3 below.)
Otherwise, the exit node replies with a RELAY_CONNECTED cell, whose
payload is in one of the following formats:
@@ -1787,9 +1787,16 @@ see tor-design.pdf.
14 -- REASON_NOTDIRECTORY (Client sent RELAY_BEGIN_DIR to a
non-directory relay.)
- (With REASON_EXITPOLICY, the 4-byte IPv4 address or 16-byte IPv6 address
- forms the optional data, along with a 4-byte TTL; no other reason
- currently has extra data.)
+
+ For most reasons, the format is:
+
+ Reason [1 byte]
+
+ For REASON_EXITPOLICY, the format is:
+
+ Reason [1 byte]
+ IPv4 or IPv6 address [4 bytes or 16 bytes]
+ TTL [4 bytes]
OPs and ORs MUST accept reasons not on the above list, since future
versions of Tor may provide more fine-grained reasons.