From c4f29a3539a4cefa4b07a5dea5678933ccfda3ee Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Fri, 1 Apr 2016 18:53:12 +0300 Subject: shaper: fix wrong priority value for skbedit --- accel-pppd/shaper/limiter.c | 1 + 1 file changed, 1 insertion(+) (limited to 'accel-pppd/shaper') 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; -- cgit v1.2.3