zephyr/subsys/net/lib
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
..
capture net: ipv4: Make netmask IPv4 address specific 2024-03-03 18:58:29 +01:00
coap net: coap: CoAP observe age now correctly wraps around 2024-03-05 14:34:42 +01:00
config log: net: move log_backend_net_get() to header 2024-03-08 15:18:30 +00:00
dhcpv4 net: dhcpv4: Network interface netmask was set too early 2024-03-08 18:04:35 +01:00
dhcpv6 net: dhcpv6: Move DHCPv6 files to lib directory 2024-01-29 13:47:05 +01:00
dns net: dns: option to disable auto context init 2024-01-29 20:20:19 -06:00
http net: http: client: Return error if waiting timeout 2024-02-28 18:02:34 +00:00
lwm2m net: lwm2m: Add API to set multiple resource values 2024-02-26 11:53:29 +00:00
mqtt net: mqtt: close tcp socket after websocket_disconnect 2023-06-19 09:18:45 +01:00
mqtt_sn net: mqtt-sn: Remember incoming registered topic name 2023-11-22 09:53:33 +01:00
shell net: lib: shell: Fix IPv6 neighbor build 2024-03-08 10:02:02 +00:00
sntp net: lib: sntp_simple: add a function to use with ip address 2024-02-28 18:03:53 +00:00
sockets net: dns: Fix timeout calculation with DNS retransmissions 2024-03-12 15:13:31 -05:00
socks includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00
tftp net: tftp: Ensure the error message fits into transmit buffer 2023-11-20 09:24:18 +01:00
tls_credentials tf-m: Change NS include path for TF-M 2.0.0 2024-01-17 16:52:52 +01:00
trickle net: trickle: Print the abs value using %u 2024-02-13 19:36:30 +01:00
utils net: sntp: support building without NET_SOCKETS_POSIX_NAMES 2023-04-24 09:23:17 -04:00
websocket random: Rename random header 2023-10-10 14:23:50 +03:00
zperf net: zperf: Fix multicast data failure to receive server's AckFIN packet 2024-03-07 16:17:18 -06:00
CMakeLists.txt net: dhcpv6: Move DHCPv6 files to lib directory 2024-01-29 13:47:05 +01:00
Kconfig net: dhcpv6: Move DHCPv6 files to lib directory 2024-01-29 13:47:05 +01:00