Revision: 14842 Author: adrian.chadd Date: Tue Jan 11 21:36:42 2011 Log: Convert the asn ACL entry to use the new ipcacheGetAddr() API. This makes it IPv6 aware, but the ASN code doesn't do IPv6 addresses internally so it becomes a no-op.
http://code.google.com/p/lusca-cache/source/detail?r=14842 Modified: /playpen/LUSCA_HEAD_ipv6/src/acl.c ======================================= --- /playpen/LUSCA_HEAD_ipv6/src/acl.c Tue Sep 7 05:08:24 2010 +++ /playpen/LUSCA_HEAD_ipv6/src/acl.c Tue Jan 11 21:36:42 2011 @@ -2243,8 +2243,14 @@ ia = ipcache_gethostbyname(r->host, IP_LOOKUP_IF_MISS); if (ia) { for (k = 0; k < (int) ia->count; k++) { - if (asnMatchIp4(ae->data, ia->in_addrs[k])) + sqaddr_t a; + sqinet_init(&a); + (void) ipcacheGetAddr(ia, k, &a); + if (asnMatchIp(ae->data, &a)) { + sqinet_done(&a); return 1; + } + sqinet_done(&a); } return 0; } else if (checklist->state[ACL_DST_ASN] == ACL_LOOKUP_NONE) { -- You received this message because you are subscribed to the Google Groups "lusca-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/lusca-commit?hl=en.
