Hi There,
didnt found the place where i can change the hostname of the Module.
Any document or file / function to watch for?
Thanks Tecomon
Hi ST-Kon,Please refer on the last answer on this ticket.Please check dhcp_option_hostname() function in dhcp.c file.
The name is CHIPSET_NAME_MACADDR[5:4] by default.
It is placed in "\core\libraries\3rdparty…
Hi Tecomon and brunner,
Please check dhcp_option_hostname() function in dhcp.c file.
Lines 2087-2091 :
#if defined DHCP_HOSTNAME_ONLY char tmp_hostname[20]; memset(tmp_hostname, 0, 20); snprintf(tmp_hostname, 20, "%s_%02X%02X", CHIPSET_NAME, netif->hwaddr[4], netif->hwaddr[5]); #else
The name is CHIPSET_NAME_MACADDR[5:4] by default. The "CHIPSET_NAME" is defined in sdk_type.h file:
There is a macro namely CHIPSET_NAME.
Default value :
#define CHIPSET_NAME “DA16200”
You can modify the hostname as follow.
snprintf(tmp_hostname, 20, "Customer_Test_STA");
Thanks, PM_Dialog