diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-21 23:22:06 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-21 23:22:06 +0000 |
commit | 269ab387ff4b1bdd3e4f04d8ded327947be28ecd (patch) | |
tree | 08254a9f698c3b62eaad337a7e3ddba8d4022dff | |
parent | b1f1b528a17911eaa1031c7e3f01c6a130e95df0 (diff) | |
download | mtk-20170518-269ab387ff4b1bdd3e4f04d8ded327947be28ecd.zip mtk-20170518-269ab387ff4b1bdd3e4f04d8ded327947be28ecd.tar.gz mtk-20170518-269ab387ff4b1bdd3e4f04d8ded327947be28ecd.tar.bz2 |
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 <michael@michaelmarley.com>
SVN-Revision: 48446
-rwxr-xr-x | package/network/config/qos-scripts/files/usr/lib/qos/generate.sh | 3 |
1 files changed, 3 insertions, 0 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 b6f69da..3a0525d 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 @@ -141,6 +141,9 @@ parse_matching_rule() { append "$var" "-i $device" fi ;; + *:srciface) + append "$var" "-i $value" + ;; 1:pktsize) value="$(echo "$value" | sed -e 's,-,:,g')" add_insmod xt_length |