qos-script: Improve usability by adding comment field to rules
[openwrt/.git] / package / network / config / qos-scripts / files / usr / lib / qos / generate.sh
index 440b43f5d12fafec23390cfcb737d4a97f68e096..07ec34f51c00f481a43a780807e9bba54e3e63da 100755 (executable)
@@ -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