| 23 | | net4 = hna4:option(Value, "netaddr", translate("Network address")) |
| 24 | | net4.datatype = "ip4addr" |
| 25 | | net4.placeholder = "15.15.0.0" |
| 26 | | msk4 = hna4:option(Value, "netmask", translate("Netmask")) |
| 27 | | msk4.datatype = "ip4addr" |
| 28 | | msk4.placeholder = "255.255.255.0" |
| | 28 | net4 = hna4:option(Value, "netaddr", translate("Network address")) |
| | 29 | net4.datatype = "ip4addr" |
| | 30 | net4.placeholder = "10.11.12.13" |
| | 31 | net4.default = "10.11.12.13" |
| | 32 | msk4 = hna4:option(Value, "netmask", translate("Netmask")) |
| | 33 | msk4.datatype = "ip4addr" |
| | 34 | msk4.placeholder = "255.255.255.255" |
| | 35 | msk4.default = "255.255.255.255" |
| | 36 | end |
| 30 | | hna6 = mh:section(TypedSection, "Hna6", translate("Hna6"), translate("IPv6 network must be given in full notation, " .. |
| 31 | | "prefix must be in CIDR notation.")) |
| 32 | | hna6.addremove = true |
| 33 | | hna6.anonymous = true |
| 34 | | hna6.template = "cbi/tblsection" |
| | 38 | if ipv == "6and4" or ipv == "6" then |
| | 39 | hna6 = mh:section(TypedSection, "Hna6", translate("Hna6"), translate("IPv6 network must be given in full notation, " .. |
| | 40 | "prefix must be in CIDR notation.")) |
| | 41 | hna6.addremove = true |
| | 42 | hna6.anonymous = true |
| | 43 | hna6.template = "cbi/tblsection" |
| 36 | | net6 = hna6:option(Value, "netaddr", translate("Network address")) |
| 37 | | net6.datatype = "ip6addr" |
| 38 | | net6.placeholder = "fec0:2200:106:0:0:0:0:0" |
| 39 | | msk6 = hna6:option(Value, "prefix", translate("Prefix")) |
| 40 | | msk6.datatype = "range(0,128)" |
| 41 | | msk6.placeholder = "48" |
| 42 | | |
| | 45 | net6 = hna6:option(Value, "netaddr", translate("Network address")) |
| | 46 | net6.datatype = "ip6addr" |
| | 47 | net6.placeholder = "fec0:2200:106:0:0:0:0:0" |
| | 48 | net6.default = "fec0:2200:106:0:0:0:0:0" |
| | 49 | msk6 = hna6:option(Value, "prefix", translate("Prefix")) |
| | 50 | msk6.datatype = "range(0,128)" |
| | 51 | msk6.placeholder = "128" |
| | 52 | msk6.default = "128" |
| | 53 | end |