47 #include "openthread/ip6.h" 
   80 void DNS_Init(otInstance *aInstance);
 
Global error declarations for use across the Cascoda SDK.
 
void DNS_Init(otInstance *aInstance)
Initialise the DNS utilities.
Definition: cascoda_dns.c:397
 
void DNS_RegisterSuccess(dns_index aIndex)
Register a successful use of a service resolved with DNS and increase the preference of the correspon...
Definition: cascoda_dns.c:302
 
ca_error DNS_AddServer(otIp6Address *aAddress, uint8_t aPreference, bool aUseDns64)
Add a DNS server with the given preference, to be used for DNS requests.
Definition: cascoda_dns.c:308
 
void DNS_RegisterServiceFail(dns_index aIndex)
Register the fact that a DNS server returned an address that could not be contacted.
Definition: cascoda_dns.c:296
 
ca_error DNS_HostToIpv6(otInstance *aInstance, char *host, dns_callback aCallback, void *aContext)
Resolve a hostname to an IPv6 address, running DNS queries if necessary.
Definition: cascoda_dns.c:337
 
struct dnsServer * dns_index
Opaque dns_index type which holds the DNS server that was used for a request.
Definition: cascoda_dns.h:58
 
void(* dns_callback)(ca_error aError, const otIp6Address *aAddress, dns_index aIndex, void *aContext)
The callback used to report results from the host resolution to the requesting layer.
Definition: cascoda_dns.h:74
 
ca_error
Cascoda error type.
Definition: ca821x_error.h:51
 
DNS server entry for managed list of DNS servers.
Definition: cascoda_dns.c:72