diff options
author | John Crispin <john@openwrt.org> | 2014-06-02 12:44:44 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-06-02 12:44:44 +0000 |
commit | 9e65c01a4b06b4824bff287a671b48de28c17381 (patch) | |
tree | bb94e396b5e62d42ab44802af136e2746a04714b /package/network/config/qos-scripts | |
parent | 3bc4516ebb6d23c06b4d7079341ae953ab6aae12 (diff) | |
download | upstream-9e65c01a4b06b4824bff287a671b48de28c17381.tar.gz upstream-9e65c01a4b06b4824bff287a671b48de28c17381.tar.bz2 upstream-9e65c01a4b06b4824bff287a671b48de28c17381.zip |
qos-script: Improve usability by adding comment field to rules
It's quite unconveniet to remember which ports are used by which applications, especially for not so advanced users.
Together with luci patch (discussed on IRC) this improves qos-scripts usability.
Signed-off-by: Roman Yeryomin <roman@advem.lv>
SVN-Revision: 40935
Diffstat (limited to 'package/network/config/qos-scripts')
-rwxr-xr-x | package/network/config/qos-scripts/files/usr/lib/qos/generate.sh | 4 |
1 files changed, 4 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 440b43f5d1..07ec34f51c 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 @@ -118,6 +118,10 @@ parse_matching_rule() { add_insmod ipt_connbytes append "$var" "-m connbytes --connbytes $value --connbytes-dir both --connbytes-mode bytes" ;; + *:comment) + add_insmod xt_comment + append "$var" "-m comment --comment '$value'" + ;; *:tos) add_insmod ipt_tos case "$value" in |