From 16d536e9ff281115603f09a258d7c89765a941a3 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Mon, 6 Jun 2022 13:24:22 -0400 Subject: prop339: Remove the nul term requirement for hostname Signed-off-by: David Goulet --- 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 -- cgit v1.2.3-54-g00ecf