aboutsummaryrefslogtreecommitdiff
path: root/doc/spec
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-12-02 17:35:05 +0000
committerRoger Dingledine <arma@torproject.org>2008-12-02 17:35:05 +0000
commit2d8f7a4ff63415568a30a20f3fbd067e9898b99b (patch)
treecdad3096aded3ab53c6453c4c4ff413f3ae225dc /doc/spec
parentb17b4f65b1b0875bae14ab765b95df27b6e6ba01 (diff)
downloadtor-2d8f7a4ff63415568a30a20f3fbd067e9898b99b.tar
tor-2d8f7a4ff63415568a30a20f3fbd067e9898b99b.tar.gz
clarify that 'resolve' relay cells nul-terminate the hostname, just
like 'begin' relay cells. svn:r17442
Diffstat (limited to 'doc/spec')
-rw-r--r--doc/spec/tor-spec.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/spec/tor-spec.txt b/doc/spec/tor-spec.txt
index e0a10a32d..460306047 100644
--- a/doc/spec/tor-spec.txt
+++ b/doc/spec/tor-spec.txt
@@ -858,10 +858,11 @@ see tor-design.pdf.
6.4. Remote hostname lookup
To find the address associated with a hostname, the OP sends a
- RELAY_RESOLVE cell containing the hostname to be resolved. (For a reverse
- lookup, the OP sends a RELAY_RESOLVE cell containing an in-addr.arpa
- address.) The OR replies with a RELAY_RESOLVED cell containing a status
- byte, and any number of answers. Each answer is of the form:
+ RELAY_RESOLVE cell containing the hostname to be resolved with a nul
+ terminating byte. (For a reverse lookup, the OP sends a RELAY_RESOLVE
+ cell containing an in-addr.arpa address.) The OR replies with a
+ RELAY_RESOLVED cell containing a status byte, and any number of
+ answers. Each answer is of the form:
Type (1 octet)
Length (1 octet)
Value (variable-width)