aboutsummaryrefslogtreecommitdiffstats
path: root/package/qos-scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-05-04 22:10:40 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-05-04 22:10:40 +0000
commitfd5f2e3852ebb3f58f77e8dedcef541136b99ef0 (patch)
treef48af1ae8630e65dd17accaea7d5cecacc62c913 /package/qos-scripts
parentd32ec10e8a7f6ff2ea61a353cbb26f5587a04f00 (diff)
downloadupstream-fd5f2e3852ebb3f58f77e8dedcef541136b99ef0.tar.gz
upstream-fd5f2e3852ebb3f58f77e8dedcef541136b99ef0.tar.bz2
upstream-fd5f2e3852ebb3f58f77e8dedcef541136b99ef0.zip
add qos-scripts connbytes match from #1618
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7091 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/qos-scripts')
-rwxr-xr-xpackage/qos-scripts/files/usr/lib/qos/generate.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/qos-scripts/files/usr/lib/qos/generate.sh b/package/qos-scripts/files/usr/lib/qos/generate.sh
index a3c9f175c9..64e2fc6593 100755
--- a/package/qos-scripts/files/usr/lib/qos/generate.sh
+++ b/package/qos-scripts/files/usr/lib/qos/generate.sh
@@ -111,6 +111,11 @@ parse_matching_rule() {
esac
ports=1
;;
+ *:connbytes)
+ value="$(echo "$value" | sed -e 's,-,:,g')"
+ add_insmod ipt_connbytes
+ append "$var" "-m connbytes --connbytes $value --connbytes-dir both --connbytes-mode bytes"
+ ;;
1:pktsize)
value="$(echo "$value" | sed -e 's,-,:,g')"
add_insmod ipt_length