Wait, with timeout, for a response from a DHCP server and update the DHCP transfer data. The exact behavior of this function depends on the current DHCP client state:
- If in DHCPC_STATE_SELECTING, the client waits until it gets a DHCPOFFER reply from any server.
- If in DHCPC_STATE_REQUESTING, the client waits until it gets a DHCPACK or DHCPNAK reply from the server to which it sent the DHCPREQUEST.
- Parameters
-
[in] | descrp | Network device on which to wait for a response. |
[in,out] | data | DHCP transfer data. |
[in] | timeout | Milliseconds to wait before timing out. |
- Returns
- OK if successful; TIMEOUT if timed out; SYSERR if other error occurred.