summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2011-08-29 01:16:21 +0400
committerKozlov Dmitry <xeb@mail.ru>2011-08-29 01:16:21 +0400
commitc4c6ceed2b0f973022fc429a7e709c057c95e9dc (patch)
tree677a64a1d82746d41694342a56d4e9dcaab1f822
parentf53638854c99e4b6b4b1c167c44fbb6dbfd0c6e7 (diff)
downloadaccel-ppp-c4c6ceed2b0f973022fc429a7e709c057c95e9dc.tar.gz
accel-ppp-c4c6ceed2b0f973022fc429a7e709c057c95e9dc.zip
ppp: ccp,ipcp,ipv6cp: set state of fsm to closed after layer was finished
-rw-r--r--accel-pppd/ppp/ppp_ccp.c2
-rw-r--r--accel-pppd/ppp/ppp_ipcp.c2
-rw-r--r--accel-pppd/ppp/ppp_ipv6cp.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/accel-pppd/ppp/ppp_ccp.c b/accel-pppd/ppp/ppp_ccp.c
index 9602f7dd..aac7ac2f 100644
--- a/accel-pppd/ppp/ppp_ccp.c
+++ b/accel-pppd/ppp/ppp_ccp.c
@@ -213,6 +213,8 @@ static void ccp_layer_finished(struct ppp_fsm_t *fsm)
ppp_layer_passive(ccp->ppp, &ccp->ld);
else if (!ccp->ppp->terminating)
ppp_terminate(ccp->ppp, TERM_USER_ERROR, 0);
+
+ fsm->fsm_state = FSM_Closed;
}
static void ccp_layer_down(struct ppp_fsm_t *fsm)
diff --git a/accel-pppd/ppp/ppp_ipcp.c b/accel-pppd/ppp/ppp_ipcp.c
index 3a944169..ac81e8e7 100644
--- a/accel-pppd/ppp/ppp_ipcp.c
+++ b/accel-pppd/ppp/ppp_ipcp.c
@@ -206,6 +206,8 @@ static void ipcp_layer_finished(struct ppp_fsm_t *fsm)
ppp_layer_passive(ipcp->ppp, &ipcp->ld);
} else if (!ipcp->ppp->terminating)
ppp_terminate(ipcp->ppp, TERM_USER_ERROR, 0);
+
+ fsm->fsm_state = FSM_Closed;
}
static void ipcp_layer_down(struct ppp_fsm_t *fsm)
diff --git a/accel-pppd/ppp/ppp_ipv6cp.c b/accel-pppd/ppp/ppp_ipv6cp.c
index d60575a8..ff14c9bf 100644
--- a/accel-pppd/ppp/ppp_ipv6cp.c
+++ b/accel-pppd/ppp/ppp_ipv6cp.c
@@ -206,6 +206,8 @@ static void ipv6cp_layer_finished(struct ppp_fsm_t *fsm)
ppp_layer_passive(ipv6cp->ppp, &ipv6cp->ld);
} else if (!ipv6cp->ppp->terminating)
ppp_terminate(ipv6cp->ppp, TERM_USER_ERROR, 0);
+
+ fsm->fsm_state = FSM_Closed;
}
static void ipv6cp_layer_down(struct ppp_fsm_t *fsm)