aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2018-07-03 16:36:13 +1000
committerDenys Vlasenko <vda.linux@googlemail.com>2018-07-04 15:38:19 +0200
commitfc267214f0957bdc5794a71ae73e38edb00e5ba2 (patch)
tree2605c5a696c4e2e655b63d2d7a559b800d645bc4
parent14339191afc5d77205487e3365ca2569f86afd44 (diff)
downloadbusybox-w32-fc267214f0957bdc5794a71ae73e38edb00e5ba2.tar.gz
busybox-w32-fc267214f0957bdc5794a71ae73e38edb00e5ba2.tar.bz2
busybox-w32-fc267214f0957bdc5794a71ae73e38edb00e5ba2.zip
udhcp: add option 211, "reboot time"
As defined in RFC 5071. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/udhcp/common.c2
-rw-r--r--networking/udhcp/common.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c
index 52ef875f0..77fb07cdc 100644
--- a/networking/udhcp/common.c
+++ b/networking/udhcp/common.c
@@ -65,6 +65,7 @@ const struct dhcp_optflag dhcp_optflags[] = {
65#endif 65#endif
66 { OPTION_STRING , 0xd1 }, /* DHCP_PXE_CONF_FILE */ 66 { OPTION_STRING , 0xd1 }, /* DHCP_PXE_CONF_FILE */
67 { OPTION_STRING , 0xd2 }, /* DHCP_PXE_PATH_PREFIX */ 67 { OPTION_STRING , 0xd2 }, /* DHCP_PXE_PATH_PREFIX */
68 { OPTION_U32 , 0xd3 }, /* DHCP_REBOOT_TIME */
68 { OPTION_6RD , 0xd4 }, /* DHCP_6RD */ 69 { OPTION_6RD , 0xd4 }, /* DHCP_6RD */
69 { OPTION_STATIC_ROUTES | OPTION_LIST , 0xf9 }, /* DHCP_MS_STATIC_ROUTES */ 70 { OPTION_STATIC_ROUTES | OPTION_LIST , 0xf9 }, /* DHCP_MS_STATIC_ROUTES */
70 { OPTION_STRING , 0xfc }, /* DHCP_WPAD */ 71 { OPTION_STRING , 0xfc }, /* DHCP_WPAD */
@@ -133,6 +134,7 @@ const char dhcp_option_strings[] ALIGN1 =
133#endif 134#endif
134 "pxeconffile" "\0" /* DHCP_PXE_CONF_FILE */ 135 "pxeconffile" "\0" /* DHCP_PXE_CONF_FILE */
135 "pxepathprefix" "\0" /* DHCP_PXE_PATH_PREFIX */ 136 "pxepathprefix" "\0" /* DHCP_PXE_PATH_PREFIX */
137 "reboottime" "\0" /* DHCP_REBOOT_TIME */
136 "ip6rd" "\0" /* DHCP_6RD */ 138 "ip6rd" "\0" /* DHCP_6RD */
137 "msstaticroutes""\0"/* DHCP_MS_STATIC_ROUTES */ 139 "msstaticroutes""\0"/* DHCP_MS_STATIC_ROUTES */
138 "wpad" "\0" /* DHCP_WPAD */ 140 "wpad" "\0" /* DHCP_WPAD */
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h
index 50ea9199b..550161934 100644
--- a/networking/udhcp/common.h
+++ b/networking/udhcp/common.h
@@ -156,6 +156,7 @@ enum {
156//#define DHCP_VLAN_PRIORITY 0x85 /* 802.1Q VLAN priority */ 156//#define DHCP_VLAN_PRIORITY 0x85 /* 802.1Q VLAN priority */
157//#define DHCP_PXE_CONF_FILE 0xd1 /* RFC 5071 Configuration File */ 157//#define DHCP_PXE_CONF_FILE 0xd1 /* RFC 5071 Configuration File */
158//#define DHCP_PXE_PATH_PREFIX 0xd2 /* RFC 5071 Configuration File */ 158//#define DHCP_PXE_PATH_PREFIX 0xd2 /* RFC 5071 Configuration File */
159//#define DHCP_REBOOT_TIME 0xd3 /* RFC 5071 Reboot time */
159//#define DHCP_MS_STATIC_ROUTES 0xf9 /* Microsoft's pre-RFC 3442 code for 0x79? */ 160//#define DHCP_MS_STATIC_ROUTES 0xf9 /* Microsoft's pre-RFC 3442 code for 0x79? */
160//#define DHCP_WPAD 0xfc /* MSIE's Web Proxy Autodiscovery Protocol */ 161//#define DHCP_WPAD 0xfc /* MSIE's Web Proxy Autodiscovery Protocol */
161#define DHCP_END 0xff 162#define DHCP_END 0xff