mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-10 01:23:48 +08:00
PPP, CCP, moved CCP global variables to ppp_pcb (ppp.h)
This commit is contained in:
@@ -211,12 +211,6 @@ const struct protent ccp_protent = {
|
||||
#endif /* DEMAND_SUPPORT */
|
||||
};
|
||||
|
||||
fsm ccp_fsm[NUM_PPP];
|
||||
ccp_options ccp_wantoptions[NUM_PPP]; /* what to request the peer to use */
|
||||
ccp_options ccp_gotoptions[NUM_PPP]; /* what the peer agreed to do */
|
||||
ccp_options ccp_allowoptions[NUM_PPP]; /* what we'll agree to do */
|
||||
ccp_options ccp_hisoptions[NUM_PPP]; /* what we agreed to do */
|
||||
|
||||
/*
|
||||
* Callbacks for fsm code.
|
||||
*/
|
||||
@@ -261,14 +255,11 @@ static const fsm_callbacks ccp_callbacks = {
|
||||
/*
|
||||
* Local state (mainly for handling reset-reqs and reset-acks).
|
||||
*/
|
||||
static int ccp_localstate[NUM_PPP];
|
||||
#define RACK_PENDING 1 /* waiting for reset-ack */
|
||||
#define RREQ_REPEAT 2 /* send another reset-req if no reset-ack */
|
||||
|
||||
#define RACKTIMEOUT 1 /* second */
|
||||
|
||||
static int all_rejected[NUM_PPP]; /* we rejected all peer's options */
|
||||
|
||||
#if PPP_OPTIONS
|
||||
/*
|
||||
* Option parsing
|
||||
|
||||
Reference in New Issue
Block a user