diff options
Diffstat (limited to 'networking/udhcp/options.c')
-rw-r--r-- | networking/udhcp/options.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/networking/udhcp/options.c b/networking/udhcp/options.c index bda6efc7e..a58adb9a9 100644 --- a/networking/udhcp/options.c +++ b/networking/udhcp/options.c | |||
@@ -11,7 +11,7 @@ | |||
11 | 11 | ||
12 | /* supported options are easily added here */ | 12 | /* supported options are easily added here */ |
13 | const struct dhcp_option dhcp_options[] = { | 13 | const struct dhcp_option dhcp_options[] = { |
14 | /* name[10] flags code */ | 14 | /* name[12] flags code */ |
15 | {"subnet", OPTION_IP | OPTION_REQ, 0x01}, | 15 | {"subnet", OPTION_IP | OPTION_REQ, 0x01}, |
16 | {"timezone", OPTION_S32, 0x02}, | 16 | {"timezone", OPTION_S32, 0x02}, |
17 | {"router", OPTION_IP | OPTION_LIST | OPTION_REQ, 0x03}, | 17 | {"router", OPTION_IP | OPTION_LIST | OPTION_REQ, 0x03}, |
@@ -43,6 +43,9 @@ const struct dhcp_option dhcp_options[] = { | |||
43 | {"tftp", OPTION_STRING, 0x42}, | 43 | {"tftp", OPTION_STRING, 0x42}, |
44 | {"bootfile", OPTION_STRING, 0x43}, | 44 | {"bootfile", OPTION_STRING, 0x43}, |
45 | {"userclass", OPTION_STRING, 0x4D}, | 45 | {"userclass", OPTION_STRING, 0x4D}, |
46 | #if ENABLE_FEATURE_RFC3397 | ||
47 | {"search", OPTION_STR1035 | OPTION_LIST | OPTION_REQ, 0x77}, | ||
48 | #endif | ||
46 | /* MSIE's "Web Proxy Autodiscovery Protocol" support */ | 49 | /* MSIE's "Web Proxy Autodiscovery Protocol" support */ |
47 | {"wpad", OPTION_STRING, 0xfc}, | 50 | {"wpad", OPTION_STRING, 0xfc}, |
48 | {"", 0x00, 0x00} | 51 | {"", 0x00, 0x00} |
@@ -54,6 +57,9 @@ const unsigned char option_lengths[] = { | |||
54 | [OPTION_IP_PAIR] = 8, | 57 | [OPTION_IP_PAIR] = 8, |
55 | [OPTION_BOOLEAN] = 1, | 58 | [OPTION_BOOLEAN] = 1, |
56 | [OPTION_STRING] = 1, | 59 | [OPTION_STRING] = 1, |
60 | #if ENABLE_FEATURE_RFC3397 | ||
61 | [OPTION_STR1035] = 1, | ||
62 | #endif | ||
57 | [OPTION_U8] = 1, | 63 | [OPTION_U8] = 1, |
58 | [OPTION_U16] = 2, | 64 | [OPTION_U16] = 2, |
59 | [OPTION_S16] = 2, | 65 | [OPTION_S16] = 2, |