Go to file
Sven Eckelmann 30a3bc22c0 batman-adv: Avoid infinite loop trying to resize local TT
If the MTU of one of an attached interface becomes too small to transmit
the local translation table then it must be resized to fit inside all
fragments (when enabled) or a single packet.

But if the MTU becomes too low to transmit even the header + the VLAN
specific part then the resizing of the local TT will never succeed. This
can for example happen when the usable space is 110 bytes and 11 VLANs are
on top of batman-adv. In this case, at least 116 byte would be needed.
There will just be an endless spam of

   batman_adv: batadv0: Forced to purge local tt entries to fit new maximum fragment MTU (110)

in the log but the function will never finish. Problem here is that the
timeout will be halved all the time and will then stagnate at 0 and
therefore never be able to reduce the table even more.

There are other scenarios possible with a similar result. The number of
BATADV_TT_CLIENT_NOPURGE entries in the local TT can for example be too
high to fit inside a packet. Such a scenario can therefore happen also with
only a single VLAN + 7 non-purgable addresses - requiring at least 120
bytes.

While this should be handled proactively when:

* interface with too low MTU is added
* VLAN is added
* non-purgeable local mac is added
* MTU of an attached interface is reduced
* fragmentation setting gets disabled (which most likely requires dropping
  attached interfaces)

not all of these scenarios can be prevented because batman-adv is only
consuming events without the the possibility to prevent these actions
(non-purgable MAC address added, MTU of an attached interface is reduced).
It is therefore necessary to also make sure that the code is able to handle
also the situations when there were already incompatible system
configuration are present.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
2024-04-05 22:02:14 +02:00
.github CI: Sort build architectures in alphabetical order 2023-09-01 21:57:33 +02:00
ahcpd ahcpd: use SHA256 hash and use HTTPS everywhere 2020-01-11 15:08:26 +01:00
alfred treewide: remove AUTORELEASE 2024-02-03 08:56:13 +01:00
babel-pinger treewide: Basic cleanup and alignment to package guidelines (#383) 2018-07-12 16:50:47 +02:00
babeld babeld: remove AUTORELEASE 2023-02-13 09:52:07 +01:00
batctl batctl: Merge bugfixes from 2024.0 2024-02-03 09:00:09 +01:00
batman-adv batman-adv: Avoid infinite loop trying to resize local TT 2024-04-05 22:02:14 +02:00
batmand batmand: Refresh patches with quilt 2022-02-19 09:29:33 +01:00
bird1 bird1: fix compilation with GCC 10 2020-08-11 12:36:05 -07:00
bird1-openwrt bird1: fix "Form token mismatch" errors in luci-app-bird1-ipv{4,6} 2023-03-08 15:08:20 +01:00
bird2 bird2: bump to version 2.13.1 2023-06-30 01:17:39 +02:00
bmx7 bmx7: fix compilation with uClibc-ng 2020-10-05 16:01:17 -07:00
cjdns cjdns: support the supernodes feature (#884) 2022-06-21 00:00:28 +02:00
hnetd hnetd: update to latest commit 2020-12-17 06:28:05 +00:00
luci-app-cjdns cjdns: support the supernodes feature (#884) 2022-06-21 00:00:28 +02:00
mcproxy treewide: remove AUTORELEASE 2024-02-03 08:56:13 +01:00
mesh11sd mesh11sd: update to version 2.0.0 2023-08-09 12:48:49 +02:00
minimalist-pcproxy treewide: remove AUTORELEASE 2024-02-03 08:56:13 +01:00
naywatch treewide: remove AUTORELEASE 2024-02-03 08:56:13 +01:00
ndppd ndppd: remove uClibc++ support 2021-03-10 08:20:24 +01:00
nodogsplash nodogsplash: explicit file copy 2023-10-23 17:03:00 +02:00
ohybridproxy ohybridproxy: revert to default log level 2021-11-19 07:06:50 +01:00
olsrd treewide: remove AUTORELEASE 2024-02-03 08:56:13 +01:00
oonf-dlep-proxy oonf-dlep-proxy: fix compilation with Ninja 2021-06-13 10:38:01 +02:00
oonf-dlep-radio treewide: remove AUTORELEASE 2024-02-03 08:56:13 +01:00
oonf-init-scripts fix quoting of daemon name 2016-02-12 18:59:43 +01:00
oonf-olsrd2 oonf-olsrd2: set PKG_MIRROR_HASH and refresh patch 2021-06-13 10:30:17 +02:00
opennds opennds: update to version 10.1.3 2023-09-03 09:48:17 +02:00
pimbd treewide: remove AUTORELEASE 2024-02-03 08:56:13 +01:00
prince treewide: remove AUTORELEASE 2024-02-03 08:56:13 +01:00
quagga quagga: reorder things in Makefile 2022-02-26 15:37:24 +01:00
vis treewide: remove AUTORELEASE 2024-02-03 08:56:13 +01:00
MAINTAINERS MAINTAINERS: updated email addresses 2017-03-04 22:31:52 +01:00
README.md README: update content and use Markdown 2021-06-11 23:00:30 +02:00

README.md

OpenWrt Routing Feed

Description

This OpenWrt package feed contains community maintained routing packages.

Usage

This repository is intended to be layered on-top of an OpenWrt buildroot. If you do not have an OpenWrt buildroot installed, see the documentation at: OpenWrt Buildroot Installation on the OpenWrt support site.

This feed is enabled by default. To install all its package definitions, run:

./scripts/feeds update routing
./scripts/feeds install -a -p routing