summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ppp/ppp.c4
-rw-r--r--accel-pppd/session.c1
2 files changed, 2 insertions, 3 deletions
diff --git a/accel-pppd/ppp/ppp.c b/accel-pppd/ppp/ppp.c
index 57aa7405..fee9334d 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->ses);
+ triton_event_fire(EV_SES_PRE_FINISHED, ppp);
triton_md_unregister_handler(&ppp->chan_hnd);
triton_md_unregister_handler(&ppp->unit_hnd);
@@ -434,7 +434,7 @@ void __export ppp_layer_finished(struct ppp_t *ppp, struct ppp_layer_data_t *d)
destablish_ppp(ppp);
}
-void ppp_terminate(struct ap_session *ses, int hard)
+void __export ppp_terminate(struct ap_session *ses, int hard)
{
struct ppp_t *ppp = container_of(ses, typeof(*ppp), ses);
struct layer_node_t *n;
diff --git a/accel-pppd/session.c b/accel-pppd/session.c
index 666544d1..51264f88 100644
--- a/accel-pppd/session.c
+++ b/accel-pppd/session.c
@@ -206,7 +206,6 @@ 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);