gluon-mesh-batman-adv-core: enable mesh_no_rebroadcast for Mesh-on-WAN/LAN

Ethernet links provide transitive connectivity in all but very unusual
setup, enable mesh_no_rebroadcast to reduce load for devices on links with
many nodes.

Fixes #652
This commit is contained in:
Matthias Schiffer 2016-02-16 23:25:03 +01:00
parent 0fd4ff0a68
commit f0ad8ed5cb
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ if not c:get('network', 'mesh_wan') then
{ ifname = 'br-wan'
, proto = 'batadv'
, mesh = 'bat0'
, mesh_no_rebroadcast = '1'
, auto = site.mesh_on_wan and 1 or 0
})
end

View File

@ -27,6 +27,7 @@ if sysconfig.lan_ifname and not uci:get('network', 'mesh_lan') then
{ ifname = sysconfig.lan_ifname
, proto = 'batadv'
, mesh = 'bat0'
, mesh_no_rebroadcast = '1'
, macaddr = util.generate_mac(1, 1)
, auto = enable and 1 or 0
})
@ -34,4 +35,3 @@ if sysconfig.lan_ifname and not uci:get('network', 'mesh_lan') then
uci:save('network')
uci:commit('network')
end