7bfaca4c58
In order to reduce dns resolve requests when using the dns resolver an optional cache was introduced. This cache retains query requests for the TTL duration and therefore prevents premature refetching of DNS RRs. Signed-off-by: Carlo Kirchmeier <carlo.kirchmeier@zuehlke.com>
21 lines
596 B
CMake
21 lines
596 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_include_directories(.)
|
|
|
|
zephyr_library()
|
|
zephyr_library_sources(dns_pack.c)
|
|
|
|
zephyr_library_sources_ifdef(CONFIG_DNS_RESOLVER resolve.c)
|
|
zephyr_library_sources_ifdef(CONFIG_DNS_SD dns_sd.c)
|
|
zephyr_library_sources_ifdef(CONFIG_DNS_RESOLVER_CACHE dns_cache.c)
|
|
|
|
if(CONFIG_MDNS_RESPONDER)
|
|
zephyr_library_sources(mdns_responder.c)
|
|
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/ip)
|
|
endif()
|
|
|
|
if(CONFIG_LLMNR_RESPONDER)
|
|
zephyr_library_sources(llmnr_responder.c)
|
|
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/ip)
|
|
endif()
|