--------------------- PatchSet 5265 Date: 2007/08/12 00:01:24 Author: amosjeffries Branch: squid3-ipv6 Tag: (none) Log: Officially codify the IPv6-all ACL for use. Members: src/ACLIP.cc:1.8.2.36->1.8.2.37 Index: squid3/src/ACLIP.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/ACLIP.cc,v retrieving revision 1.8.2.36 retrieving revision 1.8.2.37 diff -u -r1.8.2.36 -r1.8.2.37 --- squid3/src/ACLIP.cc 5 Aug 2007 14:03:05 -0000 1.8.2.36 +++ squid3/src/ACLIP.cc 12 Aug 2007 00:01:24 -0000 1.8.2.37 @@ -1,5 +1,5 @@ /* - * $Id: ACLIP.cc,v 1.8.2.36 2007/08/05 14:03:05 amosjeffries Exp $ + * $Id: ACLIP.cc,v 1.8.2.37 2007/08/12 00:01:24 amosjeffries Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Duane Wessels @@ -242,6 +242,7 @@ acl_ip_data *q = new acl_ip_data; IPAddressType iptype = None; + /* Special ACL RHS "all" matches entire Internet */ if (strcasecmp(t, "all") == 0) { q->addr1.SetAnyAddr(); q->addr2.SetNoAddr(); @@ -249,6 +250,13 @@ return q; } +#if USE_IPV6 + /* Special ACL RHS "ipv6" matches IPv6-Unicast Internet */ + if (strcasecmp(t, "ipv6") == 0) { + t = "2000::/3"; + } +#endif + // IPv4 if (sscanf(t, SCAN_ACL1_4, l_addr1, l_addr2, l_mask) == 3) { (void) 0;