Thank you. Garabo. Did not work for me with static info.
Here is what the function looks like(in ipcfg.c source file).
/*FUNCTION*--------------------------------------------------------------
*
* Function Name : ipcfg_get_ip()
* Returned Value : TRUE and IP, mask and gateway, if successful
* Comments : Returns actual ip information from DHCP response, if any. <<=====
*
*END--------------------------------------------------------------------*/
boolean ipcfg_get_ip
(
uint_32 device,
IPCFG_IP_ADDRESS_DATA_PTR data
)
{
if (device < IPCFG_DEVICE_COUNT)
{
if (ipcfg_data[device].actual_state != IPCFG_STATE_INIT)
{
*data = ipcfg_data[device].actual_ip_data;
return TRUE;
}
}
return FALSE;
}