1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-13 19:03:52 +02:00

mwan3: use default routes from additional tables

Until now the additional tables listed in gobal 'rt_table_lookup' were
not considered for interfaces.
In order to be able to also use interface-defined routes from tables
other than main, consider also tables listed in 'rt_table_lookup'.
Update version to 2.10.10 as requested by maintainer.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2021-07-03 15:04:33 +01:00
parent f39a2bc32f
commit cb02b42007
No known key found for this signature in database
GPG Key ID: 5A8F39C31C3217CA
2 changed files with 10 additions and 2 deletions

View File

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=mwan3
PKG_VERSION:=2.10.9
PKG_VERSION:=2.10.10
PKG_RELEASE:=1
PKG_MAINTAINER:=Florian Eckert <fe@dev.tdt.de>, \
Aaron Goodman <aaronjg@alumni.stanford.edu>

View File

@ -408,9 +408,17 @@ mwan3_delete_iface_iptables()
}
mwan3_extra_tables_routes()
{
$IP route list table "$1"
}
mwan3_get_routes()
{
$IP route list table main | sed -ne "$MWAN3_ROUTE_LINE_EXP" | uniq
{
$IP route list table main
config_list_foreach "globals" "rt_table_lookup" mwan3_extra_tables_routes
} | sed -ne "$MWAN3_ROUTE_LINE_EXP" | sort -u
}
mwan3_create_iface_route()