summaryrefslogtreecommitdiff
path: root/accel-pptpd/ppp
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-10-12 16:16:04 +0400
committerKozlov Dmitry <dima@server>2010-10-12 16:19:00 +0400
commit805d4cdd48200d9bced3a5e41eed08f008d913f4 (patch)
treecd8248ba1995161bcaccecc36ed8703c7bf6ba8e /accel-pptpd/ppp
parent3313e8b52ab54c7e4a0dd8cd9cc6b3aa05b2019c (diff)
downloadaccel-ppp-805d4cdd48200d9bced3a5e41eed08f008d913f4.tar.gz
accel-ppp-805d4cdd48200d9bced3a5e41eed08f008d913f4.zip
ctrl: implemented L2TPv2 server (without IPsec)
Diffstat (limited to 'accel-pptpd/ppp')
-rw-r--r--accel-pptpd/ppp/ppp_ipcp.c6
-rw-r--r--accel-pptpd/ppp/ppp_lcp.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/accel-pptpd/ppp/ppp_ipcp.c b/accel-pptpd/ppp/ppp_ipcp.c
index 15103e08..ca8896c5 100644
--- a/accel-pptpd/ppp/ppp_ipcp.c
+++ b/accel-pptpd/ppp/ppp_ipcp.c
@@ -154,10 +154,10 @@ static void ipcp_layer_down(struct ppp_fsm_t *fsm)
log_ppp_debug("ipcp_layer_finished\n");
- ppp_layer_finished(ipcp->ppp, &ipcp->ld);
- if (ipcp->started)
+ if (ipcp->started) {
ipcp->started = 0;
- else
+ ppp_layer_finished(ipcp->ppp, &ipcp->ld);
+ } else
ppp_terminate(ipcp->ppp, 1);
}
diff --git a/accel-pptpd/ppp/ppp_lcp.c b/accel-pptpd/ppp/ppp_lcp.c
index 2bbfd56a..0eae8fc9 100644
--- a/accel-pptpd/ppp/ppp_lcp.c
+++ b/accel-pptpd/ppp/ppp_lcp.c
@@ -176,10 +176,10 @@ static void lcp_layer_finished(struct ppp_fsm_t *fsm)
log_ppp_debug("lcp_layer_finished\n");
stop_echo(lcp);
- ppp_layer_finished(lcp->ppp, &lcp->ld);
- if (lcp->started)
+ if (lcp->started) {
lcp->started = 0;
- else
+ ppp_layer_finished(lcp->ppp, &lcp->ld);
+ } else
ppp_terminate(lcp->ppp, 1);
}