Nut/OS  4.10.3
API Reference
pppdebug.c File Reference
#include <net/netdebug.h>
#include <sys/types.h>
#include <dev/ahdlc.h>
#include <arpa/inet.h>
#include <netinet/ppp_fsm.h>
#include <netinet/if_ppp.h>
#include <netinet/in.h>
Include dependency graph for pppdebug.c:

Go to the source code of this file.

Functions

void NutDumpLcpOption (FILE *stream, NETBUF *nb)
void NutDumpLcp (FILE *stream, NETBUF *nb)
void NutDumpPapOption (FILE *stream, NETBUF *nb)
void NutDumpPap (FILE *stream, NETBUF *nb)
void NutDumpIpcpOption (FILE *stream, NETBUF *nb)
void NutDumpIpcp (FILE *stream, NETBUF *nb)
void NutDumpPpp (FILE *stream, NETBUF *nb)
void NutTracePPP (FILE *stream, uint8_t flags)
 Control PPP tracing.

Variables

FILE__ppp_trs
 PPP trace output stream.
uint_fast8_t __ppp_trf
 PPP trace flags.

Function Documentation

void NutDumpLcpOption ( FILE stream,
NETBUF nb 
)
void NutDumpPapOption ( FILE stream,
NETBUF nb 
)

Definition at line 204 of file pppdebug.c.

References fprintf(), fputc(), fputs(), _NETBUF::nb_ap, _NETBUF::nb_dl, _NBDATA::sz, and _NBDATA::vp.

Referenced by NutDumpPap().

Here is the call graph for this function:

void NutDumpPap ( FILE stream,
NETBUF nb 
)

Definition at line 233 of file pppdebug.c.

References fprintf(), fputs(), fputs_P, _NETBUF::nb_dl, _NETBUF::nb_nw, ntohs, NutDumpPapOption(), _NBDATA::sz, _NBDATA::vp, xcphdr::xch_code, xcphdr::xch_id, xcphdr::xch_len, XCP_CONFACK, XCP_CONFNAK, and XCP_CONFREQ.

Referenced by NutDumpPpp().

Here is the call graph for this function:

void NutDumpIpcpOption ( FILE stream,
NETBUF nb 
)
void NutDumpIpcp ( FILE stream,
NETBUF nb 
)
void NutDumpPpp ( FILE stream,
NETBUF nb 
)
void NutTracePPP ( FILE stream,
uint8_t  flags 
)

Control PPP tracing.

Parameters:
streamPointer to a previously opened stream or null to disable trace output.
flagsFlags to enable specific traces.

Definition at line 429 of file pppdebug.c.

References __ppp_trf, and __ppp_trs.

Referenced by main().


Variable Documentation