Handle potential NULL pointer with DHCP options
[framework/connectivity/connman.git] / gdhcp / common.c
index 784844b..fc95881 100644 (file)
@@ -37,12 +37,14 @@ static const DHCPOption client_options[] = {
        { 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 */
        /* Options below will not be exposed to user */
        { OPTION_IP,                    0x32 }, /* requested-ip */
        { OPTION_U8,                    0x35 }, /* message-type */
+       { OPTION_U32,                   0x36 }, /* server-id */
        { OPTION_U16,                   0x39 }, /* max-size */
        { OPTION_STRING,                0x3c }, /* vendor */
        { OPTION_STRING,                0x3d }, /* client-id */