From 0d7463621ef7ce5c1df0a427c23d6936f1c43ab7 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Tue, 26 Oct 2010 15:18:56 +0400 Subject: radius: implemented Acct-Delay-Time attribute radius: accounting start moved to before ip up --- accel-pptpd/ppp/ipcp_opt_ipaddr.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'accel-pptpd/ppp/ipcp_opt_ipaddr.c') diff --git a/accel-pptpd/ppp/ipcp_opt_ipaddr.c b/accel-pptpd/ppp/ipcp_opt_ipaddr.c index ffba072..b0f662e 100644 --- a/accel-pptpd/ppp/ipcp_opt_ipaddr.c +++ b/accel-pptpd/ppp/ipcp_opt_ipaddr.c @@ -122,6 +122,10 @@ ack: ipcp->ppp->ipaddr = ipaddr_opt->ip->addr; ipcp->ppp->peer_ipaddr = ipaddr_opt->ip->peer_addr; + triton_event_fire(EV_PPP_ACCT_START, ipcp->ppp); + if (ipcp->ppp->stop_time) + return IPCP_OPT_ACK; + triton_event_fire(EV_PPP_PRE_UP, ipcp->ppp); if (ipcp->ppp->stop_time) return IPCP_OPT_ACK; -- cgit v1.2.3