aboutsummaryrefslogtreecommitdiffstats
path: root/src/libhydra/attributes/attribute_provider.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-09-11 10:41:11 +0200
committerMartin Willi <martin@revosec.ch>2012-09-11 16:18:28 +0200
commit594c58e1118e496eadd284647755b16b74665337 (patch)
tree743e0f33a01beffab57e363fe1e154944c63dd01 /src/libhydra/attributes/attribute_provider.h
parentdc7b79d8a5c8104001bba4c52a8b3716a0cf6d88 (diff)
downloadstrongswan-594c58e1118e496eadd284647755b16b74665337.tar.bz2
strongswan-594c58e1118e496eadd284647755b16b74665337.tar.xz
Pass the full list of pools to acquire_address, enumerate in providers
If the provider has access to the full pool list, it can enumerate them twice, for example to search for existing leases first, and only search for new leases in a second step. Fixes lease enumeration in attr-sql using multiple pools.
Diffstat (limited to 'src/libhydra/attributes/attribute_provider.h')
-rw-r--r--src/libhydra/attributes/attribute_provider.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libhydra/attributes/attribute_provider.h b/src/libhydra/attributes/attribute_provider.h
index 327135ffe..7d0acdbac 100644
--- a/src/libhydra/attributes/attribute_provider.h
+++ b/src/libhydra/attributes/attribute_provider.h
@@ -35,13 +35,13 @@ struct attribute_provider_t {
/**
* Acquire a virtual IP address to assign to a peer.
*
- * @param pool name of the pool to acquire address from
+ * @param pools list of pool names (char*) to acquire from
* @param id peer ID
* @param requested IP in configuration request
* @return allocated address, NULL to serve none
*/
host_t* (*acquire_address)(attribute_provider_t *this,
- char *pool, identification_t *id,
+ linked_list_t *pools, identification_t *id,
host_t *requested);
/**
* Release a previously acquired address.