summaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-07-19 20:31:43 +0000
committerNick Mathewson <nickm@torproject.org>2007-07-19 20:31:43 +0000
commit3015129a4a7a0e981fee3424e2f4e3b2170ef5e7 (patch)
tree267e4330fabc0d122ec76d48aedf38ff152bb36b /src/or/test.c
parent31a73c076722aaf93cdfbc12b65be904c51a1591 (diff)
downloadtor-3015129a4a7a0e981fee3424e2f4e3b2170ef5e7.tar.gz
tor-3015129a4a7a0e981fee3424e2f4e3b2170ef5e7.zip
r13846@catbus: nickm | 2007-07-19 16:31:41 -0400
Actually, OSX (and some BSDs) accept [f:f:f:f:f:f:f:f::] as a perfectly fine ipv6 address. svn:r10887
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/test.c b/src/or/test.c
index 408adaf8d8..f48de191de 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -1243,10 +1243,13 @@ test_ip6_helpers(void)
test_assert(r == -1);
r=tor_addr_parse_mask_ports("efef::/112", &t1, NULL, NULL, NULL);
test_assert(r == -1);
+#if 0
+ /* These two are okay on OSX and some BSDs. */
r=tor_addr_parse_mask_ports("[f:f:f:f:f:f:f:f::]", &t1, NULL, NULL, NULL);
test_assert(r == -1);
r=tor_addr_parse_mask_ports("[::f:f:f:f:f:f:f:f]", &t1, NULL, NULL, NULL);
test_assert(r == -1);
+#endif
r=tor_addr_parse_mask_ports("[f:f:f:f:f:f:f:f:f]", &t1, NULL, NULL, NULL);
test_assert(r == -1);
/* Test for V4-mapped address with mask < 96. (arguably not valid) */