diff options
author | David Goulet <dgoulet@torproject.org> | 2022-06-06 13:24:22 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2022-06-06 13:24:22 -0400 |
commit | 16d536e9ff281115603f09a258d7c89765a941a3 (patch) | |
tree | 7725afb63dc42614f66c8b3d4ec23571efa33ff7 | |
parent | c6cf0ad5e9ed68bd1a409295d3266919d8a50396 (diff) | |
download | torspec-16d536e9ff281115603f09a258d7c89765a941a3.tar.gz torspec-16d536e9ff281115603f09a258d7c89765a941a3.zip |
prop339: Remove the nul term requirement for hostname
Signed-off-by: David Goulet <dgoulet@torproject.org>
-rw-r--r-- | proposals/339-udp-over-tor.md | 6 |
1 files changed, 5 insertions, 1 deletions
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 |