summaryrefslogtreecommitdiff
path: root/accel-pppd/shaper/shaper.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2013-11-07 23:33:11 +0400
committerDmitry Kozlov <xeb@mail.ru>2013-11-07 23:33:11 +0400
commitbc536e14dc0334340d69e486ff1574b1d86fe3b8 (patch)
treef36fdc76266c05ca47eca3a759b370eec4516863 /accel-pppd/shaper/shaper.c
parent5ee3cf66bbe9b7f6197aab39417269ce95c3c95c (diff)
downloadaccel-ppp-bc536e14dc0334340d69e486ff1574b1d86fe3b8.tar.gz
accel-ppp-bc536e14dc0334340d69e486ff1574b1d86fe3b8.zip
shaper: add mtu option
Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
Diffstat (limited to 'accel-pppd/shaper/shaper.c')
-rw-r--r--accel-pppd/shaper/shaper.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/accel-pppd/shaper/shaper.c b/accel-pppd/shaper/shaper.c
index 7219d727..9594caf0 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);