summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2013-01-25 00:03:00 +0400
committerKozlov Dmitry <xeb@mail.ru>2013-01-25 00:03:00 +0400
commitea5476b1496a1e8e60696c79c3b73dbc8d8dbd53 (patch)
tree4d0be081404f48e663ae38a39c7a7a7809463d90 /accel-pppd
parent041b3051d55168ca171b944ca8d53b6aa4960dc1 (diff)
downloadaccel-ppp-ea5476b1496a1e8e60696c79c3b73dbc8d8dbd53.tar.gz
accel-ppp-ea5476b1496a1e8e60696c79c3b73dbc8d8dbd53.zip
session: read final interface statistics on termination
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ppp/ppp.c2
-rw-r--r--accel-pppd/session.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/ppp/ppp.c b/accel-pppd/ppp/ppp.c
index fee9334d..f5877edb 100644
--- a/accel-pppd/ppp/ppp.c
+++ b/accel-pppd/ppp/ppp.c
@@ -186,7 +186,7 @@ static void destablish_ppp(struct ppp_t *ppp)
{
struct pppunit_cache *uc;
- triton_event_fire(EV_SES_PRE_FINISHED, ppp);
+ triton_event_fire(EV_SES_PRE_FINISHED, &ppp->ses);
triton_md_unregister_handler(&ppp->chan_hnd);
triton_md_unregister_handler(&ppp->unit_hnd);
diff --git a/accel-pppd/session.c b/accel-pppd/session.c
index 51264f88..666544d1 100644
--- a/accel-pppd/session.c
+++ b/accel-pppd/session.c
@@ -206,6 +206,7 @@ void __export ap_session_terminate(struct ap_session *ses, int cause, int hard)
log_ppp_debug("terminate\n");
ap_session_ifdown(ses);
+ ap_session_read_stats(ses, NULL);
triton_event_fire(EV_SES_FINISHING, ses);