Revision: 14791
Author: adrian.chadd
Date: Mon Sep  6 21:35:23 2010
Log: Add in a couple of functions which implement the setup and teardown of members of aclCheck_t.

There's plenty of instances where an aclCheck_t is statically instanciated and then abused by setting only the relevant information. Since aclCheck_t now contains sqaddr_t types, this abuse needs to be wrapped in these new calls to properly
setup and tear down sqaddr_t's.

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

Modified:
 /playpen/LUSCA_HEAD_ipv6/src/acl.c
 /playpen/LUSCA_HEAD_ipv6/src/protos.h

=======================================
--- /playpen/LUSCA_HEAD_ipv6/src/acl.c  Mon Sep  6 09:11:28 2010
+++ /playpen/LUSCA_HEAD_ipv6/src/acl.c  Mon Sep  6 21:35:23 2010
@@ -2688,6 +2688,20 @@
 #endif
     }
 }
+
+void
+aclCheckSetup(aclCheck_t *ch)
+{
+    sqinet_init(&ch->my_address);
+    sqinet_init(&ch->src_address);
+}
+
+void
+aclCheckFinish(aclCheck_t *ch)
+{
+    sqinet_done(&ch->my_address);
+    sqinet_done(&ch->src_address);
+}

 CBDATA_TYPE(aclCheck_t);

=======================================
--- /playpen/LUSCA_HEAD_ipv6/src/protos.h       Mon Sep  6 19:36:27 2010
+++ /playpen/LUSCA_HEAD_ipv6/src/protos.h       Mon Sep  6 21:35:23 2010
@@ -62,6 +62,8 @@

 /* acl.c */
 extern void aclInitMem(void);
+extern void aclCheckSetup(aclCheck_t *);
+extern void aclCheckFinish(aclCheck_t *);
 extern aclCheck_t *aclChecklistCreate(const struct _acl_access *,
     request_t *,
     const char *ident);

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