zephyr/subsys/net/lib/sockets
Seppo Takalo f684b7c6cd net: getaddrinfo: Fix getaddrinfo() to respect socket type hints
If getaddrinfo() was called with AI_PASSIVE flag in hints,
returned address defaulted to SOCK_STREAM and IPPROTO_TCP.
Fixed so that SOCK_DGRAM leads to correct address type
that can be fed to bind() directly.

Same hard coding was visible when numerical IPv4 address string
was converted to binary. That is also fixed to respect hints now.

Also, added functionality to get IPv6 address, when hints contained
AF_INET6.

Fixes #30686

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2020-12-15 19:22:50 +02:00
..
CMakeLists.txt net: sockets: tls: Add Kconfig option to disable offloaded TLS 2020-09-03 11:00:01 +03:00
getaddrinfo.c net: getaddrinfo: Fix getaddrinfo() to respect socket type hints 2020-12-15 19:22:50 +02:00
getnameinfo.c
Kconfig net: tls: use Maximum Fragment Length (MFL) extension by default 2020-11-05 14:47:24 +02:00
socket_offload.c
socketpair.c net: socketpair: Check NULL value 2020-08-14 09:47:51 -07:00
sockets_can.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
sockets_internal.h net: sockets: tls: Add Kconfig option to disable offloaded TLS 2020-09-03 11:00:01 +03:00
sockets_misc.c
sockets_net_mgmt.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
sockets_packet.c net: socket: packet: Add support to SOCK_DGRAM packet sockets 2020-08-27 10:56:06 +03:00
sockets_select.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
sockets_tls.c net: tls: use Maximum Fragment Length (MFL) extension by default 2020-11-05 14:47:24 +02:00
sockets.c net: sockets: recv() on unconnected stream socket should lead to ENOTCONN 2020-11-19 16:58:37 -05:00