clarify that 'resolve' relay cells nul-terminate the hostname, just

like 'begin' relay cells.


svn:r17442
This commit is contained in:
Roger Dingledine 2008-12-02 17:35:05 +00:00
parent b17b4f65b1
commit 2d8f7a4ff6
2 changed files with 7 additions and 5 deletions

View File

@ -858,10 +858,11 @@ see tor-design.pdf.
6.4. Remote hostname lookup 6.4. Remote hostname lookup
To find the address associated with a hostname, the OP sends a To find the address associated with a hostname, the OP sends a
RELAY_RESOLVE cell containing the hostname to be resolved. (For a reverse RELAY_RESOLVE cell containing the hostname to be resolved with a nul
lookup, the OP sends a RELAY_RESOLVE cell containing an in-addr.arpa terminating byte. (For a reverse lookup, the OP sends a RELAY_RESOLVE
address.) The OR replies with a RELAY_RESOLVED cell containing a status cell containing an in-addr.arpa address.) The OR replies with a
byte, and any number of answers. Each answer is of the form: RELAY_RESOLVED cell containing a status byte, and any number of
answers. Each answer is of the form:
Type (1 octet) Type (1 octet)
Length (1 octet) Length (1 octet)
Value (variable-width) Value (variable-width)

View File

@ -2630,7 +2630,8 @@ connection_exit_begin_conn(cell_t *cell, circuit_t *circ)
} }
/** /**
* 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. * begin resolving the hostname, and (eventually) reply with a RESOLVED cell.
*/ */
int int