diff options
Diffstat (limited to 'accel-pppd/shaper/shaper.c')
-rw-r--r-- | accel-pppd/shaper/shaper.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/accel-pppd/shaper/shaper.c b/accel-pppd/shaper/shaper.c index 7219d72..9594caf 100644 --- a/accel-pppd/shaper/shaper.c +++ b/accel-pppd/shaper/shaper.c @@ -36,6 +36,7 @@ double conf_down_burst_factor = 0.1; double conf_up_burst_factor = 1; double conf_latency = 0.05; int conf_mpu = 0; +int conf_mtu = 0; int conf_quantum = 1500; int conf_r2q = 10; int conf_cburst = 1534; @@ -898,6 +899,12 @@ static void load_config(void) if (opt && atoi(opt) >= 0) conf_mpu = atoi(opt); + opt = conf_get_opt("shaper", "mtu"); + if (opt) + conf_mtu = atoi(opt); + else + conf_mtu = 0; + opt = conf_get_opt("shaper", "r2q"); if (opt && atoi(opt) >= 0) conf_r2q = atoi(opt); |