From bdf5bd00fa21707a7f09c95e76106682355f0927 Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Sun, 22 Jan 2012 21:58:33 +0400 Subject: implemented advanced shaper --- accel-pppd/shaper/shaper.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 accel-pppd/shaper/shaper.h (limited to 'accel-pppd/shaper/shaper.h') diff --git a/accel-pppd/shaper/shaper.h b/accel-pppd/shaper/shaper.h new file mode 100644 index 00000000..2b0514ba --- /dev/null +++ b/accel-pppd/shaper/shaper.h @@ -0,0 +1,23 @@ +#ifndef __SHAPER_H +#define __SHAPER_H + +#define LIM_POLICE 0 +#define LIM_TBF 1 +#define LIM_HTB 2 + +extern int conf_up_limiter; +extern int conf_down_limiter; + +extern double conf_down_burst_factor; +extern double conf_up_burst_factor; +extern double conf_latency; +extern int conf_mpu; +extern int conf_quantum; +extern int conf_r2q; +extern int conf_ifb_ifindex; + +int install_limiter(struct ppp_t *ppp, int down_speed, int down_burst, int up_speed, int up_burst); +int remove_limiter(struct ppp_t *ppp); +int init_ifb(const char *); + +#endif -- cgit v1.2.3