Author: nbd Date: 2016-01-22 00:22:06 +0100 (Fri, 22 Jan 2016) New Revision: 48446
Modified: trunk/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh Log: qos-scripts: Allow classification by the traffic's source interface This adds a "srciface" option that can be used on classification rules in /etc/config/qos. This is useful to allow prioritization based on the local network from which the traffic originates, for example to deprioritize traffic from a guest network. 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-21 22:26:15 UTC (rev 48445) +++ trunk/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh 2016-01-21 23:22:06 UTC (rev 48446) @@ -141,6 +141,9 @@ append "$var" "-i $device" fi ;; + *:srciface) + append "$var" "-i $value" + ;; 1:pktsize) value="$(echo "$value" | sed -e 's,-,:,g')" add_insmod xt_length _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
