mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-20 15:17:05 +08:00
PPP, CCP, moved CCP global variables to ppp_pcb (ppp.h)
This commit is contained in:
@@ -48,12 +48,6 @@ typedef struct ccp_options {
|
||||
short method; /* code for chosen compression method */
|
||||
} ccp_options;
|
||||
|
||||
extern fsm ccp_fsm[];
|
||||
extern ccp_options ccp_wantoptions[];
|
||||
extern ccp_options ccp_gotoptions[];
|
||||
extern ccp_options ccp_allowoptions[];
|
||||
extern ccp_options ccp_hisoptions[];
|
||||
|
||||
extern const struct protent ccp_protent;
|
||||
|
||||
#endif /* PPP_SUPPORT && CCP_SUPPORT */
|
||||
|
||||
@@ -380,6 +380,16 @@ struct ppp_pcb_s {
|
||||
u8_t lcp_echo_number; /* ID number of next echo frame */
|
||||
u16_t peer_mru; /* currently negotiated peer MRU */
|
||||
|
||||
#if CCP_SUPPORT
|
||||
fsm ccp_fsm; /* CCP fsm structure */
|
||||
ccp_options ccp_wantoptions; /* what to request the peer to use */
|
||||
ccp_options ccp_gotoptions; /* what the peer agreed to do */
|
||||
ccp_options ccp_allowoptions; /* what we'll agree to do */
|
||||
ccp_options ccp_hisoptions; /* what we agreed to do */
|
||||
int ccp_localstate; /* Local state (mainly for handling reset-reqs and reset-acks). */
|
||||
int all_rejected; /* we rejected all peer's options */
|
||||
#endif /* CCP_SUPPORT */
|
||||
|
||||
#if PPP_IPV4_SUPPORT
|
||||
fsm ipcp_fsm; /* IPCP fsm structure */
|
||||
ipcp_options ipcp_wantoptions; /* Options that we want to request */
|
||||
|
||||
Reference in New Issue
Block a user