zephyr/subsys/net/lib/sockets
Marco Argiolas d51182d57d net: lib: sockets: support IPv6-only use case with AF_UNSPEC
Setting `hints.ai_family` to `AF_UNSPEC` was causing
`net_getaddrinfo_addr_str()` and in turn `getaddrinfo()` to resolve the
literal SNTP SERVER first into IPv4 and then (if supported) IPv6 addresses.
 This was causing useless waste of time and memory in case IPv4 was not
supported. In addition, in case IPv4 addresses were not supported, other
system components (eg. SNTP) could fail due to the DNS returning IP
addresses with unsupported family type (ie. IPv4).
Now, if address family is not explicitly set to `AF_INET` (ie. IPv4), then
 no attempt is made to resolve SNTP server address into an IPv4 address.

Signed-off-by: Marco Argiolas <marco.argiolas@ftpsolutions.com.au>
2023-01-03 11:03:25 +01:00
..
CMakeLists.txt net: socket: Add option to create native TLS sock with offloaded TCP 2022-04-20 11:27:05 +02:00
getaddrinfo.c net: lib: sockets: support IPv6-only use case with AF_UNSPEC 2023-01-03 11:03:25 +01:00
getnameinfo.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
Kconfig net: lib: sockets: improve scalability through a hidden var 2022-09-05 14:35:17 +00:00
socket_dispatcher.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
socket_offload.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
socketpair.c net: sockets: socketpair: do not allow blocking IO in ISR context 2022-10-22 02:30:04 -07:00
sockets_can.c net: context: properly namespace can-related methods 2022-09-05 14:35:17 +00:00
sockets_internal.h net: sockets: Prevent compiler error if warnings being treated as errors 2022-11-09 09:15:32 +00:00
sockets_misc.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
sockets_net_mgmt.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
sockets_packet.c net: core: clean up inbound packet handling 2022-09-05 14:35:17 +00:00
sockets_select.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
sockets_tls.c net: sockets_tls: Fix memory leak in socket 2022-11-09 10:44:44 +01:00
sockets.c net: sockets: Add options to control DSCP/ECN value 2022-10-19 19:03:48 +02:00