Loading...
Searching...
No Matches

Definitions for parsing and composition of DNS messages. More...

Detailed Description

Definitions for parsing and composition of DNS messages.

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

Definition in file msg.h.

#include <stdint.h>
#include <stdlib.h>
+ Include dependency graph for msg.h:
+ This graph shows which files directly or indirectly include this file:

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.