From 2d8f7a4ff63415568a30a20f3fbd067e9898b99b Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Tue, 2 Dec 2008 17:35:05 +0000 Subject: clarify that 'resolve' relay cells nul-terminate the hostname, just like 'begin' relay cells. svn:r17442 --- doc/spec/tor-spec.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'doc/spec/tor-spec.txt') diff --git a/doc/spec/tor-spec.txt b/doc/spec/tor-spec.txt index e0a10a32d6..4603060478 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) -- cgit v1.2.3-54-g00ecf