aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-19 23:56:34 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-19 23:56:34 +0000
commitee928268e854be025c669b41d026b1f4e1f4ab0a (patch)
tree13ae892d6d37060e573ffa55fe2ae98721f492f1
parentc3ccb603115aa50bc9e8084ba93bf8040968c243 (diff)
downloadmaster-187ad058-ee928268e854be025c669b41d026b1f4e1f4ab0a.tar.gz
master-187ad058-ee928268e854be025c669b41d026b1f4e1f4ab0a.tar.bz2
master-187ad058-ee928268e854be025c669b41d026b1f4e1f4ab0a.zip
qos-scripts: Fix classification of ingress traffic
Set the save-mark mask for the qos_${cg} chain to 0xff instead of 0xf0. With the old value, the nibble that was saved would be masked during the restore, preventing ingress traffic from being classified. Thanks to nbd for recommending the fix. Signed-off-by: Michael Marley <michael@michaelmarley.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48388 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xpackage/network/config/qos-scripts/files/usr/lib/qos/generate.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh b/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh
index 8d22b675c4..caa1125795 100755
--- a/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh
+++ b/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh
@@ -427,7 +427,7 @@ ${iptrules:+${iptrules}${N}iptables -t mangle -A qos_${cg}_ct -j CONNMARK --save
iptables -t mangle -A qos_${cg} -j CONNMARK --restore-mark --mask 0x0f
iptables -t mangle -A qos_${cg} -m mark --mark 0/0x0f -j qos_${cg}_ct
$pktrules
-${iptrules:+${iptrules}${N}iptables -t mangle -A qos_${cg} -j CONNMARK --save-mark --mask 0xf0}
+${iptrules:+${iptrules}${N}iptables -t mangle -A qos_${cg} -j CONNMARK --save-mark --mask 0xff}
$up$N${down:+${down}$N}
EOF
unset INSMOD