applications/siitwizard: lower mtu on lan and wan to 1240, make sure to remove old hna6 announcements

This commit is contained in:
Jo-Philipp Wich 2008-12-27 18:27:12 +00:00
parent 71b8fd5ddf
commit a5c4b5bb5e

View file

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