* luci/olsr: added config-support and translations for Hna4, Hna6 and IpcConnect configuration

This commit is contained in:
Jo-Philipp Wich 2008-06-14 01:22:12 +00:00
parent 8138a60504
commit 50fd298415
3 changed files with 72 additions and 3 deletions

View file

@ -38,3 +38,26 @@ olsr_interface_midvaliditytime = "MID-Gültigkeit"
olsr_interface_hnainterval = "HNA-Intervall" olsr_interface_hnainterval = "HNA-Intervall"
olsr_interface_hnavaliditytime = "HNA-Gültigkeit" olsr_interface_hnavaliditytime = "HNA-Gültigkeit"
olsr_loadplugin = "Plugins" olsr_loadplugin = "Plugins"
olsr_hna4 = "IPv4 HNA-Ankündigungen"
olsr_hna4_desc = "Hna4-Entries ermöglichen die Ankündigung von lokalen IPv4 Host- und Netz-Routen im Mesh-Netzwerk"
olsr_hna4_netaddr = "Netzwerk-Adresse"
olsr_hna4_netaddr_desc = "IPv4 Adresse"
olsr_hna4_prefix = "Netzmaske"
olsr_hna4_prefix_desc = "IPv4 Adresse"
olsr_hna6 = "IPv6 HNA-Ankündigungen"
olsr_hna6_desc = "Hna6-Entries ermöglichen die Ankündigung von lokalen IPv6 Host- und Netz-Routen im Mesh-Netzwerk"
olsr_hna6_netaddr = "Netzwerk-Adresse"
olsr_hna6_netaddr_desc = "IPv6 Adresse"
olsr_hna6_prefix = "Netzmaske"
olsr_hna6_prefix_desc = "IPv6 Adresse"
olsr_ipcconnect = "IPC-Einstellungen"
olsr_ipcconnect_desc = "IPC-Verbindungen ermöglichen die Fernsteuerung des lokalen OLSR-Prozesses durch externe Programme"
olsr_ipcconnect_maxconnections = "maximale Anzahl von Verbindungen"
olsr_ipcconnect_maxconnections_desc = "0 deaktiviert IPC"
olsr_ipcconnect_host = "erlaubte Hostadressen"
olsr_ipcconnect_host_desc = "mehrere mit Leerzeichen trennen"
olsr_ipcconnect_net = "erlaubte Netzbereiche"
olsr_ipcconnect_net_desc = "Adresse Maske; mehrere mit Leerzeichen"

View file

@ -36,3 +36,27 @@ olsr_interface_midvaliditytime = "MID-Validity"
olsr_interface_hnainterval = "HNA-Interval" olsr_interface_hnainterval = "HNA-Interval"
olsr_interface_hnavaliditytime = "HNA-Validity" olsr_interface_hnavaliditytime = "HNA-Validity"
olsr_loadplugin = "Plugins" olsr_loadplugin = "Plugins"
olsr_hna4 = "IPv4 HNA-Announcements"
olsr_hna4_desc = "Hna4-entries are used to announce local ipv4 host- and net-routes within the mesh-network"
olsr_hna4_netaddr = "Network-Address"
olsr_hna4_netaddr_desc = "ipv4 address"
olsr_hna4_prefix = "Netmask"
olsr_hna4_prefix_desc = "ipv4 address"
olsr_hna4 = "IPv6 HNA-Announcements"
olsr_hna6_desc = "Hna6-entries are used to announce local ipv6 host- and net-routes within the mesh-network"
olsr_hna6_netaddr = "Network-Address"
olsr_hna6_netaddr_desc = "ipv6 address"
olsr_hna6_prefix = "Netmask"
olsr_hna6_prefix_desc = "ipv6 address"
olsr_ipcconnect = "IPC-Settings"
olsr_ipcconnect_desc = "IPC-connections allow external programs to remote-control the local OLSR process"
olsr_ipcconnect_maxconnections = "max. allowed connections"
olsr_ipcconnect_maxconnections_desc = "0 disables IPC"
olsr_ipcconnect_host = "Allowed hosts"
olsr_ipcconnect_host_desc = "multiple separated by space"
olsr_ipcconnect_net = "Allowed networks"
olsr_ipcconnect_net_desc = "address netmask; separated by space"

View file

@ -91,4 +91,26 @@ for k, v in pairs(luci.fs.dir("/usr/lib")) do
end end
end end
for i, sect in ipairs({ "Hna4", "Hna6" }) do
hna = m:section(TypedSection, sect)
hna.addremove = true
hna.anonymous = true
net = hna:option(Value, "NetAddr")
msk = hna:option(Value, "Prefix")
end
ipc = m:section(NamedSection, "IpcConnect")
conns = ipc:option(Value, "MaxConnections")
conns.isInteger = true
nets = ipc:option(Value, "Net")
nets.optional = true
hosts = ipc:option(Value, "Host")
hosts.optional = true
return m return m