Loading...
Searching...
No Matches
dodtls.h File Reference

DNS over DTLS sock definitions. More...

Detailed Description

DNS over DTLS sock definitions.

Author
Martine S. Lenders m.len.nosp@m.ders.nosp@m.@fu-b.nosp@m.erli.nosp@m.n.de

Definition in file dodtls.h.

#include "net/sock/dtls.h"
#include "net/sock/udp.h"
+ Include dependency graph for dodtls.h:
+ This graph shows which files directly or indirectly include this file:

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_tsock_dodtls_get_dtls_sock (void)
 Return the sock used by the DNS over DTLS client.
 
sock_dtls_session_tsock_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.