[U-Boot] [PATCH v2 06/11] net: Add the BOOTP_DNS2 option to Kconfig

Joe Hershberger joe.hershberger at ni.com
Fri Apr 13 20:26:35 UTC 2018


Commit 3b3ea2c56ec4bc5 ("Kconfig: cmd: Make networking command dependent on NET")
removed the help documentation from the README but didn't add it back to Kconfig.

Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
Reviewed-by: Chris Packham <judge.packham at gmail.com>
Reviewed-by: Duncan Hare <dh at synoia.com>
---

Changes in v2: None

 cmd/Kconfig | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/cmd/Kconfig b/cmd/Kconfig
index 6664379..43efe7d 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1056,6 +1056,17 @@ config BOOTP_DNS
 	  returned, you must set BOOTP_DNS2 to store that second server IP
 	  also.
 
+config BOOTP_DNS2
+	bool "Store 'dnsip2' from BOOTP/DHCP server"
+	depends on BOOTP_DNS
+	help
+	  If a DHCP client requests the DNS server IP from a DHCP server,
+	  it is possible that more than one DNS serverip is offered to the
+	  client. If CONFIG_BOOTP_DNS2 is enabled, the secondary DNS
+	  server IP will be stored in the additional environment
+	  variable "dnsip2". The first DNS serverip is always
+	  stored in the variable "dnsip", when BOOTP_DNS is defined.
+
 config BOOTP_GATEWAY
 	bool "Request & store 'gatewayip' from BOOTP/DHCP server"
 	depends on CMD_BOOTP
-- 
1.7.11.5



More information about the U-Boot mailing list