aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-21 23:22:06 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-21 23:22:06 +0000
commit9e9273ac5666806314e3142323dd46dab899baf5 (patch)
treec86d9b12dc6304252de2f0a606f4956b621cc2f4 /package/network/config
parentc3582134f38bb495ab2b671097fa6094e2d7483e (diff)
downloadmaster-187ad058-9e9273ac5666806314e3142323dd46dab899baf5.tar.gz
master-187ad058-9e9273ac5666806314e3142323dd46dab899baf5.tar.bz2
master-187ad058-9e9273ac5666806314e3142323dd46dab899baf5.zip
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48446 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/config')
-rwxr-xr-xpackage/network/config/qos-scripts/files/usr/lib/qos/generate.sh3
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 b6f69da354..3a0525de4d 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