diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2010-10-26 15:18:56 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2010-10-26 15:18:56 +0400 |
commit | 0d7463621ef7ce5c1df0a427c23d6936f1c43ab7 (patch) | |
tree | c804086137c76e7cbfe6c41dacfb8c1de48a24ec /accel-pptpd/ppp | |
parent | 098a5112a9e2240fdbac3116173f6735ee13dba8 (diff) | |
download | accel-ppp-0d7463621ef7ce5c1df0a427c23d6936f1c43ab7.tar.gz accel-ppp-0d7463621ef7ce5c1df0a427c23d6936f1c43ab7.zip |
radius: implemented Acct-Delay-Time attribute
radius: accounting start moved to before ip up
Diffstat (limited to 'accel-pptpd/ppp')
-rw-r--r-- | accel-pptpd/ppp/ipcp_opt_ipaddr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/accel-pptpd/ppp/ipcp_opt_ipaddr.c b/accel-pptpd/ppp/ipcp_opt_ipaddr.c index ffba0724..b0f662e5 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; |