aboutsummaryrefslogtreecommitdiffstats
path: root/package/qos-scripts/files/usr
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
commit7d3baf4131083226f877c1f571f1ae0cb025c018 (patch)
tree2ecf25c693ac280bb41846ed760bf748720bb0ec /package/qos-scripts/files/usr
parenta1206669e893f6c3d69b789531a23e5116b48083 (diff)
downloadupstream-7d3baf4131083226f877c1f571f1ae0cb025c018.tar.gz
upstream-7d3baf4131083226f877c1f571f1ae0cb025c018.tar.bz2
upstream-7d3baf4131083226f877c1f571f1ae0cb025c018.zip
add qos-scripts connbytes match from #1618
SVN-Revision: 7091
Diffstat (limited to 'package/qos-scripts/files/usr')
-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