zephyr/tests/net/lib
Noah Olson 37a924be6a net: dns: Fix DNS caching bug
The current DNS caching logic is not aware of the IP address version.
If there is a cached address for a query, the caller of
dns_get_addr_info() will receive that address, even if it is not the
same version as the caller requested. For example:

- dns_get_addr_info() is called to resolve an IPv4 address
- the DNS client caches the IPv4 address that was received
- dns_get_addr_info() is called to resolve an IPv6 address
- the DNS client sees that there is a cached IPv4 address for the
  given query
- the DNS client does not check that the cached address is of the
  requested version (IPv6)
- the cached IPv4 address is returned from dns_get_addr_info()

This changes the DNS client to check IP address version when searching
cached addresses.

Signed-off-by: Noah Olson <noah@wavelynx.com>
2025-02-05 23:49:17 +01:00
..
coap tests: net: coap: Add test case for matching pending replies 2025-01-21 19:30:06 +01:00
coap_client samples, tests: remove usage of space-separated lists 2024-12-04 14:14:53 -05:00
coap_server/common tests: net: coap: Enable loopback interface 2024-05-06 22:50:18 +01:00
dns_addremove net: Deprecate CONFIG_NET_SOCKETS_POLL_MAX 2024-10-14 13:01:51 +02:00
dns_cache net: dns: Fix DNS caching bug 2025-02-05 23:49:17 +01:00
dns_dispatcher tests: net: dns_dispatcher: Add tests for dispatcher 2024-12-11 21:29:21 +01:00
dns_packet tests: net: dns: Add test for invalid DNS answer parsing 2024-11-28 20:52:20 +01:00
dns_resolve net: Deprecate CONFIG_NET_SOCKETS_POLL_MAX 2024-10-14 13:01:51 +02:00
dns_sd net: Deprecate CONFIG_NET_SOCKETS_POLL_MAX 2024-10-14 13:01:51 +02:00
http_header_fields net: lib http: Added tests for Content-Range to http parser. 2025-01-16 22:55:51 +01:00
http_server tests: net: http_server: core: Fix scheduling race 2025-02-04 11:55:17 +01:00
lwm2m net: lwm2m: Convert tickeless to use eventfd() 2024-12-24 13:54:39 +01:00
mdns_responder net: Deprecate CONFIG_NET_SOCKETS_POLL_MAX 2024-10-14 13:01:51 +02:00
mqtt/v3_1_1 tests: net: mqtt: Make publisher/subscriber test suites self contained 2024-08-08 20:22:33 -04:00
mqtt_sn_client net: mqtt-sn: Update MQTT-SN Unit Tests 2024-11-16 15:08:27 -05:00
mqtt_sn_packet
prometheus tests: use net prefix for prometheus tests 2024-12-13 09:12:08 +01:00
tls_credentials yaml: use EXTRA_CONF_FILE in .yaml files 2024-10-17 09:45:25 +02:00
wifi_credentials tests: net: wifi_credentials: restrict to native_sim 2024-10-24 22:02:28 +01:00
wifi_credentials_backend_psa tests: net: wifi_credentials: restrict to native_sim 2024-10-24 22:02:28 +01:00
wifi_credentials_backend_settings tests: net: wifi_credentials: restrict to native_sim 2024-10-24 22:02:28 +01:00