diff options
author | Kozlov Dmitry <dima@server> | 2011-08-24 15:13:06 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2011-08-24 15:13:06 +0400 |
commit | 4f9a2df99cd4dbc4724bfef9676383fad2707598 (patch) | |
tree | 03a663c46587724c3660db17906f254db7b63ff3 /accel-pppd/ppp/ppp_fsm.c | |
parent | 5bb8b536b0caeeec9be31fbf87e74d97a29e1ee9 (diff) | |
download | accel-ppp-4f9a2df99cd4dbc4724bfef9676383fad2707598.tar.gz accel-ppp-4f9a2df99cd4dbc4724bfef9676383fad2707598.zip |
ppp: reworked layer startup procedure
ppp: make IPCP and IPV6CP optional depends on configuration
Diffstat (limited to 'accel-pppd/ppp/ppp_fsm.c')
-rw-r--r-- | accel-pppd/ppp/ppp_fsm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/accel-pppd/ppp/ppp_fsm.c b/accel-pppd/ppp/ppp_fsm.c index b43945b8..c920b5c2 100644 --- a/accel-pppd/ppp/ppp_fsm.c +++ b/accel-pppd/ppp/ppp_fsm.c @@ -106,10 +106,10 @@ int ppp_fsm_open(struct ppp_fsm_t *layer) //if (layer->init_req_cnt) layer->init_req_cnt(layer); init_req_counter(layer,layer->max_configure); --layer->restart_counter; + layer->fsm_state=FSM_Req_Sent; if (layer->send_conf_req) if (layer->send_conf_req(layer)) return -1; - layer->fsm_state=FSM_Req_Sent; break; case FSM_Closing: case FSM_Stopping: @@ -155,6 +155,12 @@ void ppp_fsm_close(struct ppp_fsm_t *layer) } } +void ppp_fsm_close2(struct ppp_fsm_t *layer) +{ + stop_timer(layer); + layer->fsm_state=FSM_Closed; +} + void ppp_fsm_timeout0(struct ppp_fsm_t *layer) { switch(layer->fsm_state) |