Include configuration payloads for DNS/WINS server received via DHCP

This commit is contained in:
Martin Willi
2010-03-25 14:29:10 +01:00
parent 913eb69692
commit b262429e0b
4 changed files with 125 additions and 2 deletions
+17 -1
View File
@@ -131,7 +131,23 @@ METHOD(attribute_provider_t, release_address, bool,
METHOD(attribute_provider_t, create_attribute_enumerator, enumerator_t*,
private_dhcp_provider_t *this, identification_t *id, host_t *vip)
{
return enumerator_create_empty();
dhcp_transaction_t *transaction;
if (!vip)
{
return NULL;
}
this->mutex->lock(this->mutex);
transaction = this->transactions->get(this->transactions,
(void*)hash_id_host(id, vip));
if (!transaction)
{
this->mutex->unlock(this->mutex);
return NULL;
}
return enumerator_create_cleaner(
transaction->create_attribute_enumerator(transaction),
(void*)this->mutex->unlock, this->mutex);
}
METHOD(dhcp_provider_t, destroy, void,