diff options
Diffstat (limited to 'networking/udhcp/options.c')
-rw-r--r-- | networking/udhcp/options.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/networking/udhcp/options.c b/networking/udhcp/options.c index 58144728e..3f3a38963 100644 --- a/networking/udhcp/options.c +++ b/networking/udhcp/options.c | |||
@@ -13,11 +13,16 @@ | |||
13 | #include "options.h" | 13 | #include "options.h" |
14 | #include "leases.h" | 14 | #include "leases.h" |
15 | 15 | ||
16 | #include "config.h" | ||
16 | 17 | ||
17 | /* supported options are easily added here */ | 18 | /* supported options are easily added here */ |
18 | struct dhcp_option options[] = { | 19 | struct dhcp_option options[] = { |
19 | /* name[10] flags code */ | 20 | /* name[10] flags code */ |
20 | {"subnet", OPTION_IP | OPTION_REQ, 0x01}, | 21 | #ifdef CONFIG_FEATURE_UDHCPC_IP |
22 | {"subnet", OPTION_IP | OPTION_REQ | OPTION_PREFIX, 0x01}, | ||
23 | #else | ||
24 | {"subnet", OPTION_IP | OPTION_REQ, 0x01}, | ||
25 | #endif | ||
21 | {"timezone", OPTION_S32, 0x02}, | 26 | {"timezone", OPTION_S32, 0x02}, |
22 | {"router", OPTION_IP | OPTION_LIST | OPTION_REQ, 0x03}, | 27 | {"router", OPTION_IP | OPTION_LIST | OPTION_REQ, 0x03}, |
23 | {"timesvr", OPTION_IP | OPTION_LIST, 0x04}, | 28 | {"timesvr", OPTION_IP | OPTION_LIST, 0x04}, |