nuttx/libc/netdb
Pavel Pisa 23035ca68d [PATCH] gethostbyname(): correct returned address format when DNS is used. The hostent.h_addr_list should point to raw in_addr or in6_addr as defined in the standard. Original implementation used that
for numeric addresses but for DNS lookup returned pointer to whole sockaddr_in or sockaddr_in6.

getaddrinfo() should be preferred in a long term perspective. Return of complete addresses from the lookup would be better in such case but it requires significant changes anyway - multiple addresses support and most probably dynamic memory allocation which is bad for many RT applications. So gethostbyname() is sufficient for most applications now.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2015-08-21 18:33:03 -06:00
..
lib_dns.h NETDB: Add support for caching DNS name resultion mappings 2015-07-13 10:41:32 -06:00
lib_dnsclient.c Check if DNS server has been initialized before trying to lookup the server address in the cache. From Librae 2015-07-27 14:16:45 -06:00
lib_gethostbyaddr.c
lib_gethostbyaddrr.c
lib_gethostbyname.c
lib_gethostbynamer.c [PATCH] gethostbyname(): correct returned address format when DNS is used. The hostent.h_addr_list should point to raw in_addr or in6_addr as defined in the standard. Original implementation used that 2015-08-21 18:33:03 -06:00
lib_netdb.c Move definition of h_errno from lib_parsehostfile.c to lib_netdb. h_errno should still be defined even if there is no host file support. From Sebastien Lorquet. 2015-07-17 09:39:45 -06:00
lib_netdb.h
lib_parsehostfile.c Move definition of h_errno from lib_parsehostfile.c to lib_netdb. h_errno should still be defined even if there is no host file support. From Sebastien Lorquet. 2015-07-17 09:39:45 -06:00
Make.defs STM32F746G-DISCO: Getting closer to a build 2015-07-17 11:47:16 -06:00