Go to file
Sven Eckelmann 419a866f03 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:33 +02:00
.github ci: change default packages 2023-05-16 09:31:44 +02:00
ahcpd ahcpd: use SHA256 hash and use HTTPS everywhere 2020-01-11 15:08:26 +01:00
alfred alfred: update to version 2023.1 2023-05-27 12:10:09 +02: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-10 08:39:41 +01:00
batctl batctl: Merge bugfixes from 2024.0 2024-02-02 23:03:42 +01:00
batman-adv batman-adv: Avoid infinite loop trying to resize local TT 2024-04-05 22:02:33 +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-06 21:13:32 +01:00
bird2 bird2: bump to version 2.13 2023-05-15 11:45:03 +02:00
bmx6 treewide: remove AUTORELEASE 2023-04-27 17:14:16 +02:00
bmx7 bmx7: bump PKG_RELEASE for libiwinfo ABI change 2023-01-22 20:12:42 +01:00
cjdns cjdns: patch of gyp imports support python3.10 (#974) 2023-05-21 03:33:54 +02:00
hnetd hnetd: update to latest commit 2020-12-17 06:28:05 +00:00
luci-app-bmx6 luci-app-bmx6: fixes error line in logread #578 2020-06-15 18:08:53 +02:00
luci-app-cjdns cjdns: support the supernodes feature (#884) 2022-06-20 21:31:44 +02:00
luci-app-olsrd2 luci-app-olsrd2: New Package for OLSR2 configuration and status visualisation' 2023-01-23 14:25:30 +01:00
mcproxy treewide: remove AUTORELEASE 2023-04-27 17:14:16 +02:00
mesh11sd treewide: remove AUTORELEASE 2023-04-27 17:14:16 +02:00
minimalist-pcproxy treewide: remove AUTORELEASE 2023-04-27 17:14:16 +02:00
naywatch treewide: remove AUTORELEASE 2023-04-27 17:14:16 +02:00
ndppd ndppd: remove uClibc++ support 2021-03-10 08:20:24 +01:00
nodogsplash nodogsplash: fix SPDX License Identifier and reordering 2022-03-03 08:55:53 +01:00
ohybridproxy ohybridproxy: revert to default log level 2021-11-19 07:06:50 +01:00
olsrd treewide: remove AUTORELEASE 2023-04-27 17:14:16 +02:00
oonf-dlep-proxy oonf-dlep-proxy: change to git version from 2022-08-25 2023-01-23 14:25:02 +01:00
oonf-dlep-radio oonf-dlep-radio: change to git version from 2022-08-25 2023-01-23 14:24:40 +01:00
oonf-init-scripts fix quoting of daemon name 2016-02-12 18:59:43 +01:00
oonf-olsrd2 oonf-olsrd2: update to current develop branch - fixes routing#899 2023-03-11 11:57:07 +01:00
opennds opennds: Release v9.10.0 2023-01-24 21:11:33 +01:00
pimbd treewide: remove AUTORELEASE 2023-04-27 17:14:16 +02:00
prince treewide: remove AUTORELEASE 2023-04-27 17:14:16 +02:00
quagga quagga: reorder things in Makefile 2022-02-26 15:37:24 +01:00
vis treewide: remove AUTORELEASE 2023-04-27 17:14:16 +02: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