summaryrefslogtreecommitdiff
path: root/accel-pppd/shaper/shaper.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2012-02-28 13:25:37 +0400
committerKozlov Dmitry <xeb@mail.ru>2012-02-28 13:47:57 +0400
commitcf40442a413d04379711bd73a52372d3a3264ea4 (patch)
tree2695fa77df3478ceb6a5feea7c04ce86e7959a71 /accel-pppd/shaper/shaper.c
parent0144238b8e364dac353797368fe45cda5426d88d (diff)
downloadaccel-ppp-cf40442a413d04379711bd73a52372d3a3264ea4.tar.gz
accel-ppp-cf40442a413d04379711bd73a52372d3a3264ea4.zip
shaper: add cburst configuration option
Diffstat (limited to 'accel-pppd/shaper/shaper.c')
-rw-r--r--accel-pppd/shaper/shaper.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/accel-pppd/shaper/shaper.c b/accel-pppd/shaper/shaper.c
index 1363b98b..bcf705cd 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) {