From 5de6604bc0cd21714a23607ad2b35d567bbe029d Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Sat, 5 Mar 2016 12:44:25 +0300 Subject: shaper: fix filter spec for police to support both ipv4 and ipv6 --- accel-pppd/shaper/limiter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'accel-pppd/shaper') diff --git a/accel-pppd/shaper/limiter.c b/accel-pppd/shaper/limiter.c index b0525cb..6cc8d6c 100644 --- a/accel-pppd/shaper/limiter.c +++ b/accel-pppd/shaper/limiter.c @@ -218,7 +218,7 @@ static int install_police(struct rtnl_handle *rth, int ifindex, int rate, int bu } sel = { .sel.nkeys = 1, .sel.flags = TC_U32_TERMINAL, - .key.off = 12, +// .key.off = 12, }; struct tc_police police = { @@ -247,7 +247,7 @@ static int install_police(struct rtnl_handle *rth, int ifindex, int rate, int bu req.t.tcm_handle = 1; req.t.tcm_parent = 0xffff0000; - req.t.tcm_info = TC_H_MAKE(100 << 16, ntohs(ETH_P_IP)); + req.t.tcm_info = TC_H_MAKE(100 << 16, ntohs(ETH_P_ALL)); addattr_l(&req.n, sizeof(req), TCA_KIND, "u32", 4); -- cgit v1.2.3