zephyr/subsys/net
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
..
ip net: tcp2: Use mutex instead of irq_lock 2020-12-15 12:16:19 +02:00
l2 net: openthread: Add option to enable software CSMA backoff 2020-12-10 12:58:07 +01:00
lib net: getaddrinfo: Fix getaddrinfo() to respect socket type hints 2020-12-15 19:22:50 +02:00
CMakeLists.txt
Kconfig power: standarize PM Kconfigs and cleanup 2020-12-09 15:18:29 -05:00
Kconfig.hostname
Kconfig.template.log_config.default.net
Kconfig.template.log_config.net
buf.c kernel: subsys: lib: drivers: Use k_heap instead of z_mem_pool wrappers 2020-12-07 21:50:14 -05:00
hostname.c net: hostname: define public macro representing maximum hostname length 2020-11-17 19:21:43 -05:00