[or-cvs] r17442: {tor} clarify that 'resolve' relay cells nul-terminate the hostnam (in tor/trunk: doc/spec src/or)
arma at seul.org
arma at seul.org
Tue Dec 2 17:35:05 UTC 2008
Author: arma
Date: 2008-12-02 12:35:05 -0500 (Tue, 02 Dec 2008)
New Revision: 17442
Modified:
tor/trunk/doc/spec/tor-spec.txt
tor/trunk/src/or/connection_edge.c
Log:
clarify that 'resolve' relay cells nul-terminate the hostname, just
like 'begin' relay cells.
Modified: tor/trunk/doc/spec/tor-spec.txt
===================================================================
--- tor/trunk/doc/spec/tor-spec.txt 2008-12-02 10:29:31 UTC (rev 17441)
+++ tor/trunk/doc/spec/tor-spec.txt 2008-12-02 17:35:05 UTC (rev 17442)
@@ -858,10 +858,11 @@
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)
Modified: tor/trunk/src/or/connection_edge.c
===================================================================
--- tor/trunk/src/or/connection_edge.c 2008-12-02 10:29:31 UTC (rev 17441)
+++ tor/trunk/src/or/connection_edge.c 2008-12-02 17:35:05 UTC (rev 17442)
@@ -2630,7 +2630,8 @@
}
/**
- * Called when we receive a RELAY_RESOLVE cell 'cell' along the circuit 'circ';
+ * Called when we receive a RELAY_COMMAND_RESOLVE cell 'cell' along the
+ * circuit <b>circ</b>;
* begin resolving the hostname, and (eventually) reply with a RESOLVED cell.
*/
int
More information about the tor-commits
mailing list