[or-cvs] r10887: Actually, OSX (and some BSDs) accept [f:f:f:f:f:f:f:f::] as (in tor/trunk: . src/or)

nickm at seul.org nickm at seul.org
Thu Jul 19 20:31:43 UTC 2007


Author: nickm
Date: 2007-07-19 16:31:43 -0400 (Thu, 19 Jul 2007)
New Revision: 10887

Modified:
   tor/trunk/
   tor/trunk/src/or/test.c
Log:
 r13846 at 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.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r13846] on 8246c3cf-6607-4228-993b-4d95d33730f1

Modified: tor/trunk/src/or/test.c
===================================================================
--- tor/trunk/src/or/test.c	2007-07-19 20:04:05 UTC (rev 10886)
+++ tor/trunk/src/or/test.c	2007-07-19 20:31:43 UTC (rev 10887)
@@ -1243,10 +1243,13 @@
   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) */



More information about the tor-commits mailing list