$Id$
]]--
-mh = Map("olsrd", translate("olsrd_hna", "OLSR - HNA-Ankündigungen"))
+mh = Map("olsrd", translate("OLSR - HNA-Announcements"))
+
+
+hna4 = mh:section(TypedSection, "Hna4", translate("Hna4"), translate("Both values must use the dotted decimal notation."))
+hna4.addremove = true
+hna4.anonymous = true
+hna4.template = "cbi/tblsection"
+
+net4 = hna4:option(Value, "netaddr", translate("Network address"))
+net4.datatype = "ip4addr"
+net4.placeholder = "15.15.0.0"
+msk4 = hna4:option(Value, "netmask", translate("Netmask"))
+msk4.datatype = "ip4addr"
+msk4.placeholder = "255.255.255.0"
+
+hna6 = mh:section(TypedSection, "Hna6", translate("Hna6"), translate("IPv6 network must be given in full notation, " ..
+ "prefix must be in CIDR notation."))
+hna6.addremove = true
+hna6.anonymous = true
+hna6.template = "cbi/tblsection"
+
+net6 = hna6:option(Value, "netaddr", translate("Network address"))
+net6.datatype = "ip6addr"
+net6.placeholder = "fec0:2200:106:0:0:0:0:0"
+msk6 = hna6:option(Value, "prefix", translate("Prefix"))
+msk6.datatype = "integer"
+msk6.placeholder = "48"
-for i, sect in ipairs({ "Hna4", "Hna6" }) do
- hna = mh:section(TypedSection, sect)
- hna.addremove = true
- hna.anonymous = true
- hna.template = "cbi/tblsection"
-
- net = hna:option(Value, "NetAddr")
- msk = hna:option(Value, "Prefix")
-end
return mh