summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey V. Lobanov <sergey@lobanov.in>2024-06-01 22:28:20 +0200
committerSergey V. Lobanov <sergey@lobanov.in>2024-06-01 22:34:41 +0200
commite571439aaf54da17bfcae49dedf7b44320d61426 (patch)
treea7da264d2de547d23cc22b157fe81f6b38291b3b
parent997a942f7dc4c3161aab2cca920f4faa7c608d5e (diff)
downloadaccel-ppp-e571439aaf54da17bfcae49dedf7b44320d61426.tar.gz
accel-ppp-e571439aaf54da17bfcae49dedf7b44320d61426.zip
shaper: fix tbf leaf-qdisc
bad commit: bc85fe18e6066814d95d1bdc1a3dfe8cc8f9786f Reported-By: StasN77 <stasn77@gmail.com> Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
-rw-r--r--accel-pppd/shaper/limiter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/shaper/limiter.c b/accel-pppd/shaper/limiter.c
index 647e03f5..e3e27cbd 100644
--- a/accel-pppd/shaper/limiter.c
+++ b/accel-pppd/shaper/limiter.c
@@ -552,11 +552,11 @@ int install_limiter(struct ap_session *ses, int down_speed, int down_burst, int
down_speed = down_speed * 1000 / 8;
down_burst = down_burst ? down_burst : conf_down_burst_factor * down_speed;
- if (conf_down_limiter == LIM_TBF)
+ if (conf_down_limiter == LIM_TBF) {
r = install_tbf(rth, ses->ifindex, down_speed, down_burst);
if (r == 0)
r = install_leaf_qdisc(rth, ses->ifindex, 0x00010000, 0x00020000);
- else if (conf_down_limiter == LIM_CLSACT)
+ } else if (conf_down_limiter == LIM_CLSACT)
r = install_clsact(rth, ses->ifindex, down_speed, down_burst);
else {
r = install_htb(rth, ses->ifindex, down_speed, down_burst);