mikroSDK Reference Manual
ppp_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 "ppp/ppp.h"
37#include "ppp/lcp.h"
38#include "ppp/ipcp.h"
39#include "debug.h"
40
41//C++ guard
42#ifdef __cplusplus
43extern "C" {
44#endif
45
46//Check current trace level
47#if (PPP_TRACE_LEVEL >= TRACE_LEVEL_DEBUG)
48 error_t pppDumpPacket(const PppPacket *packet, size_t length, PppProtocol protocol);
49 error_t lcpDumpPacket(const PppPacket *packet, size_t length);
50 error_t ncpDumpPacket(const PppPacket *packet, size_t length, PppProtocol protocol);
51 error_t papDumpPacket(const PppPacket *packet, size_t length);
52 error_t chapDumpPacket(const PppPacket *packet, size_t length);
53 error_t lcpDumpOptions(const PppOption *option, size_t length);
54 error_t ipcpDumpOptions(const PppOption *option, size_t length);
55 error_t ipv6cpDumpOptions(const PppOption *option, size_t length);
56#else
57 #define pppDumpPacket(packet, length, protocol)
58#endif
59
60//C++ guard
61#ifdef __cplusplus
62}
63#endif
64
65#endif
error_t
Error codes.
Definition error.h:43
IPCP (PPP Internet Protocol Control Protocol)
LCP (PPP Link Control Protocol)
TCP/IP stack core.
PPP (Point-to-Point Protocol)
PppProtocol
Protocol field values.
Definition ppp.h:198