mikroSDK Reference Manual
dns_debug.h
Go to the documentation of this file.
1
31#ifndef _DNS_DEBUG_H
32#define _DNS_DEBUG_H
33
34//Dependencies
35#include "core/net.h"
36#include "dns/dns_common.h"
37#include "debug.h"
38
39//C++ guard
40#ifdef __cplusplus
41extern "C" {
42#endif
43
44//Check current trace level
45#if (DNS_TRACE_LEVEL >= TRACE_LEVEL_DEBUG)
46 void dnsDumpMessage(const DnsHeader *message, size_t length);
47 size_t dnsDumpQuestion(const DnsHeader *message, size_t length, size_t pos, char_t *buffer);
48 size_t dnsDumpResourceRecord(const DnsHeader *message, size_t length, size_t pos, char_t *buffer);
49#else
50 #define dnsDumpMessage(message, length)
51#endif
52
53//C++ guard
54#ifdef __cplusplus
55}
56#endif
57
58#endif
Common DNS routines.
TCP/IP stack core.