zephyr/subsys
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
..
bluetooth Bluetooth: controller: Validate disconnect reason in disconnect command 2020-12-15 11:20:34 +01:00
canbus
console
cpp
debug debug: analyzer: add support for thread runtime stats 2020-12-14 13:00:47 -05:00
dfu dfu: mcuboot: add shell module 2020-12-14 11:24:57 +01:00
disk disk: remove USB MSC specific FAT12 ramdisk 2020-12-02 11:50:11 +01:00
emul drivers: sensors: bmi160: Fix issue with sample read 2020-12-01 17:58:06 -05:00
fb
fs kernel: subsys: lib: drivers: Use k_heap instead of z_mem_pool wrappers 2020-12-07 21:50:14 -05:00
jwt
logging logging: Reduce missinglog_strdup() on SPARC 2020-12-14 11:23:34 +01:00
lorawan
mgmt mgmt: updatehub: Kconfig: Drop NET_CONFIG_SETTINGS option 2020-12-14 11:21:06 +01:00
net net: getaddrinfo: Fix getaddrinfo() to respect socket type hints 2020-12-15 19:22:50 +02:00
power power: cleanup kernel idle and power hooks 2020-12-09 15:18:29 -05:00
random random: ctr_drbg: Fix the error path in sys_csrand_get 2020-12-01 10:20:06 -06:00
settings settings: fix possible unaligned write while a line coping 2020-12-04 17:10:47 +01:00
shell power: standarize PM Kconfigs and cleanup 2020-12-09 15:18:29 -05:00
stats
storage storage/stream: elimination of usage of the flash API internals 2020-11-17 11:34:35 +01:00
testsuite kernel: subsys: lib: drivers: Use k_heap instead of z_mem_pool wrappers 2020-12-07 21:50:14 -05:00
timing timing: do not repeatedly do init()/start()/stop() 2020-11-11 23:55:49 -05:00
tracing systemview: Use common function to get sysview thread name 2020-11-21 08:29:26 -05:00
usb usb: drivers: Fix ZLP handling for Nordic driver. 2020-11-17 18:06:26 +01:00
CMakeLists.txt timing: do not repeatedly do init()/start()/stop() 2020-11-11 23:55:49 -05:00
Kconfig