<feed xmlns='http://www.w3.org/2005/Atom'>
<title>routing/batman-adv/files/lib, branch master</title>
<subtitle>Mirror of routing feed</subtitle>
<id>https://git.openwrt.org/feed/routing/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/feed/routing/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/'/>
<updated>2026-03-18T12:50:06Z</updated>
<entry>
<title>batman-adv: improve batadv_vlan.sh for LuCI</title>
<updated>2026-03-18T12:50:06Z</updated>
<author>
<name>Bastiaan Stougie</name>
</author>
<published>2026-03-12T22:45:48Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=9777081ec07dafca4df8c88ff705ca03a60b3a8f'/>
<id>urn:sha1:9777081ec07dafca4df8c88ff705ca03a60b3a8f</id>
<content type='text'>
Apply ap_isolation default value '0' if option ap_isolation is
not present in the batadv_vlan interface configuration.

Default value '0' should be applied for the use case where
"option ap_isolation '1'" was present, is removed, and
'service network reload' is executed.

This is required for proper LuCI integration, because if an option
is set to the default value, LuCI removes the option.

Also take into account $INCLUDE_ONLY as in other /lib/netifd/proto
scripts and as recommended in the guide at:
https://openwrt.org/docs/guide-developer/network-scripting

Signed-off-by: Bastiaan Stougie &lt;wififreedom2026@protonmail.com&gt;
</content>
</entry>
<entry>
<title>batman-adv: update to version 2025.4</title>
<updated>2025-10-25T07:48:35Z</updated>
<author>
<name>Sven Eckelmann</name>
</author>
<published>2025-10-25T07:48:35Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=bbc3aab7d885ae90fbf745e0a0d23a5e5493e8f8'/>
<id>urn:sha1:bbc3aab7d885ae90fbf745e0a0d23a5e5493e8f8</id>
<content type='text'>
* support latest kernels (5.4 - 6.18)
* removed network coding (C.A.T.W.O.M.A.N.) support
* coding style cleanups and refactoring
* bugs squashed:
  - release references to inactive interfaces on netlink queries

Signed-off-by: Sven Eckelmann &lt;sven@narfation.org&gt;
</content>
</entry>
<entry>
<title>batman-adv: Provide teardown hook for batadv_vlan proto</title>
<updated>2024-02-05T08:04:42Z</updated>
<author>
<name>Sven Eckelmann</name>
</author>
<published>2024-02-05T07:52:23Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=9090aefa69e51564a396c469d753cad4a10bf3d9'/>
<id>urn:sha1:9090aefa69e51564a396c469d753cad4a10bf3d9</id>
<content type='text'>
The batadv_vlan proto doesn't need to do anything when it gets teared down.
But the scripts are still trying to call the teardown function of this
proto. This results in warnings like:

    daemon.notice netifd: batmesh1 (18940): ./batadv_vlan.sh: eval: line 37: proto_batadv_vlan_teardown: not found

Just providing a stub function avoids this log spam.

Fixes: #1044
Reported-by: Rani Hod &lt;rani.hod@gmail.com&gt;
Fixes: f5205d7d2434 ("batman-adv: upgrade package to latest release 2014.2.0")
Signed-off-by: Sven Eckelmann &lt;sven@narfation.org&gt;
</content>
</entry>
<entry>
<title>batman-adv: upgrade package to latest release 2020.3</title>
<updated>2020-08-25T18:09:34Z</updated>
<author>
<name>Sven Eckelmann</name>
</author>
<published>2020-08-25T18:07:05Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=c201b00922f0ee92b146bb18d15d8456fbff5ec7'/>
<id>urn:sha1:c201b00922f0ee92b146bb18d15d8456fbff5ec7</id>
<content type='text'>
* 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 &lt;sven@narfation.org&gt;
</content>
</entry>
<entry>
<title>batman-adv: Switch proto scripts to new prefixes</title>
<updated>2019-08-01T15:45:46Z</updated>
<author>
<name>Sven Eckelmann</name>
</author>
<published>2019-08-01T14:22:00Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=34b730e6aba5cbbe35c0facee59158de70706f17'/>
<id>urn:sha1:34b730e6aba5cbbe35c0facee59158de70706f17</id>
<content type='text'>
The '-m' option to select the mesh interface or vlan interfaces was
replaced with device type specific subcommand prefixes:

* meshif &lt;netdev&gt;
* vlan &lt;vdev&gt;
* meshif &lt;netdev&gt; vid &lt;vid&gt;
* hardif &lt;netdev&gt;

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 &lt;sven@narfation.org&gt;
</content>
</entry>
<entry>
<title>batman-adv: Don't try to set unconfigured ap_isolation for vlan</title>
<updated>2019-06-16T07:29:42Z</updated>
<author>
<name>Sven Eckelmann</name>
</author>
<published>2019-06-16T07:27:08Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=e87a25f4083976c8ab6bfacdf41c6a3cec05a91d'/>
<id>urn:sha1:e87a25f4083976c8ab6bfacdf41c6a3cec05a91d</id>
<content type='text'>
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 &lt;sven@narfation.org&gt;
</content>
</entry>
<entry>
<title>batman-adv: Add support for hardif settings</title>
<updated>2019-06-15T07:53:55Z</updated>
<author>
<name>Sven Eckelmann</name>
</author>
<published>2019-06-15T07:25:05Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=67875e2069c3f5d1688ca4040e98edc4bad547f5'/>
<id>urn:sha1:67875e2069c3f5d1688ca4040e98edc4bad547f5</id>
<content type='text'>
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 &lt;sven@narfation.org&gt;
</content>
</entry>
<entry>
<title>batman-adv: upgrade package to latest release 2019.2</title>
<updated>2019-05-23T18:21:54Z</updated>
<author>
<name>Sven Eckelmann</name>
</author>
<published>2019-05-23T18:13:21Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=1ff00eebae8bf7455203b6580f310d1a14e91b8b'/>
<id>urn:sha1:1ff00eebae8bf7455203b6580f310d1a14e91b8b</id>
<content type='text'>
* 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 &lt;sven@narfation.org&gt;
</content>
</entry>
<entry>
<title>batman-adv: Split batadv proto in meshif and hardif part</title>
<updated>2019-03-07T16:01:09Z</updated>
<author>
<name>Sven Eckelmann</name>
</author>
<published>2019-02-24T16:51:13Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=54af5a209e0a0a75b5eb712c0ca8056e66de02c0'/>
<id>urn:sha1:54af5a209e0a0a75b5eb712c0ca8056e66de02c0</id>
<content type='text'>
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 &amp; 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 &lt;sven@narfation.org&gt;
</content>
</entry>
<entry>
<title>batman-adv: use batctl for configuration of hop_penalty</title>
<updated>2019-02-22T21:49:56Z</updated>
<author>
<name>Sven Eckelmann</name>
</author>
<published>2019-02-22T20:47:40Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/routing/commit/?id=5882b6049dd44647f3b59f130bf0c5bd2a58e3ac'/>
<id>urn:sha1:5882b6049dd44647f3b59f130bf0c5bd2a58e3ac</id>
<content type='text'>
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 &lt;sven@narfation.org&gt;
</content>
</entry>
</feed>
