/* * SPDX-FileCopyrightText: 2021-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Unlicense OR CC0-1.0 */ #pragma once #ifdef __cplusplus extern "C" { #endif #ifndef DNS_SERVER_MAX_ITEMS #define DNS_SERVER_MAX_ITEMS 1 #endif #define DNS_SERVER_CONFIG_SINGLE(queried_name, netif_key) { \ .num_of_entries = 1, \ .item = { { .name = queried_name, .if_key = netif_key } } \ } /** * @brief Definition of one DNS entry: NAME - IP (or the netif whose IP to answer) * * @note Please use string literals (or ensure they are valid during dns_server lifetime) as names, since * we don't take copies of the config values `name` and `if_key` */ typedef struct dns_entry_pair { const char* name; /**