Repository : ssh://git@open-mesh.org/openwrt-feed-devel
On branch : master
commit f487fd9bfb0f137c29790482acca8d032f36182a Author: Sven Eckelmann sven@narfation.org Date: Sun Oct 14 16:24:20 2018 +0200
batman-adv-devel: Sync config options with kernel Kconfig
The kernel already provides all available kernel options for batman-adv and even includes more verbose descriptions of each option. Importing this Kconfig (with minor adjustments) file as Config.in allows to share most information between kernel and OpenWrt.
Signed-off-by: Sven Eckelmann sven@narfation.org
f487fd9bfb0f137c29790482acca8d032f36182a batman-adv-devel/Config.in | 84 ++++++++++++++++++++++++++++++++++++++++------ batman-adv-devel/Makefile | 10 +++--- 2 files changed, 79 insertions(+), 15 deletions(-)
diff --git a/batman-adv-devel/Config.in b/batman-adv-devel/Config.in index 753bb1a..6b4f89e 100644 --- a/batman-adv-devel/Config.in +++ b/batman-adv-devel/Config.in @@ -1,35 +1,97 @@ +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2007-2018 B.A.T.M.A.N. contributors: +# +# Marek Lindner, Simon Wunderlich +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of version 2 of the GNU General Public +# License as published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, see http://www.gnu.org/licenses/. + +# +# B.A.T.M.A.N meshing protocol +#
config KMOD_BATMAN_ADV_DEVEL_BATMAN_V - bool "enable batman v routing algorithm" + bool "B.A.T.M.A.N. V protocol" depends on PACKAGE_kmod-batman-adv-devel default y + help + This option enables the B.A.T.M.A.N. V protocol, the successor + of the currently used B.A.T.M.A.N. IV protocol. The main + changes include splitting of the OGM protocol into a neighbor + discovery protocol (Echo Location Protocol, ELP) and a new OGM + Protocol OGMv2 for flooding protocol information through the + network, as well as a throughput based metric. + B.A.T.M.A.N. V is currently considered experimental and not + compatible to B.A.T.M.A.N. IV networks.
config KMOD_BATMAN_ADV_DEVEL_BLA - bool "enable bridge loop avoidance" + bool "Bridge Loop Avoidance" depends on PACKAGE_kmod-batman-adv-devel + select PACKAGE_kmod-lib-crc16 default y + help + This option enables BLA (Bridge Loop Avoidance), a mechanism + to avoid Ethernet frames looping when mesh nodes are connected + to both the same LAN and the same mesh. If you will never use + more than one mesh node in the same LAN, you can safely remove + this feature and save some space.
config KMOD_BATMAN_ADV_DEVEL_DAT - bool "enable distributed arp table" + bool "Distributed ARP Table" depends on PACKAGE_kmod-batman-adv-devel default y + help + This option enables DAT (Distributed ARP Table), a DHT based + mechanism that increases ARP reliability on sparse wireless + mesh networks. If you think that your network does not need + this option you can safely remove it and save some space.
config KMOD_BATMAN_ADV_DEVEL_NC - bool "enable network coding [requires promisc mode support]" + bool "Network Coding" depends on PACKAGE_kmod-batman-adv-devel - default n + help + This option enables network coding, a mechanism that aims to + increase the overall network throughput by fusing multiple + packets in one transmission. + Note that interfaces controlled by batman-adv must be manually + configured to have promiscuous mode enabled in order to make + network coding work. + If you think that your network does not need this feature you + can safely disable it and save some space.
config KMOD_BATMAN_ADV_DEVEL_MCAST - bool "enable multicast transmission optimization" + bool "Multicast optimisation" depends on PACKAGE_kmod-batman-adv-devel + help + This option enables the multicast optimisation which aims to + reduce the air overhead while improving the reliability of + multicast messages.
config KMOD_BATMAN_ADV_DEVEL_DEBUGFS - bool "enable debugfs support" + bool "batman-adv debugfs entries" depends on PACKAGE_kmod-batman-adv-devel - default n + select KERNEL_DEBUG_FS + help + Enable this to export routing related debug tables via debugfs. + The information for each soft-interface and used hard-interface can be + found under batman_adv/ + + If unsure, say N.
config KMOD_BATMAN_ADV_DEVEL_DEBUG_LOG - bool "enable verbose debug logging" - depends on PACKAGE_kmod-batman-adv-devel + bool "B.A.T.M.A.N. debugging" depends on KMOD_BATMAN_ADV_DEVEL_DEBUGFS - default n + help + This is an option for use by developers; most people should + say N here. This enables compilation of support for + outputting debugging information to the kernel log. The + output is controlled via the module parameter debug. diff --git a/batman-adv-devel/Makefile b/batman-adv-devel/Makefile index bb31dea..eba6a36 100644 --- a/batman-adv-devel/Makefile +++ b/batman-adv-devel/Makefile @@ -41,16 +41,18 @@ define KernelPackage/batman-adv-devel URL:=https://www.open-mesh.org/ MAINTAINER:=Simon Wunderlich sw@simonwunderlich.de SUBMENU:=Network Support - DEPENDS:=+KMOD_BATMAN_ADV_DEVEL_BLA:kmod-lib-crc16 +kmod-crypto-crc32c +kmod-lib-crc32c +kmod-cfg80211 + DEPENDS:=+kmod-crypto-crc32c +kmod-lib-crc32c +kmod-cfg80211 TITLE:=B.A.T.M.A.N. Adv devel FILES:=$(PKG_BUILD_DIR)/net/batman-adv/batman-adv.$(LINUX_KMOD_SUFFIX) AUTOLOAD:=$(call AutoProbe,batman-adv) endef
define KernelPackage/batman-adv-devel/description -B.A.T.M.A.N. advanced is a kernel module which allows to -build layer 2 mesh networks. This package builds the latest -development version. +B.A.T.M.A.N. (better approach to mobile ad-hoc networking) is +a routing protocol for multi-hop ad-hoc mesh networks. The +networks may be wired or wireless. See +https://www.open-mesh.org/ for more information and user space +tools. This package builds the latest development version. endef
define KernelPackage/batman-adv-devel/config