Support multiple address pools configured on a peer_cfg

This commit is contained in:
Martin Willi
2012-08-30 16:43:42 +02:00
parent 101d26babe
commit 497ce2cf51
25 changed files with 151 additions and 55 deletions
+2 -5
View File
@@ -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;
}
/**
+2 -1
View File
@@ -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);
/**