summaryrefslogtreecommitdiff
path: root/accel-pptpd/ctrl/l2tp
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-10-19 13:08:48 +0400
committerKozlov Dmitry <dima@server>2010-10-19 13:08:48 +0400
commitb61784a785b48429fe0a75fbcbb9d867eee509f5 (patch)
treec97d5fb3c198b686717099d7e9ad06c4a6a815f0 /accel-pptpd/ctrl/l2tp
parentf7ac3aa1be2fe2a5bf987728e98544c4a20e57fb (diff)
downloadaccel-ppp-b61784a785b48429fe0a75fbcbb9d867eee509f5.tar.gz
accel-ppp-b61784a785b48429fe0a75fbcbb9d867eee509f5.zip
radius: implemented Acct-Terminate-Cause attribute
Diffstat (limited to 'accel-pptpd/ctrl/l2tp')
-rw-r--r--accel-pptpd/ctrl/l2tp/l2tp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/accel-pptpd/ctrl/l2tp/l2tp.c b/accel-pptpd/ctrl/l2tp/l2tp.c
index b565e33e..3dc9d61a 100644
--- a/accel-pptpd/ctrl/l2tp/l2tp.c
+++ b/accel-pptpd/ctrl/l2tp/l2tp.c
@@ -116,7 +116,7 @@ static void l2tp_disconnect(struct l2tp_conn_t *conn)
if (conn->state == STATE_PPP) {
conn->state = STATE_FIN;
- ppp_terminate(&conn->ppp, 1);
+ ppp_terminate(&conn->ppp, TERM_USER_REQUEST, 1);
}
pthread_mutex_lock(&l2tp_lock);
@@ -206,7 +206,7 @@ static void l2tp_conn_close(struct triton_context_t *ctx)
if (conn->state == STATE_PPP) {
conn->state = STATE_FIN;
- ppp_terminate(&conn->ppp, 1);
+ ppp_terminate(&conn->ppp, TERM_ADMIN_RESET, 1);
}
if (l2tp_terminate(conn, 0, 0))
@@ -793,7 +793,7 @@ static int l2tp_recv_CDN(struct l2tp_conn_t *conn, struct l2tp_packet_t *pack)
if (conn->state == STATE_PPP) {
conn->state = STATE_FIN;
- ppp_terminate(&conn->ppp, 1);
+ ppp_terminate(&conn->ppp, TERM_USER_REQUEST, 1);
}
if (l2tp_terminate(conn, 0, 0))