PPP state machine definitions. More...
#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | XCPOPT |
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. | |
PPP state machine definitions.
| #define PPPS_INITIAL 0 |
Down, hasn't been opened.
Referenced by IpcpClose(), IpcpLowerDown(), IpcpLowerUp(), IpcpOpen(), LcpClose(), LcpLowerDown(), LcpLowerUp(), LcpOpen(), NutIpcpInput(), and NutLcpInput().
| #define PPPS_STARTING 1 |
Down, been opened.
Referenced by IpcpClose(), IpcpLowerDown(), IpcpLowerUp(), IpcpOpen(), LcpClose(), LcpLowerDown(), LcpLowerUp(), LcpOpen(), NutIpcpInput(), and NutLcpInput().
| #define PPPS_CLOSED 2 |
Up, hasn't been opened.
Referenced by IpcpClose(), IpcpLowerDown(), IpcpLowerUp(), IpcpOpen(), IpcpRxConfAck(), IpcpRxConfReq(), IpcpRxProtRej(), IpcpRxTermAck(), LcpClose(), LcpLowerDown(), LcpLowerUp(), LcpOpen(), LcpRxProtRej(), and NutPppSm().
| #define PPPS_STOPPED 3 |
Open, waiting for down event.
Referenced by IpcpClose(), IpcpLowerDown(), IpcpRxConfAck(), IpcpRxConfReq(), IpcpRxProtRej(), IpcpRxTermAck(), LcpClose(), LcpLowerDown(), LcpRxProtRej(), and NutPppSm().
| #define PPPS_CLOSING 4 |
Terminating the connection, not open.
Referenced by IpcpClose(), IpcpLowerDown(), IpcpOpen(), IpcpRxConfReq(), IpcpRxProtRej(), IpcpRxTermAck(), LcpClose(), LcpLowerDown(), LcpOpen(), LcpRxProtRej(), and NutPppSm().
| #define PPPS_STOPPING 5 |
Peer is going down.
Referenced by IpcpClose(), IpcpLowerDown(), IpcpOpen(), IpcpRxConfReq(), IpcpRxProtRej(), IpcpRxTermAck(), IpcpRxTermReq(), LcpClose(), LcpLowerDown(), LcpOpen(), LcpRxProtRej(), and NutPppSm().
| #define PPPS_REQSENT 6 |
We've sent a Config Request.
Referenced by IpcpClose(), IpcpLowerDown(), IpcpLowerUp(), IpcpOpen(), IpcpRxConfAck(), IpcpRxConfReq(), IpcpRxProtRej(), IpcpRxTermAck(), IpcpRxTermReq(), IpcpTxConfReq(), LcpClose(), LcpLowerDown(), LcpLowerUp(), LcpOpen(), LcpRxProtRej(), LcpTxConfReq(), and NutPppSm().
| #define PPPS_ACKRCVD 7 |
We've received a Config Ack.
Referenced by IpcpClose(), IpcpLowerDown(), IpcpRxConfAck(), IpcpRxConfReq(), IpcpRxProtRej(), IpcpRxTermAck(), IpcpRxTermReq(), IpcpTxConfReq(), LcpClose(), LcpLowerDown(), LcpRxProtRej(), and LcpTxConfReq().
| #define PPPS_ACKSENT 8 |
We've sent a Config Ack.
Referenced by IpcpClose(), IpcpLowerDown(), IpcpRxConfAck(), IpcpRxConfReq(), IpcpRxProtRej(), IpcpRxTermReq(), IpcpTxConfReq(), LcpClose(), LcpLowerDown(), LcpRxProtRej(), LcpTxConfReq(), and NutPppSm().
| #define PPPS_OPENED 9 |
Connection available.
Referenced by IpcpClose(), IpcpLowerDown(), IpcpRxConfAck(), IpcpRxConfReq(), IpcpRxProtRej(), IpcpRxTermAck(), IpcpRxTermReq(), LcpClose(), LcpLowerDown(), LcpRxProtRej(), NutNetIfConfig2(), and NutPppInput().
| #define XCP_CONFREQ 1 |
LCP/IPCP Configure-Request Code.
Referenced by IpcpTxConfReq(), LcpTxConfReq(), NutDumpIpcp(), NutDumpLcp(), NutDumpPap(), NutIpcpInput(), NutLcpInput(), NutPapInput(), and PapTxAuthReq().
| #define XCP_CONFACK 2 |
LCP/IPCP Configure-Ack Code.
Referenced by IpcpRxConfReq(), NutDumpIpcp(), NutDumpLcp(), NutDumpPap(), NutIpcpInput(), NutLcpInput(), NutPapInput(), and PapRxAuthReq().
| #define XCP_CONFNAK 3 |
LCP/IPCP Configure-Nack Code.
Referenced by IpcpRxConfReq(), NutDumpIpcp(), NutDumpLcp(), NutDumpPap(), NutIpcpInput(), NutLcpInput(), and NutPapInput().
| #define XCP_CONFREJ 4 |
LCP/IPCP Configure-Reject Code.
Referenced by IpcpRxConfReq(), NutDumpIpcp(), NutDumpLcp(), NutIpcpInput(), and NutLcpInput().
| #define XCP_TERMREQ 5 |
LCP/IPCP Terminate-Request Code.
Referenced by IpcpClose(), IpcpRxProtRej(), LcpClose(), LcpRxProtRej(), NutDumpIpcp(), NutDumpLcp(), NutIpcpInput(), NutLcpInput(), and NutPppSm().
| #define XCP_TERMACK 6 |
LCP/IPCP Terminate-Ack Code.
Referenced by IpcpRxConfAck(), IpcpRxConfReq(), IpcpRxTermReq(), NutDumpIpcp(), NutDumpLcp(), NutIpcpInput(), and NutLcpInput().
| #define XCP_CODEREJ 7 |
LCP/IPCP Code-Reject Code.
Referenced by NutDumpIpcp(), NutDumpLcp(), NutIpcpInput(), and NutLcpInput().
| #define LCP_PROTREJ 8 |
LCP Protocol-Reject Code.
Referenced by LcpTxProtRej(), and NutDumpLcp().
| #define LCP_ERQ 9 |
LCP Echo-Request Code.
Referenced by NutDumpLcp(), and NutLcpInput().
| #define LCP_ERP 10 |
LCP Echo-Response Code.
Referenced by NutDumpLcp(), and NutLcpInput().
| #define LCP_DRQ 11 |
LCP Discard-Request Code.
Referenced by NutDumpLcp(), and NutLcpInput().
| #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.
Referenced by NutPppSm(), PapRxAuthAck(), PapRxAuthNak(), and PapTxAuthReq().
| #define PAPCS_OPEN 4 |
We've received an Ack.
Referenced by NutPppInput(), and PapRxAuthAck().
| #define PAPCS_BADAUTH 5 |
We've received a Nak.
Referenced by PapRxAuthNak().
| void PapLowerUp | ( | NUTDEVICE * | dev | ) |
| void PapLowerDown | ( | NUTDEVICE * | dev | ) |
| void PppOpen | ( | NUTDEVICE * | dev | ) |
| void PppClose | ( | NUTDEVICE * | dev | ) |