summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2014-09-09 21:16:38 +0400
committerDmitry Kozlov <xeb@mail.ru>2014-09-09 21:16:38 +0400
commitd371f4dd5036cf94feedbcc9d568956361c8b762 (patch)
treed8af2148d6ca5f8131bd388f79f44c53f3fcdcab /accel-pppd
parentfd4bd1031e6b9b0e99761036b2d4488cb1403c77 (diff)
downloadaccel-ppp-d371f4dd5036cf94feedbcc9d568956361c8b762.tar.gz
accel-ppp-d371f4dd5036cf94feedbcc9d568956361c8b762.zip
ppp: fsm: do not reinitialize restart counter after Configure-Ack (fixes some infinite configure loops)
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ppp/ppp_fsm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/accel-pppd/ppp/ppp_fsm.c b/accel-pppd/ppp/ppp_fsm.c
index babaf667..b0331d90 100644
--- a/accel-pppd/ppp/ppp_fsm.c
+++ b/accel-pppd/ppp/ppp_fsm.c
@@ -331,7 +331,6 @@ void ppp_fsm_recv_conf_ack(struct ppp_fsm_t *layer)
break;
case FSM_Req_Sent:
//if (layer->init_req_cnt) layer->init_req_cnt(layer);
- init_req_counter(layer,layer->max_configure);
layer->fsm_state=FSM_Ack_Rcvd;
break;
case FSM_Ack_Rcvd:
@@ -519,7 +518,7 @@ static void restart_timer_func(struct triton_timer_t *t)
{
struct ppp_fsm_t *layer = container_of(t, typeof(*layer), restart_timer);
- log_ppp_debug("fsm timeout\n");
+ log_ppp_debug("fsm timeout %i\n", layer->restart_counter);
if (layer->restart_counter>0)
ppp_fsm_timeout0(layer);