From d3f3132057078e1a205fb2dab36be4a4eda462bc Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 22 Jan 2016 11:59:03 +0000 Subject: qos-scripts: Add IPv6 support This adds IPv6 support to qos-scripts for both tc/qdisc and the iptables classification rules. The tc/qdisc part is accomplished by removing "protocol ip" from the tc command line, causing the rule to be applied to all protocols. The iptables part is accomplished by adding each rule using both iptables and ip6tables. This patch is based on previous work by Ilkka Ollakka and Dominique Martinet. Signed-off-by: Michael Marley SVN-Revision: 48452 --- package/network/config/qos-scripts/files/usr/lib/qos/tcrules.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/network/config/qos-scripts/files/usr/lib/qos/tcrules.awk') diff --git a/package/network/config/qos-scripts/files/usr/lib/qos/tcrules.awk b/package/network/config/qos-scripts/files/usr/lib/qos/tcrules.awk index 12f94a67f1..21df391054 100644 --- a/package/network/config/qos-scripts/files/usr/lib/qos/tcrules.awk +++ b/package/network/config/qos-scripts/files/usr/lib/qos/tcrules.awk @@ -84,7 +84,7 @@ END { # filter rule for (i = 1; i <= n; i++) { - filter_cmd = "tc filter add dev "device" parent 1: prio %d protocol ip handle %s fw flowid 1:%d0\n"; + filter_cmd = "tc filter add dev "device" parent 1: prio %d handle %s fw flowid 1:%d0\n"; if (direction == "up") { filter_1 = sprintf("0x%x0/0xf0", class[i]) filter_2 = sprintf("0x0%x/0x0f", class[i]) -- cgit v1.2.3