2 LuCI - Lua Configuration Interface
4 Copyright 2008 Steven Barth <steven@midlink.org>
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
16 s = m:section(TypedSection, "interface", translate("interfaces"))
19 s:option(Flag, "enabled", translate("enable"))
21 c = s:option(ListValue, "classgroup")
22 c:value("Default", "standard")
25 s:option(Flag, "overhead")
27 s:option(Value, "download", nil, "kb/s")
29 s:option(Value, "upload", nil, "kb/s")
31 s = m:section(TypedSection, "classify")
36 t = s:option(ListValue, "target")
43 s:option(Value, "srchost").optional = true
44 s:option(Value, "dsthost").optional = true
45 s:option(Value, "layer7", "Layer 7").optional = true
47 p2p = s:option(ListValue, "ipp2p", "P2P")
49 p2p:value("all", translate("all"))
50 p2p:value("bit", "BitTorrent")
51 p2p:value("dc", "DirectConnect")
52 p2p:value("edk", "eDonkey")
53 p2p:value("gnu", "Gnutella")
54 p2p:value("kazaa", "Kazaa")
57 p = s:option(ListValue, "proto", translate("protocol"))
61 p:value("icmp", "ICMP")
64 s:option(Value, "ports", translate("port")).optional = true
65 s:option(Value, "portrange").optional = true