diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2016-04-01 18:53:12 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2016-04-01 18:53:12 +0300 |
commit | c4f29a3539a4cefa4b07a5dea5678933ccfda3ee (patch) | |
tree | ab9e2b3d0fb89b70324760da40c1346913a508c6 /accel-pppd/shaper | |
parent | e250729120be0c0ed119500e426da00cbe6a5fbe (diff) | |
download | accel-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.c | 1 |
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; |