From 06619ac6fcebc465ac1989041c05a0f05484fadf Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 25 Oct 2021 20:08:43 +0800 Subject: [PATCH] lib/netdb: Change the default NETDB_DNSCLIENT_NAMESIZE to PATH_MAX Domain name has the similar layout as file path, so it's too small to use 32 bytes as the default value, and better to has the same default value as PATH_MAX which is 255. Signed-off-by: Xiang Xiao --- libs/libc/netdb/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libc/netdb/Kconfig b/libs/libc/netdb/Kconfig index 797ceaceb6..a8cffa7759 100644 --- a/libs/libc/netdb/Kconfig +++ b/libs/libc/netdb/Kconfig @@ -95,7 +95,7 @@ config NETDB_DNSCLIENT_ENTRIES config NETDB_DNSCLIENT_NAMESIZE int "Max size of a cached hostname" - default 32 + default PATH_MAX ---help--- The size of a hostname string in the DNS resolver cache is fixed. This setting provides the maximum size of a hostname. Names longer