From b962a3003808fb940101f5f49c5b3ead2eeaf3e5 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 16 Aug 2021 11:17:23 -0400 Subject: Clarify behavior on bad address length in NETINFO --- tor-spec.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tor-spec.txt') diff --git a/tor-spec.txt b/tor-spec.txt index 7e76562..dce264f 100644 --- a/tor-spec.txt +++ b/tor-spec.txt @@ -887,7 +887,8 @@ see tor-design.pdf. [06] IPv6. ALEN MUST be 4 when ATYPE is 0x04 (IPv4) and 16 when ATYPE is 0x06 - (IPv6). + (IPv6). If the ALEN value is wrong for the given ATYPE value, then + the provided address should be ignored. The timestamp is a big-endian unsigned integer number of seconds since the Unix epoch. Implementations MUST ignore unexpected bytes -- cgit v1.2.3-54-g00ecf