diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2016-03-05 12:44:25 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2016-03-05 12:44:25 +0300 |
commit | 5de6604bc0cd21714a23607ad2b35d567bbe029d (patch) | |
tree | 92688e83d87328ede760274a92394db5953eb45f /accel-pppd/shaper | |
parent | 3fa9e6ad35c7768ccba7381599119656b18e5eb9 (diff) | |
download | accel-ppp-5de6604bc0cd21714a23607ad2b35d567bbe029d.tar.gz accel-ppp-5de6604bc0cd21714a23607ad2b35d567bbe029d.zip |
shaper: fix filter spec for police to support both ipv4 and ipv6
Diffstat (limited to 'accel-pppd/shaper')
-rw-r--r-- | accel-pppd/shaper/limiter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/shaper/limiter.c b/accel-pppd/shaper/limiter.c index b0525cb8..6cc8d6c1 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); |