[PATCH] networking/dhcp: Add option 211, "reboot time"

Denys Vlasenko vda.linux at googlemail.com
Wed Jul 4 13:36:06 UTC 2018


On Tue, Jul 3, 2018 at 8:36 AM, Jeremy Kerr <jk at ozlabs.org> wrote:
> As defined in RFC 5071.
>
> Signed-off-by: Jeremy Kerr <jk at ozlabs.org>
> ---
>  networking/udhcp/common.c | 2 ++
>  networking/udhcp/common.h | 1 +
>  2 files changed, 3 insertions(+)
>
> diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c
> index 52ef875f0..ca7c8211b 100644
> --- a/networking/udhcp/common.c
> +++ b/networking/udhcp/common.c
> @@ -65,6 +65,7 @@ const struct dhcp_optflag dhcp_optflags[] = {
>  #endif
>         { OPTION_STRING                           , 0xd1 }, /* DHCP_PXE_CONF_FILE */
>         { OPTION_STRING                           , 0xd2 }, /* DHCP_PXE_PATH_PREFIX */
> +       { OPTION_U32                              , 0xd3 }, /* DHCP_REBOOT_TIME */
>         { OPTION_6RD                              , 0xd4 }, /* DHCP_6RD           */
>         { OPTION_STATIC_ROUTES | OPTION_LIST      , 0xf9 }, /* DHCP_MS_STATIC_ROUTES */
>         { OPTION_STRING                           , 0xfc }, /* DHCP_WPAD          */
> @@ -133,6 +134,7 @@ const char dhcp_option_strings[] ALIGN1 =
>  #endif
>         "pxeconffile" "\0" /* DHCP_PXE_CONF_FILE  */
>         "pxepathprefix" "\0" /* DHCP_PXE_PATH_PREFIX  */
> +       "reboottime" "\0 " /* DHCP_PXE_PATH_PREFIX  */

Stray space after \0, bad comment


More information about the busybox mailing list