lib/netdb: Change the default NETDB_DNSCLIENT_NAMESIZE to NAME_MAX

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 Gustavo Henrique Nihei
parent c4472b64cb
commit 3724f6be55
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ config NETDB_DNSCLIENT_ENTRIES
config NETDB_DNSCLIENT_NAMESIZE config NETDB_DNSCLIENT_NAMESIZE
int "Max size of a cached hostname" int "Max size of a cached hostname"
default 32 default NAME_MAX
---help--- ---help---
The size of a hostname string in the DNS resolver cache is fixed. The size of a hostname string in the DNS resolver cache is fixed.
This setting provides the maximum size of a hostname. Names longer This setting provides the maximum size of a hostname. Names longer