From 85090c162b322a4ffe53d251e59bbfc212a829ee Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 16 Jun 2014 00:17:00 +0200 Subject: udhcpc: make hostname sanitization optional. Closes 3979 Signed-off-by: Denys Vlasenko --- networking/udhcp/Config.src | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'networking/udhcp/Config.src') 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 will DHCPDECLINE the offer if the address is in use, and restart the discover process. +config FEATURE_UDHCPC_SANITIZEOPT + bool "Do not pass malformed host and domain names" + default y + depends on UDHCPC + help + If selected, udhcpc will check some options (such as option 12 - + hostname) and if they don't look like valid hostnames + (for example, if they start with dash or contain spaces), + they will be replaced with string "bad" when exporting + to the environment. + config FEATURE_UDHCP_PORT bool "Enable '-P port' option for udhcpd and udhcpc" default n -- cgit v1.2.3