if value == "gateway" then
-- wan mtu
- uci:set("network", "wan", "mtu", 1400)
+ uci:set("network", "wan", "mtu", 1240)
-- lan settings
uci:tset("network", "lan", {
- mtu = 1400,
+ mtu = 1240,
ipaddr = lan_net:host():string(),
- netmask = lan_net:mask():string()
+ netmask = lan_net:mask():string(),
+ proto = "static"
})
-- use full siit subnet
-- lan settings
uci:tset("network", "lan", {
- mtu = 1400,
+ mtu = 1240,
ipaddr = lan_net:host():string(),
netmask = lan_net:mask():string()
})
-- hna6
uci:delete_all("olsrd", "Hna6",
- function(s)
- if s.netaddr and s.prefix then
- return siit_route:contains(luci.ip.IPv6(s.netaddr.."/"..s.prefix))
- end
- end)
+ function(s) return true end)
uci:section("olsrd", "Hna6", nil, {
netaddr = siit_route:host():string(),