summaryrefslogtreecommitdiff
path: root/networking/udhcp/options.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-02-27 21:15:08 +0000
committerDenis Vlasenko2007-02-27 21:15:08 +0000
commit5066473d411d6a474af3393d1b62a58ee3313861 (patch)
tree7649f98fbe056b9b7f87893f70b5b50cc5007fe9 /networking/udhcp/options.c
parent966bb4376665e0cf22e64f7901fb956edbd2f1a9 (diff)
downloadbusybox-5066473d411d6a474af3393d1b62a58ee3313861.zip
busybox-5066473d411d6a474af3393d1b62a58ee3313861.tar.gz
udhcp: optionally support RFC3397 (by Gabriel L. Somlo <somlo@cmu.edu>)
Diffstat (limited to 'networking/udhcp/options.c')
-rw-r--r--networking/udhcp/options.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/networking/udhcp/options.c b/networking/udhcp/options.c
index bda6efc..a58adb9 100644
--- a/networking/udhcp/options.c
+++ b/networking/udhcp/options.c
@@ -11,7 +11,7 @@
/* supported options are easily added here */
const struct dhcp_option dhcp_options[] = {
- /* name[10] flags code */
+ /* name[12] flags code */
{"subnet", OPTION_IP | OPTION_REQ, 0x01},
{"timezone", OPTION_S32, 0x02},
{"router", OPTION_IP | OPTION_LIST | OPTION_REQ, 0x03},
@@ -43,6 +43,9 @@ const struct dhcp_option dhcp_options[] = {
{"tftp", OPTION_STRING, 0x42},
{"bootfile", OPTION_STRING, 0x43},
{"userclass", OPTION_STRING, 0x4D},
+#if ENABLE_FEATURE_RFC3397
+ {"search", OPTION_STR1035 | OPTION_LIST | OPTION_REQ, 0x77},
+#endif
/* MSIE's "Web Proxy Autodiscovery Protocol" support */
{"wpad", OPTION_STRING, 0xfc},
{"", 0x00, 0x00}
@@ -54,6 +57,9 @@ const unsigned char option_lengths[] = {
[OPTION_IP_PAIR] = 8,
[OPTION_BOOLEAN] = 1,
[OPTION_STRING] = 1,
+#if ENABLE_FEATURE_RFC3397
+ [OPTION_STR1035] = 1,
+#endif
[OPTION_U8] = 1,
[OPTION_U16] = 2,
[OPTION_S16] = 2,