Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

ppp_fsm.h File Reference


Detailed Description

PPP state machine definitions.


Defines

#define PPPS_INITIAL   0
 Down, hasn't been opened.
#define PPPS_STARTING   1
 Down, been opened.
#define PPPS_CLOSED   2
 Up, hasn't been opened.
#define PPPS_STOPPED   3
 Open, waiting for down event.
#define PPPS_CLOSING   4
 Terminating the connection, not open.
#define PPPS_STOPPING   5
 Peer is going down.
#define PPPS_REQSENT   6
 We've sent a Config Request.
#define PPPS_ACKRCVD   7
 We've received a Config Ack.
#define PPPS_ACKSENT   8
 We've sent a Config Ack.
#define PPPS_OPENED   9
 Connection available.
#define XCP_CONFREQ   1
 LCP/IPCP Configure-Request Code.
#define XCP_CONFACK   2
 LCP/IPCP Configure-Ack Code.
#define XCP_CONFNAK   3
 LCP/IPCP Configure-Nack Code.
#define XCP_CONFREJ   4
 LCP/IPCP Configure-Reject Code.
#define XCP_TERMREQ   5
 LCP/IPCP Terminate-Request Code.
#define XCP_TERMACK   6
 LCP/IPCP Terminate-Ack Code.
#define XCP_CODEREJ   7
 LCP/IPCP Code-Reject Code.
#define LCP_PROTREJ   8
 LCP Protocol-Reject Code.
#define LCP_ERQ   9
 LCP Echo-Request Code.
#define LCP_ERP   10
 LCP Echo-Response Code.
#define LCP_DRQ   11
 LCP Discard-Request Code.
#define PAPCS_INITIAL   0
 Connection down.
#define PAPCS_CLOSED   1
 Connection up, haven't requested auth.
#define PAPCS_PENDING   2
 Connection down, have requested auth.
#define PAPCS_AUTHREQ   3
 We've sent an Authenticate-Request.
#define PAPCS_OPEN   4
 We've received an Ack.
#define PAPCS_BADAUTH   5
 We've received a Nak.

Functions

void LcpOpen (NUTDEVICE *dev)
 Trigger LCP open event.
void LcpClose (NUTDEVICE *dev)
 Trigger LCP close event.
void LcpLowerUp (NUTDEVICE *dev)
 Trigger LCP lower up event.
void LcpLowerDown (NUTDEVICE *dev)
 Trigger LCP lower down event.
void PapLowerUp (NUTDEVICE *dev)
void PapLowerDown (NUTDEVICE *dev)
void IpcpOpen (NUTDEVICE *dev)
 Trigger IPCP open event.
void IpcpClose (NUTDEVICE *dev)
 Trigger IPCP close event.
void IpcpLowerUp (NUTDEVICE *dev)
void IpcpLowerDown (NUTDEVICE *dev)
void PppOpen (NUTDEVICE *dev)
void PppClose (NUTDEVICE *dev)
int NutPppInitStateMachine (NUTDEVICE *dev)
 Initialize the PPP state machine.


© 2000-2006 by egnite Software GmbH - visit http://www.ethernut.de/