summaryrefslogtreecommitdiff
path: root/package/qos-scripts/files/usr/lib/qos/generate.sh
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-05-04 22:10:40 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-05-04 22:10:40 +0000
commit6c640d00dec772eb9651e25eedbe032e1e802e33 (patch)
treef48af1ae8630e65dd17accaea7d5cecacc62c913 /package/qos-scripts/files/usr/lib/qos/generate.sh
parentd5e01e3fd2db04b895d87e4fb83e293b763c0f69 (diff)
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/files/usr/lib/qos/generate.sh')
-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