zephyr/subsys/net/lib/sockets
Stig Bjørlykke 0f71a130ef net: sockets: getaddrinfo: Minor refactoring
Minor refactoring in getaddrinfo() to make the code easier to
read and to make handling IPv4 and IPv6 support more equal.

- Move common wait and error handling code to exec_query()
- Use the same check for CONFIG_NET_IPV4 and CONFIG_NET_IPV6
- Add extra sanity check for family before exec_query()
- Do not set errno when return DNS_EAI_ADDRFAMILY

Fix issue with setting port number for all DNS servers.

Signed-off-by: Stig Bjørlykke <stig.bjorlykke@nordicsemi.no>
2023-02-21 15:02:35 +01:00
..
CMakeLists.txt
getaddrinfo.c net: sockets: getaddrinfo: Minor refactoring 2023-02-21 15:02:35 +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: header fixups 2023-02-08 19:04:25 +09:00
sockets_can.c net: sockets: fix fcntl.h usage 2023-02-08 19:04:25 +09: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 net: sockets: fix fcntl.h usage 2023-02-08 19:04:25 +09:00
sockets_packet.c net: sockets: fix fcntl.h usage 2023-02-08 19:04:25 +09:00
sockets_select.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
sockets_tls.c net: sockets: fix fcntl.h usage 2023-02-08 19:04:25 +09:00
sockets.c net: sockets: conditionally include zephyr/posix/fcntl.h 2023-01-23 09:57:31 -08:00