Hi,
How do I get the list of options returned by the DHCP server from the NDK? Here's what the server is returning.
Regards,
-Mike
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
How do I get the list of options returned by the DHCP server from the NDK? Here's what the server is returning.
Regards,
-Mike
Hi Mike, I am not familiar with NDK DHCP client options. I search this key word on our E2E forum. I am not sure if this thread is helpful on your question:
Thanks!
Hi,
I resolved it with this.
status = CfgGetImmediate(0, CFGTAG_SYSINFO, CFGITEM_DHCP_DOMAINNAMESERVER, 1, 4, (unsigned char *)&IPServer ); if(status == 4) { NtIPN2Str(IPServer, IPString); strncpy(ip_settings.ip_dns1, IPString, sizeof(ip_settings.ip_dns1)); printf(" DNS Server : %s\r\n", ip_settings.ip_dns1); } status = CfgGetImmediate(0, CFGTAG_SYSINFO, CFGITEM_DHCP_NTP, 1, 4, (unsigned char *)&IPServer ); if(status == 4) { NtIPN2Str(IPServer, IPString); strncpy(ip_settings.ip_sntp, IPString, sizeof(ip_settings.ip_sntp)); printf(" NTP Server : %s\r\n", ip_settings.ip_sntp); }