diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2014-06-16 00:17:00 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-06-16 00:17:00 +0200 |
commit | 85090c162b322a4ffe53d251e59bbfc212a829ee (patch) | |
tree | 1b547e8c14ddafcb853e46eaff6724c212326123 /networking/udhcp/Config.src | |
parent | 9aa6ffb22b712d4e928604e291f954b02237e8cd (diff) | |
download | busybox-w32-85090c162b322a4ffe53d251e59bbfc212a829ee.tar.gz busybox-w32-85090c162b322a4ffe53d251e59bbfc212a829ee.tar.bz2 busybox-w32-85090c162b322a4ffe53d251e59bbfc212a829ee.zip |
udhcpc: make hostname sanitization optional. Closes 3979
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/udhcp/Config.src')
-rw-r--r-- | networking/udhcp/Config.src | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/networking/udhcp/Config.src b/networking/udhcp/Config.src index 6bfa398ea..c34c8d6f0 100644 --- a/networking/udhcp/Config.src +++ b/networking/udhcp/Config.src | |||
@@ -84,6 +84,17 @@ config FEATURE_UDHCPC_ARPING | |||
84 | will DHCPDECLINE the offer if the address is in use, | 84 | will DHCPDECLINE the offer if the address is in use, |
85 | and restart the discover process. | 85 | and restart the discover process. |
86 | 86 | ||
87 | config FEATURE_UDHCPC_SANITIZEOPT | ||
88 | bool "Do not pass malformed host and domain names" | ||
89 | default y | ||
90 | depends on UDHCPC | ||
91 | help | ||
92 | If selected, udhcpc will check some options (such as option 12 - | ||
93 | hostname) and if they don't look like valid hostnames | ||
94 | (for example, if they start with dash or contain spaces), | ||
95 | they will be replaced with string "bad" when exporting | ||
96 | to the environment. | ||
97 | |||
87 | config FEATURE_UDHCP_PORT | 98 | config FEATURE_UDHCP_PORT |
88 | bool "Enable '-P port' option for udhcpd and udhcpc" | 99 | bool "Enable '-P port' option for udhcpd and udhcpc" |
89 | default n | 100 | default n |