summaryrefslogtreecommitdiff
path: root/src/trunnel
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2018-10-26 11:30:26 +0300
committerrl1987 <rl1987@sdf.lonestar.org>2018-10-26 12:58:42 +0300
commitbdf6540edf5b9d3d45214393412b8fe7e42da5ca (patch)
tree4a6a00e583487d4f2ebc27aab7efcce75a7c8980 /src/trunnel
parentb64e1e602bac5e108e40a284616e3fe7f7597b17 (diff)
downloadtor-bdf6540edf5b9d3d45214393412b8fe7e42da5ca.tar.gz
tor-bdf6540edf5b9d3d45214393412b8fe7e42da5ca.zip
Add a comment about address type field to netinfo.trunnel
Diffstat (limited to 'src/trunnel')
-rw-r--r--src/trunnel/netinfo.trunnel3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/trunnel/netinfo.trunnel b/src/trunnel/netinfo.trunnel
index 9c80fcc533..21afcd136e 100644
--- a/src/trunnel/netinfo.trunnel
+++ b/src/trunnel/netinfo.trunnel
@@ -1,3 +1,6 @@
+// Warning: make sure these values are consistent with RESOLVED_TYPE_*
+// constants in Tor code and numbers in Section 6.4 of tor-spec.txt.
+
const NETINFO_ADDR_TYPE_IPV4 = 4;
const NETINFO_ADDR_TYPE_IPV6 = 6;