This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 3097f62  Revert "lib/netdb: Change the default 
NETDB_DNSCLIENT_NAMESIZE to NAME_MAX"
3097f62 is described below

commit 3097f62511a84f1f3b98c3b454ab8ba30c186f60
Author: YAMAMOTO Takashi <[email protected]>
AuthorDate: Fri Oct 29 12:43:25 2021 +0900

    Revert "lib/netdb: Change the default NETDB_DNSCLIENT_NAMESIZE to NAME_MAX"
    
    This reverts commit 3724f6be557525a550f35fe2942f10c1d06f27c2.
    
    Because there is no real correlation between DNS namesize and NAME_MAX
    as far as I know. The former is about network and the latter is about
    filesystem. While they might happen to be similar values for
    some configurations, it's very confusing to use them this way.
---
 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 0975472..4e59f85 100644
--- a/libs/libc/netdb/Kconfig
+++ b/libs/libc/netdb/Kconfig
@@ -83,7 +83,7 @@ config NETDB_DNSCLIENT_ENTRIES
 
 config NETDB_DNSCLIENT_NAMESIZE
        int "Max size of a cached hostname"
-       default NAME_MAX
+       default 32
        ---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

Reply via email to