diff options
author | Steven Barth <steven@midlink.org> | 2009-01-17 16:19:43 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-01-17 16:19:43 +0000 |
commit | f2148a5c65fa6c66d0d22fa43ec2f3e71aac9aa1 (patch) | |
tree | 78532a92ec7b08965a531d036926c6797343ec81 /applications/luci-qos/luasrc/model/cbi | |
parent | b847ba072dc15e4c4de2231f73dc3298c3f34092 (diff) |
Add connbytes support to QoS
Diffstat (limited to 'applications/luci-qos/luasrc/model/cbi')
-rw-r--r-- | applications/luci-qos/luasrc/model/cbi/qos/qos.lua | 12 | ||||
-rw-r--r-- | applications/luci-qos/luasrc/model/cbi/qos/qosmini.lua | 12 |
2 files changed, 14 insertions, 10 deletions
diff --git a/applications/luci-qos/luasrc/model/cbi/qos/qos.lua b/applications/luci-qos/luasrc/model/cbi/qos/qos.lua index 707d98a7b..ac5f3b27c 100644 --- a/applications/luci-qos/luasrc/model/cbi/qos/qos.lua +++ b/applications/luci-qos/luasrc/model/cbi/qos/qos.lua @@ -66,11 +66,11 @@ end p2p = s:option(ListValue, "ipp2p", "P2P") p2p:value("", "-") p2p:value("all", translate("all")) -p2p:value("bit", "BitTorrent") -p2p:value("dc", "DirectConnect") -p2p:value("edk", "eDonkey") -p2p:value("gnu", "Gnutella") -p2p:value("kazaa", "Kazaa") +p2p:value("bit", "BIT") +p2p:value("dc", "DC") +p2p:value("edk", "EDK") +p2p:value("gnu", "GNU") +p2p:value("kazaa", "KAZ") p2p.rmempty = true p = s:option(Value, "proto", translate("protocol")) @@ -84,4 +84,6 @@ ports = s:option(Value, "ports", translate("ports")) ports.rmempty = true ports:value("", translate("allf", translate("all"))) +bytes = s:option(Value, "connbytes", translate("qos_connbytes")) + return m diff --git a/applications/luci-qos/luasrc/model/cbi/qos/qosmini.lua b/applications/luci-qos/luasrc/model/cbi/qos/qosmini.lua index a1825505b..e80e4e560 100644 --- a/applications/luci-qos/luasrc/model/cbi/qos/qosmini.lua +++ b/applications/luci-qos/luasrc/model/cbi/qos/qosmini.lua @@ -59,11 +59,11 @@ end p2p = s:option(ListValue, "ipp2p", "P2P") p2p:value("", "-") p2p:value("all", translate("all")) -p2p:value("bit", "BitTorrent") -p2p:value("dc", "DirectConnect") -p2p:value("edk", "eDonkey") -p2p:value("gnu", "Gnutella") -p2p:value("kazaa", "Kazaa") +p2p:value("bit", "BIT") +p2p:value("dc", "DC") +p2p:value("edk", "EDK") +p2p:value("gnu", "GNU") +p2p:value("kazaa", "KAZ") p2p.rmempty = true p = s:option(ListValue, "proto", translate("protocol")) @@ -77,4 +77,6 @@ ports = s:option(Value, "ports", translate("ports")) ports.rmempty = true ports:value("", translate("allf", translate("all"))) +bytes = s:option(Value, "connbytes", translate("qos_connbytes")) + return m |