zephyr/subsys/net
Robert Lubos 53561e3766 net: dns: Fix timeout calculation with DNS retransmissions
With recently introduced DNS retransmission mechanism, a certain bug
could occur when calculating query timeout.

If the time until the final DNS timeout (as indicated by
CONFIG_NET_SOCKETS_DNS_TIMEOUT) was less than 1 millisecond, the actual
millisecond timeout value was rounded down, resulting in 0 ms timeout.
This in order was interpreted as invalid argument by dns_get_addr_info()
function, so in result, instead of reporting query timeout, the function
reported invalid argument error.

Fix this by rounding the millisecond timeout up, instead of down, so
that in any case, if the final timeout is not due, we always provide
non-zero timeout to dns_get_addr_info().

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-03-12 15:13:31 -05:00
..
conn_mgr net: conn_mgr: set a thread name 2024-03-02 15:03:27 +01:00
ip net: mgmt: Handle loops in the linked list 2024-03-08 09:35:04 +01:00
l2 net: Convert various address loops to use ARRAY_FOR_EACH macro 2024-03-03 18:58:29 +01:00
lib net: dns: Fix timeout calculation with DNS retransmissions 2024-03-12 15:13:31 -05:00
pkt_filter net: pkt_filter: Introduce additional hooks for pkt_filter 2023-07-10 09:27:47 +02:00
buf_simple.c
buf.c net: buf: add max allocation size to allocation info 2024-02-06 12:56:37 +01:00
CMakeLists.txt net: conn_mgr: Write documentation 2023-09-28 15:11:14 +02:00
hostname.c logging: net: update hostname 2024-01-17 14:42:58 +01:00
Kconfig net: Add Kconfig for net buf alignment 2023-12-14 09:29:47 +01:00
Kconfig.hostname net: add set hostname function 2024-01-17 14:42:58 +01:00
Kconfig.template.log_config.default.net
Kconfig.template.log_config.net