VxWorks Reference Manual : Libraries
pppShow - Point-to-Point Protocol show routines
pppInfoShow( ) - display PPP link status information
pppInfoGet( ) - get PPP link status information
pppstatShow( ) - display PPP link statistics
pppstatGet( ) - get PPP link statistics
pppSecretShow( ) - display the PPP authentication secrets table
This library provides routines to show Point-to-Point Protocol (PPP) link status information and statistics. Also provided are routines that programmatically access this same information.
This library is automatically linked into the VxWorks system image when the configuration macro INCLUDE_PPP is defined.
pppLib.h
pppShow, pppLib, VxWorks Programmer's Guide: Network
pppInfoShow( ) - display PPP link status information
void pppInfoShow (void)
This routine displays status information pertaining to each initialized Point-to-Point Protocol (PPP) link, regardless of the link state. State and option information is gathered for the Link Control Protocol (LCP), Internet Protocol Control Protocol (IPCP), Password Authentication Protocol (PAP), and Challenge-Handshake Authentication Protocol (CHAP).
N/A
pppInfoGet( ) - get PPP link status information
STATUS pppInfoGet ( int unit, /* PPP interface unit number to examine */ PPP_INFO * pInfo /* PPP_INFO structure to be filled */ )
This routine gets status information pertaining to the specified Point-to-Point Protocol (PPP) link, regardless of the link state. State and option information is gathered for the Link Control Protocol (LCP), Internet Protocol Control Protocol (IPCP), Password Authentication Protocol (PAP), and Challenge-Handshake Authentication Protocol (CHAP).
The PPP link information is returned through a PPP_INFO structure, which is defined in h/netinet/ppp/pppShow.h.
OK, or ERROR if unit is an invalid PPP unit number.
pppstatShow( ) - display PPP link statistics
void pppstatShow (void)
This routine displays statistics for each initialized Point-to-Point Protocol (PPP) link. Detailed are the numbers of bytes and packets received and sent through each PPP interface.
N/A
pppstatGet( ) - get PPP link statistics
STATUS pppstatGet ( int unit, /* PPP interface unit number to examine */ PPP_STAT * pStat /* PPP_STAT structure to be filled */ )
This routine gets statistics for the specified Point-to-Point Protocol (PPP) link. Detailed are the numbers of bytes and packets received and sent through the PPP interface.
The PPP link statistics are returned through a PPP_STAT structure, which is defined in h/netinet/ppp/pppShow.h.
OK, or ERROR if unit is an invalid PPP unit number.
pppSecretShow( ) - display the PPP authentication secrets table
void pppSecretShow (void)
This routine displays the Point-to-Point Protocol (PPP) authentication secrets table. The information in the secrets table may be used by the Password Authentication Protocol (PAP) and Challenge-Handshake Authentication Protocol (CHAP) user authentication protocols.
N/A
pppShow, pppLib, pppSecretAdd( ), pppSecretDelete( )