aboutsummaryrefslogtreecommitdiffstats
path: root/src/libhydra/attributes/mem_pool.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2013-03-11 14:49:02 +0100
committerMartin Willi <martin@revosec.ch>2013-03-11 15:12:47 +0100
commit0897cda33b63e99fc3df787ea0fcaf2f5813a141 (patch)
tree9abeb1a6f7de1f87d872c2d62bf3845fa8d5673b /src/libhydra/attributes/mem_pool.h
parent8f727d8007510839a17796b53afe090a8955e23d (diff)
downloadstrongswan-0897cda33b63e99fc3df787ea0fcaf2f5813a141.tar.bz2
strongswan-0897cda33b63e99fc3df787ea0fcaf2f5813a141.tar.xz
Add a constructor to create in-memory pools from an address range
Diffstat (limited to 'src/libhydra/attributes/mem_pool.h')
-rw-r--r--src/libhydra/attributes/mem_pool.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libhydra/attributes/mem_pool.h b/src/libhydra/attributes/mem_pool.h
index f273b18e9..7347bb547 100644
--- a/src/libhydra/attributes/mem_pool.h
+++ b/src/libhydra/attributes/mem_pool.h
@@ -133,4 +133,14 @@ struct mem_pool_t {
*/
mem_pool_t *mem_pool_create(char *name, host_t *base, int bits);
+/**
+ * Create an in-memory IP address from a range.
+ *
+ * @param name name of this pool
+ * @param from start of ranged pool
+ * @param to end of ranged pool
+ * @return memory pool instance, NULL if range invalid
+ */
+mem_pool_t *mem_pool_create_range(char *name, host_t *from, host_t *to);
+
#endif /** MEM_POOL_H_ @} */