DNS over DTLS sock definitions. More...
DNS over DTLS sock definitions.
Definition in file dodtls.h.
Go to the source code of this file.
Macros | |
#define | SOCK_DODTLS_MAX_NAME_LEN (CONFIG_DNS_MSG_LEN - sizeof(dns_hdr_t) - 4) |
Maximum name length for a DNS over DTLS query. | |
Functions | |
int | sock_dodtls_query (const char *domain_name, void *addr_out, int family) |
Get IP address for DNS name. | |
int | sock_dodtls_get_server (sock_udp_ep_t *server) |
Get currently configured DNS over DTLS server endpoint. | |
sock_dtls_t * | sock_dodtls_get_dtls_sock (void) |
Return the sock used by the DNS over DTLS client. | |
sock_dtls_session_t * | sock_dodtls_get_server_session (void) |
Return the DTLS ssession used by the DNS over DTLS client. | |
int | sock_dodtls_set_server (const sock_udp_ep_t *server, const credman_credential_t *creds) |
Configure and establish session with DNS over DTLS server. | |
DNS over DTLS defines | |
#define | SOCK_DODTLS_PORT (853) |
Default DNS over DTLS server port. | |
#define | CONFIG_SOCK_DODTLS_RETRIES (2) |
Number of DNS over DTLS query retries. | |
#define | CONFIG_SOCK_DODTLS_TIMEOUT_MS (1000U) |
Timeout for DNS over DTLS queries in milliseconds. | |