Revision: 14864
Author:   adrian.chadd
Date:     Fri Jul  8 23:03:37 2011
Log:      Disable netdb for ipv6 destinations.

I'll work on enabling this at a later date.


http://code.google.com/p/lusca-cache/source/detail?r=14864

Modified:
 /playpen/LUSCA_HEAD_ipv6/src/net_db.c

=======================================
--- /playpen/LUSCA_HEAD_ipv6/src/net_db.c       Tue Jan 18 17:09:57 2011
+++ /playpen/LUSCA_HEAD_ipv6/src/net_db.c       Fri Jul  8 23:03:37 2011
@@ -239,6 +239,10 @@
        xfree(hostname);
        return;
     }
+#warning This needs to support IPv6!
+    if (ipcacheGetAddrFamily(ia, ia->cur) != AF_INET)
+        return;
+
     addr = ipcacheGetAddrV4(ia, ia->cur);
     if ((n = netdbLookupHost(hostname)) == NULL) {
        n = netdbAdd(addr);

--
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.

Reply via email to