diff options
author | Martin Willi <martin@revosec.ch> | 2012-09-11 10:41:11 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-09-11 16:18:28 +0200 |
commit | 594c58e1118e496eadd284647755b16b74665337 (patch) | |
tree | 743e0f33a01beffab57e363fe1e154944c63dd01 /src/libhydra/attributes/attribute_manager.h | |
parent | dc7b79d8a5c8104001bba4c52a8b3716a0cf6d88 (diff) | |
download | strongswan-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_manager.h')
-rw-r--r-- | src/libhydra/attributes/attribute_manager.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libhydra/attributes/attribute_manager.h b/src/libhydra/attributes/attribute_manager.h index 8bc80ca11..45e5a40f1 100644 --- a/src/libhydra/attributes/attribute_manager.h +++ b/src/libhydra/attributes/attribute_manager.h @@ -39,13 +39,13 @@ struct attribute_manager_t { /** * Acquire a virtual IP address to assign to a peer. * - * @param pool pool name to acquire address from + * @param pools list of pool names (char*) to acquire from * @param id peer identity to get address forua * @param requested IP in configuration request * @return allocated address, NULL to serve none */ host_t* (*acquire_address)(attribute_manager_t *this, - char *pool, identification_t *id, + linked_list_t *pool, identification_t *id, host_t *requested); /** |