summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2013-07-24 15:37:29 +0400
committerDmitry Kozlov <xeb@mail.ru>2013-07-24 15:37:29 +0400
commitca2e87fc65cc1b275b127ccee72e51b541b667bb (patch)
tree25c98d7446684c2b66a51bc174f534ed2d94bbc0 /accel-pppd
parent18a593209b5329f042f85a44e446c5b245df473e (diff)
downloadaccel-ppp-ca2e87fc65cc1b275b127ccee72e51b541b667bb.tar.gz
accel-ppp-ca2e87fc65cc1b275b127ccee72e51b541b667bb.zip
ipoe: add missing EV_SES_AUTHORIZED event firing
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c3
-rw-r--r--accel-pppd/ppp/ppp_auth.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index f605f2f1..bafde688 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -427,6 +427,9 @@ static void ipoe_session_start(struct ipoe_session *ses)
}
}
+ log_ppp_info1("%s: authentication succeeded\n", ses->ses.username);
+ triton_event_fire(EV_SES_AUTHORIZED, &ses->ses);
+
if (ses->serv->opt_nat)
ses->ses.ipv4 = ipdb_get_ipv4(&ses->ses);
diff --git a/accel-pppd/ppp/ppp_auth.c b/accel-pppd/ppp/ppp_auth.c
index 42bbbc6b..0510358c 100644
--- a/accel-pppd/ppp/ppp_auth.c
+++ b/accel-pppd/ppp/ppp_auth.c
@@ -329,7 +329,7 @@ static void __ppp_auth_started(struct ppp_t *ppp)
log_ppp_info1("%s: authentication succeeded\n", ppp->ses.username);
- triton_event_fire(EV_SES_AUTHORIZED, ppp);
+ triton_event_fire(EV_SES_AUTHORIZED, &ppp->ses);
}
int __export ppp_auth_succeeded(struct ppp_t *ppp, char *username)