diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-05-14 14:29:13 +1000 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-05-14 10:46:00 +0200 |
commit | 30f4d52ed17112f4fa340afe3bcaf305eeed36d9 (patch) | |
tree | cb1413e89d293ab0fcfd5206a67b8e70228bc875 /networking/udhcp | |
parent | 23cbd7d5bbbf8f5fb65d1ff3a92323f2bb300f63 (diff) | |
download | busybox-w32-30f4d52ed17112f4fa340afe3bcaf305eeed36d9.tar.gz busybox-w32-30f4d52ed17112f4fa340afe3bcaf305eeed36d9.tar.bz2 busybox-w32-30f4d52ed17112f4fa340afe3bcaf305eeed36d9.zip |
udhcpc6: add PXELINUX options
Add support for the PXELINUX options 209 ("ConfigFile") and 210
("PathPrefix") in the DHCPv6 client.
See also: RFC5071, "Dynamic Host Configuration Protocol Options Used by
PXELINUX".
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp')
-rw-r--r-- | networking/udhcp/d6_dhcpc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/networking/udhcp/d6_dhcpc.c b/networking/udhcp/d6_dhcpc.c index f837bd549..85068721a 100644 --- a/networking/udhcp/d6_dhcpc.c +++ b/networking/udhcp/d6_dhcpc.c | |||
@@ -83,6 +83,8 @@ static const struct dhcp_optflag d6_optflags[] = { | |||
83 | { OPTION_STRING, D6_OPT_BOOT_URL }, | 83 | { OPTION_STRING, D6_OPT_BOOT_URL }, |
84 | { OPTION_STRING, D6_OPT_BOOT_PARAM }, | 84 | { OPTION_STRING, D6_OPT_BOOT_PARAM }, |
85 | #endif | 85 | #endif |
86 | { OPTION_STRING, 0xd1 }, /* DHCP_PXE_CONF_FILE */ | ||
87 | { OPTION_STRING, 0xd2 }, /* DHCP_PXE_PATH_PREFIX */ | ||
86 | { 0, 0 } | 88 | { 0, 0 } |
87 | }; | 89 | }; |
88 | /* Must match d6_optflags[] order */ | 90 | /* Must match d6_optflags[] order */ |
@@ -102,7 +104,8 @@ static const char d6_option_strings[] ALIGN1 = | |||
102 | "bootfile_url" "\0" /* D6_OPT_BOOT_URL */ | 104 | "bootfile_url" "\0" /* D6_OPT_BOOT_URL */ |
103 | "bootfile_param" "\0" /* D6_OPT_BOOT_PARAM */ | 105 | "bootfile_param" "\0" /* D6_OPT_BOOT_PARAM */ |
104 | #endif | 106 | #endif |
105 | 107 | "pxeconffile" "\0" /* DHCP_PXE_CONF_FILE */ | |
108 | "pxepathprefix" "\0" /* DHCP_PXE_PATH_PREFIX */ | ||
106 | "\0"; | 109 | "\0"; |
107 | 110 | ||
108 | #if ENABLE_LONG_OPTS | 111 | #if ENABLE_LONG_OPTS |
@@ -401,6 +404,8 @@ static void option_to_env(uint8_t *option, uint8_t *option_end) | |||
401 | #endif | 404 | #endif |
402 | case D6_OPT_BOOT_URL: | 405 | case D6_OPT_BOOT_URL: |
403 | case D6_OPT_BOOT_PARAM: | 406 | case D6_OPT_BOOT_PARAM: |
407 | case 0xd1: /* DHCP_PXE_CONF_FILE */ | ||
408 | case 0xd2: /* DHCP_PXE_PATH_PREFIX */ | ||
404 | { | 409 | { |
405 | char *tmp = string_option_to_env(option, option_end); | 410 | char *tmp = string_option_to_env(option, option_end); |
406 | if (tmp) | 411 | if (tmp) |