diff options
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) |