summaryrefslogtreecommitdiff
path: root/accel-pppd/shaper
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2016-04-01 18:53:12 +0300
committerDmitry Kozlov <xeb@mail.ru>2016-04-01 18:53:12 +0300
commitc4f29a3539a4cefa4b07a5dea5678933ccfda3ee (patch)
treeab9e2b3d0fb89b70324760da40c1346913a508c6 /accel-pppd/shaper
parente250729120be0c0ed119500e426da00cbe6a5fbe (diff)
downloadaccel-ppp-c4f29a3539a4cefa4b07a5dea5678933ccfda3ee.tar.gz
accel-ppp-c4f29a3539a4cefa4b07a5dea5678933ccfda3ee.zip
shaper: fix wrong priority value for skbedit
Diffstat (limited to 'accel-pppd/shaper')
-rw-r--r--accel-pppd/shaper/limiter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/accel-pppd/shaper/limiter.c b/accel-pppd/shaper/limiter.c
index c5da965b..738f747e 100644
--- a/accel-pppd/shaper/limiter.c
+++ b/accel-pppd/shaper/limiter.c
@@ -361,6 +361,7 @@ static int install_htb_ifb(struct rtnl_handle *rth, int ifindex, __u32 priority,
tail3 = NLMSG_TAIL(&req.n);
addattr_l(&req.n, MAX_MSG, TCA_ACT_OPTIONS, NULL, 0);
addattr_l(&req.n, MAX_MSG, TCA_SKBEDIT_PARMS, &p1, sizeof(p1));
+ priority--;
addattr_l(&req.n, MAX_MSG, TCA_SKBEDIT_PRIORITY, &priority, sizeof(priority));
tail3->rta_len = (void *)NLMSG_TAIL(&req.n) - (void *)tail3;