From f0ad8ed5cb165cb47a19c5432e7284166d649fd0 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 16 Feb 2016 23:25:03 +0100 Subject: [PATCH] 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 --- .../gluon/upgrade/330-gluon-mesh-batman-adv-core-mesh-on-wan | 1 + .../gluon/upgrade/340-gluon-mesh-batman-adv-core-mesh-on-lan | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package/gluon-mesh-batman-adv-core/files/lib/gluon/upgrade/330-gluon-mesh-batman-adv-core-mesh-on-wan b/package/gluon-mesh-batman-adv-core/files/lib/gluon/upgrade/330-gluon-mesh-batman-adv-core-mesh-on-wan index d40c5729..8db95145 100755 --- a/package/gluon-mesh-batman-adv-core/files/lib/gluon/upgrade/330-gluon-mesh-batman-adv-core-mesh-on-wan +++ b/package/gluon-mesh-batman-adv-core/files/lib/gluon/upgrade/330-gluon-mesh-batman-adv-core-mesh-on-wan @@ -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 diff --git a/package/gluon-mesh-batman-adv-core/files/lib/gluon/upgrade/340-gluon-mesh-batman-adv-core-mesh-on-lan b/package/gluon-mesh-batman-adv-core/files/lib/gluon/upgrade/340-gluon-mesh-batman-adv-core-mesh-on-lan index 2d800546..8b192adb 100755 --- a/package/gluon-mesh-batman-adv-core/files/lib/gluon/upgrade/340-gluon-mesh-batman-adv-core-mesh-on-lan +++ b/package/gluon-mesh-batman-adv-core/files/lib/gluon/upgrade/340-gluon-mesh-batman-adv-core-mesh-on-lan @@ -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 -