Pass full pool list to release_address
This commit is contained in:
1 parent
594c58e111
commit
28a3d5bfbd
9 files changed
+94
-46
No files matched your search
@@ -84,7 +84,7 @@ METHOD(attribute_manager_t, acquire_address, host_t*,
|
||||
}
|
||||
|
||||
METHOD(attribute_manager_t, release_address, bool,
|
||||
private_attribute_manager_t *this, char *pool, host_t *address,
|
||||
private_attribute_manager_t *this, linked_list_t *pools, host_t *address,
|
||||
identification_t *id)
|
||||
{
|
||||
enumerator_t *enumerator;
|
||||
@@ -95,7 +95,7 @@ METHOD(attribute_manager_t, release_address, bool,
|
||||
enumerator = this->providers->create_enumerator(this->providers);
|
||||
while (enumerator->enumerate(enumerator, ¤t))
|
||||
{
|
||||
if (current->release_address(current, pool, address, id))
|
||||
if (current->release_address(current, pools, address, id))
|
||||
{
|
||||
found = TRUE;
|
||||
break;
|
||||
|
||||
@@ -51,13 +51,14 @@ struct attribute_manager_t {
|
||||
/**
|
||||
* Release a previously acquired address.
|
||||
*
|
||||
* @param pool pool name from which the address was acquired
|
||||
* @param pools list of pool names (char*) to release to
|
||||
* @param address address to release
|
||||
* @param id peer identity to get address for
|
||||
* @return TRUE if address released to pool
|
||||
*/
|
||||
bool (*release_address)(attribute_manager_t *this,
|
||||
char *pool, host_t *address, identification_t *id);
|
||||
linked_list_t *pools, host_t *address,
|
||||
identification_t *id);
|
||||
|
||||
/**
|
||||
* Create an enumerator over attributes to hand out to a peer.
|
||||
|
||||
@@ -46,13 +46,14 @@ struct attribute_provider_t {
|
||||
/**
|
||||
* Release a previously acquired address.
|
||||
*
|
||||
* @param pool name of the pool this address was acquired from
|
||||
* @param pools list of pool names (char*) to release to
|
||||
* @param address address to release
|
||||
* @param id peer ID
|
||||
* @return TRUE if the address has been released by the provider
|
||||
*/
|
||||
bool (*release_address)(attribute_provider_t *this,
|
||||
char *pool, host_t *address, identification_t *id);
|
||||
linked_list_t *pools, host_t *address,
|
||||
identification_t *id);
|
||||
|
||||
/**
|
||||
* Create an enumerator over attributes to hand out to a peer.
|
||||
|
||||
Reference in new issue
Block a user