summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2011-01-25 20:38:21 +0300
committerDmitry Kozlov <xeb@mail.ru>2011-01-26 00:52:49 +0300
commita7eaf069a979a923f0411584ed2154fff5e86036 (patch)
tree4738449feb63436b38639c54278d9c8d3219daf0 /accel-pppd/ppp
parent64b0cc8703122437fb46e890ea0c0b4fda1d77da (diff)
downloadaccel-ppp-a7eaf069a979a923f0411584ed2154fff5e86036.tar.gz
accel-ppp-a7eaf069a979a923f0411584ed2154fff5e86036.zip
ppp, radius: Acct-Terminate-Cause=Lost-Carrier when ppp terminates by lcp reply absence
Diffstat (limited to 'accel-pppd/ppp')
-rw-r--r--accel-pppd/ppp/ppp.h1
-rw-r--r--accel-pppd/ppp/ppp_lcp.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/ppp/ppp.h b/accel-pppd/ppp/ppp.h
index 5fee8a4..8556b2c 100644
--- a/accel-pppd/ppp/ppp.h
+++ b/accel-pppd/ppp/ppp.h
@@ -54,6 +54,7 @@
#define TERM_NAS_REQUEST 6
#define TERM_NAS_REBOOT 7
#define TERM_AUTH_ERROR 8
+#define TERM_LOST_CARRIER 9
struct ppp_t;
diff --git a/accel-pppd/ppp/ppp_lcp.c b/accel-pppd/ppp/ppp_lcp.c
index 63fe8ff..10e25fb 100644
--- a/accel-pppd/ppp/ppp_lcp.c
+++ b/accel-pppd/ppp/ppp_lcp.c
@@ -615,7 +615,7 @@ static void send_echo_request(struct triton_timer_t *t)
if (++lcp->echo_sent > lcp->echo_failure) {
log_ppp_warn("lcp: no echo reply\n");
- ppp_terminate(lcp->ppp, TERM_USER_ERROR, 1);
+ ppp_terminate(lcp->ppp, TERM_LOST_CARRIER, 1);
} else {
if (conf_ppp_verbose)
log_ppp_debug("send [LCP EchoReq id=%x <magic %x>]\n", msg.hdr.id, msg.magic);