mikroSDK Reference Manual
dhcp_debug.h
Go to the documentation of this file.
1
31#ifndef _DHCP_DEBUG_H
32#define _DHCP_DEBUG_H
33
34//Dependencies
35#include "core/net.h"
36#include "dhcp/dhcp_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 (DHCP_TRACE_LEVEL >= TRACE_LEVEL_DEBUG)
46 error_t dhcpDumpMessage(const DhcpMessage *message, size_t length);
47 error_t dhcpDumpMessageType(const DhcpOption *option);
48 error_t dhcpDumpParamRequestList(const DhcpOption *option);
49 error_t dhcpDumpBoolean(const DhcpOption *option);
50 error_t dhcpDumpInt8(const DhcpOption *option);
51 error_t dhcpDumpInt16(const DhcpOption *option);
52 error_t dhcpDumpInt32(const DhcpOption *option);
53 error_t dhcpDumpString(const DhcpOption *option);
54 error_t dhcpDumpIpv4Addr(const DhcpOption *option);
55 error_t dhcpDumpIpv4AddrList(const DhcpOption *option);
56 error_t dhcpDumpRawData(const DhcpOption *option);
57#else
58 #define dhcpDumpMessage(message, length)
59#endif
60
61//C++ guard
62#ifdef __cplusplus
63}
64#endif
65
66#endif
Definitions common to DHCP client and server.
error_t
Error codes.
Definition error.h:43
TCP/IP stack core.