Skip to content
Snippets Groups Projects
Commit 930cd6e4 authored by Antonio Quartulli's avatar Antonio Quartulli
Browse files

batman-adv: fix soft-interface MTU computation


The current MTU computation always returns a value
smaller than 1500bytes even if the real interfaces
have an MTU large enough to compensate the batman-adv
overhead.

Fix the computation by properly returning the highest
admitted value.

Introduced by a19d3d85
("batman-adv: limit local translation table max size")

Reported-by: default avatarRussell Senior <russell@personaltelco.net>
Signed-off-by: default avatarAntonio Quartulli <antonio@meshcoding.com>
Signed-off-by: default avatarMarek Lindner <mareklindner@neomailbox.ch>
parent 0fd5d57b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment