38#ifndef CONFIG_DNS_MSG_LEN
39#define CONFIG_DNS_MSG_LEN (128U)
48typedef struct __attribute__((packed)) {
97 uint16_t
id,
int family);
114 void *addr_out, uint32_t *ttl);
size_t dns_msg_compose_query(void *dns_buf, const char *domain_name, uint16_t id, int family)
Composes a DNS query message.
int dns_msg_parse_reply(const uint8_t *buf, size_t len, int family, void *addr_out, uint32_t *ttl)
Parses a DNS response message.
uint16_t arcount
number of additional records
uint16_t nscount
number of name server resource records
uint16_t qdcount
number of question entries
uint16_t ancount
number of answer resource records