if (!host)
{
- DBG1(DBG_LIB, "acquiring address from pool '%s' failed", pool);
+ DBG1(DBG_CFG, "acquiring address from pool '%s' failed", pool);
}
return host;
}
if (!found)
{
- DBG1(DBG_LIB, "releasing address to pool '%s' failed", pool);
+ DBG1(DBG_CFG, "releasing address to pool '%s' failed", pool);
}
}
if (!handled)
{
- DBG1(DBG_LIB, "handling %N attribute failed",
+ DBG1(DBG_CFG, "handling %N attribute failed",
configuration_attribute_type_names, type);
}
return handled;
requested->get_family(requested) !=
this->base->get_family(this->base))
{
- DBG1(DBG_LIB, "IP pool address family mismatch");
+ DBG1(DBG_CFG, "IP pool address family mismatch");
return NULL;
}
id = this->ids->get(this->ids, id);
if (id)
{
- DBG1(DBG_LIB, "reassigning offline lease to '%Y'", id);
+ DBG1(DBG_CFG, "reassigning offline lease to '%Y'", id);
this->online->put(this->online, id, (void*)offset);
break;
}
offset = (uintptr_t)this->online->get(this->online, id);
if (offset && offset == host2offset(this, requested))
{
- DBG1(DBG_LIB, "reassigning online lease to '%Y'", id);
+ DBG1(DBG_CFG, "reassigning online lease to '%Y'", id);
break;
}
id = id->clone(id);
this->ids->put(this->ids, id, id);
this->online->put(this->online, id, (void*)offset);
- DBG1(DBG_LIB, "assigning new lease to '%Y'", id);
+ DBG1(DBG_CFG, "assigning new lease to '%Y'", id);
break;
}
{
/* destroy reference to old ID */
old_id = this->ids->remove(this->ids, old_id);
- DBG1(DBG_LIB, "reassigning existing offline lease by '%Y'"
+ DBG1(DBG_CFG, "reassigning existing offline lease by '%Y'"
" to '%Y'", old_id, id);
if (old_id)
{
}
enumerator->destroy(enumerator);
- DBG1(DBG_LIB, "pool '%s' is full, unable to assign address",
+ DBG1(DBG_CFG, "pool '%s' is full, unable to assign address",
this->name);
break;
}
id = this->ids->get(this->ids, id);
if (id)
{
- DBG1(DBG_LIB, "lease %H by '%Y' went offline", address, id);
+ DBG1(DBG_CFG, "lease %H by '%Y' went offline", address, id);
this->offline->put(this->offline, id, (void*)offset);
found = TRUE;
}
if (bits > POOL_LIMIT)
{
bits = POOL_LIMIT;
- DBG1(DBG_LIB, "virtual IP pool too large, limiting to %H/%d",
+ DBG1(DBG_CFG, "virtual IP pool too large, limiting to %H/%d",
base, addr_bits - bits);
}
this->size = 1 << (bits);
host = host_create_from_chunk(AF_UNSPEC, address, 0);
if (host)
{
- DBG1(DBG_LIB, "acquired existing lease for address %H in"
+ DBG1(DBG_CFG, "acquired existing lease for address %H in"
" pool '%s'", host, name);
return host;
}
host = host_create_from_chunk(AF_UNSPEC, address, 0);
if (host)
{
- DBG1(DBG_LIB, "acquired new lease for address %H in pool '%s'",
+ DBG1(DBG_CFG, "acquired new lease for address %H in pool '%s'",
host, name);
return host;
}
}
}
- DBG1(DBG_LIB, "no available address found in pool '%s'", name);
+ DBG1(DBG_CFG, "no available address found in pool '%s'", name);
return NULL;
}