2 LuCI - Lua Configuration Interface - udpxy support
4 Copyright 2014 Álvaro Fernández Rojas <noltari@gmail.com>
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
15 m = Map("udpxy", "udpxy", translate("udpxy is a UDP-to-HTTP multicast traffic relay daemon, here you can configure the settings."))
17 s = m:section(TypedSection, "udpxy", "")
21 enable=s:option(Flag, "disabled", translate("Enabled"))
25 enable.rmempty = false
26 respawn=s:option(Flag, "respawn", translate("Respawn"))
27 respawn.default = false
29 verbose=s:option(Flag, "verbose", translate("Verbose"))
30 verbose.default = false
32 status=s:option(Flag, "status", translate("Status"))
34 bind=s:option(Value, "bind", translate("Bind IP/Interface"))
36 bind.datatype = "or(ipaddr, network)"
38 port=s:option(Value, "port", translate("Port"))
40 port.datatype = "port"
42 source=s:option(Value, "source", translate("Source IP/Interface"))
44 source.datatype = "or(ipaddr, network)"
46 max_clients=s:option(Value, "max_clients", translate("Max clients"))
47 max_clients.rmempty = true
48 max_clients.datatype = "range(1, 5000)"
50 log_file=s:option(Value, "log_file", translate("Log file"))
51 log_file.rmempty = true
52 --log_file.datatype = "file"
54 buffer_size=s:option(Value, "buffer_size", translate("Buffer size"))
55 buffer_size.rmempty = true
56 buffer_size.datatype = "range(4096,2097152)"
58 buffer_messages=s:option(Value, "buffer_messages", translate("Buffer messages"))
59 buffer_messages.rmempty = true
60 buffer_messages.datatype = "or(-1, and(min(1), uinteger))"
62 buffer_time=s:option(Value, "buffer_time", translate("Buffer time"))
63 buffer_time.rmempty = true
64 buffer_time.datatype = "or(-1, and(min(1), uinteger))"
66 nice_increment=s:option(Value, "nice_increment", translate("Nice increment"))
67 nice_increment.rmempty = true
68 nice_increment.datatype = "or(and(max(-1), integer),and(min(1), integer))"
70 mcsub_renew=s:option(Value, "mcsub_renew", translate("Multicast subscription renew"))
71 mcsub_renew.rmempty = true
72 mcsub_renew.datatype = "or(0, range(30, 64000))"