summaryrefslogtreecommitdiff
path: root/batman-adv/files/lib
Commit message (Collapse)AuthorAgeFilesLines
* batman-adv: upgrade package to latest release 2020.3Sven Eckelmann2020-08-251-0/+4
| | | | | | | | | | | | | * support latest kernels (4.4 - 5.9) * coding style cleanups and refactoring * introduce a configurable per interface hop penalty * bugs squashed: - avoid uninitialized chaddr when handling DHCP - fix own OGMv2 check in aggregation receive handling - fix "NOHZ: local_softirq_pending 08" warnings caused by BLA Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batman-adv: Switch proto scripts to new prefixesSven Eckelmann2019-08-013-25/+25
| | | | | | | | | | | | | | | The '-m' option to select the mesh interface or vlan interfaces was replaced with device type specific subcommand prefixes: * meshif <netdev> * vlan <vdev> * meshif <netdev> vid <vid> * hardif <netdev> This change should also be made in the proto script to allow batctl to drop the support of '-m' completely in the future. Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batman-adv: Don't try to set unconfigured ap_isolation for vlanSven Eckelmann2019-06-161-2/+2
| | | | | | | | The ap_isolation setting only supports boolean values. So setting an empty string as ap_isolation is not supported by batctl. Fixes: f5205d7d2434 ("batman-adv: upgrade package to latest release 2014.2.0") Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batman-adv: Add support for hardif settingsSven Eckelmann2019-06-151-0/+9
| | | | | | | | | | | | | | | | | B.A.T.M.A.N. V support additional settings which are hardif specific. The batadv_hardif proto has to expose them to allow automatic configuration. The default configuration would be: config interface 'bat0_hardif_eth0' option proto 'batadv_hardif' option master 'bat0' option ifname 'eth0' option mtu '1536' option 'elp_interval' 500 # string like '1mbit' is accepted instead of kbit for override option 'throughput_override' '0' Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batman-adv: upgrade package to latest release 2019.2Sven Eckelmann2019-05-231-0/+4
| | | | | | | | | | | | | | * support latest kernels (3.16 - 5.2) * coding style cleanups and refactoring * implement multicast-to-unicast support for multiple targets * deprecate sysfs support and make it optional * refresh DAT entry timeouts on incoming ARP Replies * bugs squashed: - fix multicast tt/tvlv worker locking - drop roam tvlv handler when unregistering mesh interface Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batman-adv: Split batadv proto in meshif and hardif partSven Eckelmann2019-03-073-84/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | batman-adv allows to configure three different objects: * batadv hardif - network interface used by batadv meshif to transport the batman-adv packets - its master interface is set to the batadv meshif * batadv (meshif/softif) - virtual interface that emulates a normal 802.3 interface on top - encapsulates traffic and forwards it via the batadv hardifs * batadv vlan - potential VLAN ID on top of batadv meshif - allows filtering of traffic from specific VIDs While batadv vlan objects were already represented as an own proto "batadv_vlan", the batadv meshif could never be fully configured using /etc/config/network. Instead, parts of its configuration were stored in /etc/config/batman_adv and some in the interfaces with the "batadv" proto. To increase the confusion, the "batadv" proto wasn't used to define the batadv meshif but to identify batadv (slave) hardifs. The batman-adv meshifs were also never created directly but only when a hardif was configured. The actual modification of the configuration settings was then applied using a hotplug script hack. The batadv meshif network interface could therefore only be created when an hardif was available and not manipulated with ifup/ifdown. Also `/etc/init.d/network reload` didn't modify the batadv meshif interface configuration correctly. The "batadv" is now renamed to "batadv_hardif" and a new "batadv" proto is used to configure the main (meshif) network interface with all its configuration. A simple network configuration with WiFi & ethernet interfaces and static IP on top of bat0 would look like: # batadv meshif bat0 config interface 'bat0' option proto 'batadv' option routing_algo 'BATMAN_IV' option aggregated_ogms 1 option ap_isolation 0 option bonding 0 option fragmentation 1 #option gw_bandwidth '10000/2000' option gw_mode 'off' #option gw_sel_class 20 option log_level 0 option orig_interval 1000 option bridge_loop_avoidance 1 option distributed_arp_table 1 option multicast_mode 1 option network_coding 0 option hop_penalty 30 option isolation_mark '0x00000000/0x00000000' # add *single* wifi-iface with network bat0_hardif_wlan as hardif to bat0 config interface 'bat0_hardif_wlan' option mtu '1536' option proto 'batadv_hardif' option master 'bat0' # option ifname is filled out by the wifi-iface # add eth0 as hardif to bat0 config interface 'bat0_hardif_eth0' option proto 'batadv_hardif' option master 'bat0' option ifname 'eth0' option mtu '1536' # configure IP on bat0 config interface 'bat0_lan' option ifname 'bat0' option proto 'static' option ipaddr '192.168.1.1' option netmask '255.255.255.0' option ip6assign '60' Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batman-adv: use batctl for configuration of hop_penaltySven Eckelmann2019-02-221-2/+1
| | | | | | | | | hop_penalty is the last remaining setting which is directly writing to sysfs instead of using a implementation (sysfs vs. netlink) abstraction layer. batctl now provides a wrapper function that allows the script to directly use it to take care of communicating with the driver. Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batman-adv: use batctl for configuration of gw_modeSven Eckelmann2019-02-221-3/+20
| | | | | | | | | | | | The batctl tool should be used for modifying settings in the batman-adv driver to keep the scripts consistent and allow to use the correct way of communicating with the kernel (sysfs vs. netlink). The gw_mode, gw_bandwidth and gw_sel_class options are all handled by the same gw_mode command in batctl and thus have to be combined depending on the "gw_mode" value. Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batman-adv: use batctl for configurationSven Eckelmann2019-01-273-19/+20
| | | | | | | | | | | | The batctl binary is currently optional for batman-adv installations. But new configuration settings will only be exposed via generic netlink. The batctl tool will therefore be required to modify them. batctl must therefore no longer depend on batman-adv but batman-adv must depend on batctl. Some already implemented settings are already moved to batctl. Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batman-adv: Simplify installation of filesSven Eckelmann2018-07-172-0/+0
| | | | | | | It is not necessary to install each file manually to the target path. A simple recursive copy is enough. Signed-off-by: Sven Eckelmann <sven@narfation.org>
* batman-adv: Remove non-existing setting "vis_mode"Sven Eckelmann2017-01-301-3/+1
| | | | | | | There is no vis_mode in the batman-adv kernel module since batman-adv 2014.0.0. So don't expose such a setting in uci. Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
* batman-adv: Fix "aggregated_ogms" settingSven Eckelmann2017-01-301-1/+1
| | | | | | | | | | The new setting for aggregated_ogms was read from the correct config key. But the setting was applied to the wrong file. Also the value to set was not read from the correct variable. Reported-by: Edward Beech <initialed85@gmail.com> Fixes: 2d654c0af194 ("batman-adv: upgrade package to latest release 2012.0.0") Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
* batman-adv: Allow to select routing algorithmSven Eckelmann2016-04-211-2/+6
| | | | | | | | | | The network config section for proto batadv now allows to select the routing algorithm via the option routing_algo. This allows to chose between BATMAN_IV and BATMAN_V when BATMAN_V is released. This option is only useful when a new batman-adv device is created and not when only a device is added to an already existing batman-adv device. Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
* batman-adv: upgrade package to latest release 2014.2.0Marek Lindner2014-06-072-0/+31
| | | | | | | * remove batctl tool into separate package * support for vlan options added Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
* batman-adv: add support for the isolation_mark optionMarek Lindner2014-04-061-1/+4
| | | | | | | | | | | With the introduction of the Extended Isolation component[1] a new option is required by batman-adv: the isolation_mark. This patch adds support for it in the configuration file [1] http://www.open-mesh.org/projects/batman-adv/wiki/Extended-isolation Signed-off-by: Antonio Quartulli <antonio@open-mesh.com> signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
* batman-adv: upgrade package to latest release 2013.2.0Marek Lindner2013-05-081-4/+6
| | | | Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
* move batman-adv files to subdirectoryJo-Philipp Wich2013-04-182-0/+76