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 <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-10-25 20:08:43 +08:00 committed by Alan Carvalho de Assis
parent 723d721098
commit 06619ac6fc

View File

@ -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