diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2011-01-25 20:38:21 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2011-01-26 00:52:49 +0300 |
commit | a7eaf069a979a923f0411584ed2154fff5e86036 (patch) | |
tree | 4738449feb63436b38639c54278d9c8d3219daf0 /accel-pppd/radius | |
parent | 64b0cc8703122437fb46e890ea0c0b4fda1d77da (diff) | |
download | accel-ppp-xebd-a7eaf069a979a923f0411584ed2154fff5e86036.tar.gz accel-ppp-xebd-a7eaf069a979a923f0411584ed2154fff5e86036.zip |
ppp, radius: Acct-Terminate-Cause=Lost-Carrier when ppp terminates by lcp reply absence
Diffstat (limited to 'accel-pppd/radius')
-rw-r--r-- | accel-pppd/radius/acct.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/accel-pppd/radius/acct.c b/accel-pppd/radius/acct.c index cbb23d5..40f6f81 100644 --- a/accel-pppd/radius/acct.c +++ b/accel-pppd/radius/acct.c @@ -289,6 +289,9 @@ void rad_acct_stop(struct radius_pd_t *rpd) case TERM_NAS_REBOOT: rad_packet_add_val(rpd->acct_req->pack, NULL, "Acct-Terminate-Cause", "NAS-Reboot"); break; + case TERM_LOST_CARRIER: + rad_packet_add_val(rpd->acct_req->pack, NULL, "Acct-Terminate-Cause", "Lost-Carrier"); + break; } rad_packet_change_val(rpd->acct_req->pack, NULL, "Acct-Status-Type", "Stop"); req_set_stat(rpd->acct_req, rpd->ppp); |