Support multiple address pools configured on a peer_cfg
This commit is contained in:
@@ -87,7 +87,7 @@ METHOD(attribute_manager_t, acquire_address, host_t*,
|
||||
return host;
|
||||
}
|
||||
|
||||
METHOD(attribute_manager_t, release_address, void,
|
||||
METHOD(attribute_manager_t, release_address, bool,
|
||||
private_attribute_manager_t *this, char *pool, host_t *address,
|
||||
identification_t *id)
|
||||
{
|
||||
@@ -108,10 +108,7 @@ METHOD(attribute_manager_t, release_address, void,
|
||||
enumerator->destroy(enumerator);
|
||||
this->lock->unlock(this->lock);
|
||||
|
||||
if (!found)
|
||||
{
|
||||
DBG1(DBG_CFG, "releasing address to pool '%s' failed", pool);
|
||||
}
|
||||
return found;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -54,8 +54,9 @@ struct attribute_manager_t {
|
||||
* @param pool pool name from which the address was acquired
|
||||
* @param address address to release
|
||||
* @param id peer identity to get address for
|
||||
* @return TRUE if address released to pool
|
||||
*/
|
||||
void (*release_address)(attribute_manager_t *this,
|
||||
bool (*release_address)(attribute_manager_t *this,
|
||||
char *pool, host_t *address, identification_t *id);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user