Author: nbd
Date: 2016-01-20 00:56:34 +0100 (Wed, 20 Jan 2016)
New Revision: 48388

Modified:
   trunk/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh
Log:
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 <[email protected]>

Modified: trunk/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh
===================================================================
--- trunk/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh      
2016-01-19 23:44:44 UTC (rev 48387)
+++ trunk/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh      
2016-01-19 23:56:34 UTC (rev 48388)
@@ -427,7 +427,7 @@
 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
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to