diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-12-27 18:27:12 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-12-27 18:27:12 +0000 |
commit | a5c4b5bb5e835287a77bf1693e61f71cd7e6113c (patch) | |
tree | 28b26a0aadc31b27e0c6c6f36cc9aaac3a18ced1 /applications/luci-siitwizard/luasrc | |
parent | 71b8fd5ddf9d7f23ada97a1910bafd1f8711a76b (diff) |
applications/siitwizard: lower mtu on lan and wan to 1240, make sure to remove old hna6 announcements
Diffstat (limited to 'applications/luci-siitwizard/luasrc')
-rw-r--r-- | applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua b/applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua index c1dbb0efd..3603d6e36 100644 --- a/applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua +++ b/applications/luci-siitwizard/luasrc/model/cbi/siitwizard.lua @@ -182,13 +182,14 @@ function mode.write(self, section, value) 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 @@ -216,7 +217,7 @@ function mode.write(self, section, value) -- lan settings uci:tset("network", "lan", { - mtu = 1400, + mtu = 1240, ipaddr = lan_net:host():string(), netmask = lan_net:mask():string() }) @@ -341,11 +342,7 @@ function mode.write(self, section, value) -- 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(), |