This is an automated email from the git hooks/post-receive script.
dgoulet pushed a commit to branch main in repository torspec.
commit 16d536e9ff281115603f09a258d7c89765a941a3 Author: David Goulet dgoulet@torproject.org AuthorDate: Mon Jun 6 13:24:22 2022 -0400
prop339: Remove the nul term requirement for hostname
Signed-off-by: David Goulet dgoulet@torproject.org --- proposals/339-udp-over-tor.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/proposals/339-udp-over-tor.md b/proposals/339-udp-over-tor.md index 3c1a1d4..2a822aa 100644 --- a/proposals/339-udp-over-tor.md +++ b/proposals/339-udp-over-tor.md @@ -169,7 +169,7 @@ struct connect_udp_body { union address[addr_type] with length addr_len { T_IPV4: u32 ipv4; T_IPV6: u8 ipv6[16]; - T_HOSTNAME: nulterm name + T_HOSTNAME: hostname; }; u16 port; // The rest is ignored. @@ -191,6 +191,10 @@ const FLAG_IPV4_NOT_OKAY = 0x02; const FLAG_IPV6_PREFERRED = 0x04; ```
+A "hostname" is a DNS hostname that can only contain ascii characters. It is +NOT following the large and broad DNS syntax. These behaves exacly like BEGIN +cell behave with regards to the hostname given. + ### CONNECTED_UDP
A CONNECTED_UDP cell sent in response to a CONNECT_UDP cell has the following