uint8_t *binary_option;
const char *hostname;
- if (option_code == DHCP_HOST_NAME) {
+ if (option_code == G_DHCP_HOST_NAME) {
hostname = get_hostname(option_value);
binary_option = alloc_dhcp_option(option_code, hostname, 0);
{ OPTION_IP, 0x01 }, /* subnet-mask */
{ OPTION_IP | OPTION_LIST, 0x03 }, /* routers */
{ OPTION_IP | OPTION_LIST, 0x06 }, /* domain-name-servers */
+ { OPTION_STRING, 0x0c }, /* hostname */
{ OPTION_STRING, 0x0f }, /* domain-name */
{ OPTION_IP | OPTION_LIST, 0x2a }, /* ntp-servers */
{ OPTION_U32, 0x33 }, /* dhcp-lease-time */