summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-olsr/luasrc/model/cbi/olsr
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-olsr/luasrc/model/cbi/olsr')
-rw-r--r--applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua24
1 files changed, 23 insertions, 1 deletions
diff --git a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
index b89fb253d7..67b3169a0b 100644
--- a/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
+++ b/applications/luci-olsr/luasrc/model/cbi/olsr/olsrd.lua
@@ -91,4 +91,26 @@ for k, v in pairs(luci.fs.dir("/usr/lib")) do
end
end
-return m \ No newline at end of file
+
+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