Home
last modified time | relevance | path

Searched refs:index_to_replace (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/subsys/net/lib/dns/
Ddns_cache.c29 size_t index_to_replace = 0; in dns_cache_add() local
51 index_to_replace = i; in dns_cache_add()
55 index_to_replace = i; in dns_cache_add()
61 NET_DBG("Overwrite \"%s\"", cache->entries[index_to_replace].query); in dns_cache_add()
64 strncpy(cache->entries[index_to_replace].query, query, in dns_cache_add()
66 cache->entries[index_to_replace].data = *addrinfo; in dns_cache_add()
67 cache->entries[index_to_replace].expiry = sys_timepoint_calc(K_SECONDS(ttl)); in dns_cache_add()
68 cache->entries[index_to_replace].in_use = true; in dns_cache_add()