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 respawn=s:option(Flag, "respawn", translate("Respawn"))
26 respawn.default = false
28 verbose=s:option(Flag, "verbose", translate("Verbose"))
29 verbose.default = false
31 status=s:option(Flag, "status", translate("Status"))
33 bind=s:option(Value, "bind", translate("Bind IP/Interface"))
35 bind.datatype = "or(ipaddr, network)"
37 port=s:option(Value, "port", translate("Port"))
39 port.datatype = "port"
41 source=s:option(Value, "source", translate("Source IP/Interface"))
43 source.datatype = "or(ipaddr, network)"
45 max_clients=s:option(Value, "max_clients", translate("Max clients"))
46 max_clients.rmempty = true
47 max_clients.datatype = "range(1, 5000)"
49 log_file=s:option(Value, "log_file", translate("Log file"))
50 log_file.rmempty = true
51 --log_file.datatype = "file"
53 buffer_size=s:option(Value, "buffer_size", translate("Buffer size"))
54 buffer_size.rmempty = true
55 buffer_size.datatype = "range(4096,2097152)"
57 buffer_messages=s:option(Value, "buffer_messages", translate("Buffer messages"))
58 buffer_messages.rmempty = true
59 buffer_messages.datatype = "or(-1, and(min(1), uinteger))"
61 buffer_time=s:option(Value, "buffer_time", translate("Buffer time"))
62 buffer_time.rmempty = true
63 buffer_time.datatype = "or(-1, and(min(1), uinteger))"
65 nice_increment=s:option(Value, "nice_increment", translate("Nice increment"))
66 nice_increment.rmempty = true
67 nice_increment.datatype = "or(and(max(-1), integer),and(min(1), integer))"
69 mcsub_renew=s:option(Value, "mcsub_renew", translate("Multicast subscription renew"))
70 mcsub_renew.rmempty = true
71 mcsub_renew.datatype = "or(0, range(30, 64000))"