mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
PPP: revamp PPP state order
Master state is almost exactly the same thing as dead state, move it next to dead state. Holdoff state is actually the state just before initialize, move it before initialize. The goal is to be able to use > running or => terminate condition to check a currently running disconnection phase, which is not possible today without excluding master and holdoff states.
This commit is contained in:
parent
5811948b0a
commit
f185104ac6
@ -110,18 +110,18 @@
|
||||
* Values for phase.
|
||||
*/
|
||||
#define PPP_PHASE_DEAD 0
|
||||
#define PPP_PHASE_INITIALIZE 1
|
||||
#define PPP_PHASE_SERIALCONN 2
|
||||
#define PPP_PHASE_DORMANT 3
|
||||
#define PPP_PHASE_ESTABLISH 4
|
||||
#define PPP_PHASE_AUTHENTICATE 5
|
||||
#define PPP_PHASE_CALLBACK 6
|
||||
#define PPP_PHASE_NETWORK 7
|
||||
#define PPP_PHASE_RUNNING 8
|
||||
#define PPP_PHASE_TERMINATE 9
|
||||
#define PPP_PHASE_DISCONNECT 10
|
||||
#define PPP_PHASE_HOLDOFF 11
|
||||
#define PPP_PHASE_MASTER 12
|
||||
#define PPP_PHASE_MASTER 1
|
||||
#define PPP_PHASE_HOLDOFF 2
|
||||
#define PPP_PHASE_INITIALIZE 3
|
||||
#define PPP_PHASE_SERIALCONN 4
|
||||
#define PPP_PHASE_DORMANT 5
|
||||
#define PPP_PHASE_ESTABLISH 6
|
||||
#define PPP_PHASE_AUTHENTICATE 7
|
||||
#define PPP_PHASE_CALLBACK 8
|
||||
#define PPP_PHASE_NETWORK 9
|
||||
#define PPP_PHASE_RUNNING 10
|
||||
#define PPP_PHASE_TERMINATE 11
|
||||
#define PPP_PHASE_DISCONNECT 12
|
||||
|
||||
/* Error codes. */
|
||||
#define PPPERR_NONE 0 /* No error. */
|
||||
|
Loading…
Reference in New Issue
Block a user