Revision: 14721
Author: adrian.chadd
Date: Sun Jul  4 07:16:23 2010
Log: Add a "v6" clientdb tree in preparation for populating ipv6 addresses.


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

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

=======================================
--- /playpen/LUSCA_HEAD_ipv6/src/client_db.c    Sun Jul  4 06:56:53 2010
+++ /playpen/LUSCA_HEAD_ipv6/src/client_db.c    Sun Jul  4 07:16:23 2010
@@ -64,6 +64,7 @@
 typedef struct _ClientInfo ClientInfo;

 static radix_tree_t *client_v4_tree = NULL;
+static radix_tree_t *client_v6_tree = NULL;
 dlink_list client_list;

 static ClientInfo *clientdbAdd(struct in_addr addr);
@@ -111,6 +112,7 @@
     if (client_v4_tree)
         return;
     client_v4_tree = New_Radix();
+    client_v6_tree = New_Radix();
cachemgrRegister("client_list", "Cache Client List", clientdbDump, 0, 1);
 }

@@ -314,7 +316,9 @@
 clientdbFreeMemory(void)
 {
     Destroy_Radix(client_v4_tree, clientdbFreeItemRadix, NULL);
+    Destroy_Radix(client_v6_tree, clientdbFreeItemRadix, NULL);
     client_v4_tree = NULL;
+    client_v6_tree = NULL;
 }

 static void

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