summaryrefslogtreecommitdiff
path: root/accel-pppd/extra
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2011-09-20 10:40:00 +0400
committerKozlov Dmitry <xeb@mail.ru>2011-09-20 10:41:43 +0400
commitb01d121d0181329321a0cbb57f8251bab64bb823 (patch)
tree4a8cf2dd26e3f3acc848a8288f4d826d5a594858 /accel-pppd/extra
parentd50058d08b3250761087ed4d77e279b0999c8ef5 (diff)
downloadaccel-ppp-b01d121d0181329321a0cbb57f8251bab64bb823.tar.gz
accel-ppp-b01d121d0181329321a0cbb57f8251bab64bb823.zip
shaper_tbf: install temporary shaper in pre-up phase
Diffstat (limited to 'accel-pppd/extra')
-rw-r--r--accel-pppd/extra/shaper_tbf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/extra/shaper_tbf.c b/accel-pppd/extra/shaper_tbf.c
index 52ba6a24..718a5c58 100644
--- a/accel-pppd/extra/shaper_tbf.c
+++ b/accel-pppd/extra/shaper_tbf.c
@@ -834,7 +834,7 @@ static void ev_shaper(struct ev_shaper_t *ev)
}
}
-static void ev_ppp_started(struct ppp_t *ppp)
+static void ev_ppp_pre_up(struct ppp_t *ppp)
{
struct shaper_pd_t *pd = find_pd(ppp, 1);
if (!pd)
@@ -1336,7 +1336,7 @@ static void init(void)
triton_event_register_handler(EV_RADIUS_COA, (triton_event_func)ev_radius_coa);
}
#endif
- triton_event_register_handler(EV_PPP_STARTED, (triton_event_func)ev_ppp_started);
+ triton_event_register_handler(EV_PPP_PRE_UP, (triton_event_func)ev_ppp_pre_up);
triton_event_register_handler(EV_CTRL_FINISHED, (triton_event_func)ev_ctrl_finished);
triton_event_register_handler(EV_SHAPER, (triton_event_func)ev_shaper);
triton_event_register_handler(EV_CONFIG_RELOAD, (triton_event_func)load_config);