Definitions for parsing and composition of DNS messages. More...
Definitions for parsing and composition of DNS messages.
Definition in file msg.h.
#include <stdint.h>
#include <stdlib.h>
Go to the source code of this file.
Data Structures | |
struct | dns_hdr_t |
DNS internal structure. More... | |
Macros | |
#define | CONFIG_DNS_MSG_LEN (128U) |
maximum DNS message length | |
Functions | |
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. | |