DBG1(DBG_CFG, "DHCP DISCOVER timed out");
return NULL;
}
+ DBG1(DBG_CFG, "received DHCP OFFER %H from %H",
+ transaction->get_address(transaction),
+ transaction->get_server(transaction));
try = 1;
while (try <= DHCP_TRIES && request(this, transaction))
return NULL;
}
this->mutex->unlock(this->mutex);
+ DBG1(DBG_CFG, "received DHCP ACK for %H",
+ transaction->get_address(transaction));
return transaction;
}
server = host_create_from_chunk(AF_INET,
chunk_from_thing(dhcp->server_address), DHCP_SERVER_PORT);
}
- DBG1(DBG_CFG, "received DHCP OFFER %H from %H", offer, server);
transaction->set_address(transaction, offer->clone(offer));
transaction->set_server(transaction, server);
}
{
dhcp_transaction_t *transaction;
enumerator_t *enumerator;
- host_t *offer;
-
- offer = host_create_from_chunk(AF_INET,
- chunk_from_thing(dhcp->your_address), 0);
this->mutex->lock(this->mutex);
enumerator = this->request->create_enumerator(this->request);
{
if (transaction->get_id(transaction) == dhcp->transaction_id)
{
- DBG1(DBG_CFG, "received DHCP ACK for %H", offer);
this->request->remove_at(this->request, enumerator);
this->completed->insert_last(this->completed, transaction);
break;
enumerator->destroy(enumerator);
this->mutex->unlock(this->mutex);
this->condvar->broadcast(this->condvar);
- offer->destroy(offer);
}
/**