summaryrefslogtreecommitdiff
path: root/networking/udhcp/options.c
diff options
context:
space:
mode:
authorGlenn L McGrath2002-12-08 22:17:54 +0000
committerGlenn L McGrath2002-12-08 22:17:54 +0000
commit6b5bd0e5abbfb6b3b925dfd8452c72589569981b (patch)
tree19011ddf9f89ae7b4f9245154520e0605984c6e7 /networking/udhcp/options.c
parentc4698b36682b0bccae2fa1f70460aacaef306313 (diff)
downloadbusybox-6b5bd0e5abbfb6b3b925dfd8452c72589569981b.zip
busybox-6b5bd0e5abbfb6b3b925dfd8452c72589569981b.tar.gz
Support using ip in udhcpc scripts.
Slightly modified version of patch by Bastian Blank
Diffstat (limited to 'networking/udhcp/options.c')
-rw-r--r--networking/udhcp/options.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/networking/udhcp/options.c b/networking/udhcp/options.c
index 5814472..3f3a389 100644
--- a/networking/udhcp/options.c
+++ b/networking/udhcp/options.c
@@ -13,11 +13,16 @@
#include "options.h"
#include "leases.h"
+#include "config.h"
/* supported options are easily added here */
struct dhcp_option options[] = {
/* name[10] flags code */
- {"subnet", OPTION_IP | OPTION_REQ, 0x01},
+#ifdef CONFIG_FEATURE_UDHCPC_IP
+ {"subnet", OPTION_IP | OPTION_REQ | OPTION_PREFIX, 0x01},
+#else
+ {"subnet", OPTION_IP | OPTION_REQ, 0x01},
+#endif
{"timezone", OPTION_S32, 0x02},
{"router", OPTION_IP | OPTION_LIST | OPTION_REQ, 0x03},
{"timesvr", OPTION_IP | OPTION_LIST, 0x04},