From patchwork Mon Feb 5 15:22:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [RFC] Add BATMAN-V From: Christian Dresel X-Patchwork-Id: 773 Message-Id: <20180205152218.25321-1-fff@chrisi01.de> To: franken-dev@freifunk.net Date: Mon, 5 Feb 2018 16:22:18 +0100 Dieses Patch soll als Diskussionsgrundlage von BATMAN-V dienen Es sind auf jeden Fall noch Probleme bekannt die zuerst behoben werden müssen: * Manche Ethernetdevices (z.b. 841er eth0.3) liefern falsche Metrik * Da es nicht zum alten Batman kompatibel ist, wird es z.b. bei Verbindungen per Ethernet Probleme geben, dies ist noch nicht zu Ende gedacht und muss davor überlegt werden. * Da es nicht kompatibel ist, wird es mit dem aktellen keyxchangev2 auch bei zentralen Hoods zu Problemen kommen und sollte so nicht verwendet werden Mehr Infos: https://mantis.freifunk-franken.de/view.php?id=92 Signed-off-by: Christian Dresel --- src/packages/fff/fff-hoods/files/usr/sbin/configurehood | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood index 95a1bf4..ed36580 100755 --- a/src/packages/fff/fff-hoods/files/usr/sbin/configurehood +++ b/src/packages/fff/fff-hoods/files/usr/sbin/configurehood @@ -209,7 +209,19 @@ if [ -s "$hoodfile" ]; then # Additional parameters may be activated in future versions #json_get_var mode2 mode2 #json_get_var mode5 mode5 - #json_get_var protocol protocol + json_get_var protocol protocol + + #Check for the Routingprotocol + if [ $protocol == "BATMAN_V" ]; then + echo "We use Batman V" + uci set network.ethmesh.routing_algo='BATMAN_V' + uci commit network + elif [ $protocol == "batman-adv-v15" ]; then + echo "We use batman-adv-v15" + #we do nothing, default is Batman-adv-15 + else + echo "uncorrect Data, please configure the hood manual" + fi json_select ".." # back to root