diff options
Diffstat (limited to 'accel-pppd/shaper/shaper.c')
-rw-r--r-- | accel-pppd/shaper/shaper.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/accel-pppd/shaper/shaper.c b/accel-pppd/shaper/shaper.c index 1363b98..bcf705c 100644 --- a/accel-pppd/shaper/shaper.c +++ b/accel-pppd/shaper/shaper.c @@ -38,6 +38,7 @@ double conf_latency = 0.05; int conf_mpu = 0; int conf_quantum = 1500; int conf_r2q = 10; +int conf_cburst = 1534; int conf_ifb_ifindex; int conf_up_limiter = LIM_POLICE; @@ -550,6 +551,9 @@ static int shaper_restore_exec(const char *cmd, char * const *f, int f_cnt, void { struct shaper_pd_t *pd; int all, found = 0;; + int *ptr = 0; + + *ptr = 1; if (f_cnt != 3) return CLI_CMD_SYNTAX; @@ -861,6 +865,10 @@ static void load_config(void) opt = conf_get_opt("shaper", "quantum"); if (opt && atoi(opt) >= 0) conf_quantum = atoi(opt); + + opt = conf_get_opt("shaper", "cburst"); + if (opt && atoi(opt) >= 0) + conf_cburst = atoi(opt); opt = conf_get_opt("shaper", "up-limiter"); if (opt) { |