From 4f9a2df99cd4dbc4724bfef9676383fad2707598 Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Wed, 24 Aug 2011 15:13:06 +0400 Subject: ppp: reworked layer startup procedure ppp: make IPCP and IPV6CP optional depends on configuration --- accel-pppd/ppp/ppp_fsm.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'accel-pppd/ppp/ppp_fsm.c') 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) -- cgit v1.2.3