From 7ea690ea3c289d83511e44587f472793c269bd32 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 30 May 2018 12:40:23 +0200 Subject: [PATCH 1/2] net/mwan3: fix update on connected ip networks If an interface is not tracked by mwan3 or enabled and this interface is setup by netifd, then the connected ipset is not update by mwan3. To fix this also call connected ipset update code even if the interface is not tracked or enabled by mwan3. Signed-off-by: Florian Eckert --- net/mwan3/files/etc/hotplug.d/iface/15-mwan3 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 b/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 index f94b40093..a02f88baa 100644 --- a/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 +++ b/net/mwan3/files/etc/hotplug.d/iface/15-mwan3 @@ -16,15 +16,15 @@ config_load mwan3 config_get_bool enabled globals 'enabled' '0' [ ${enabled} -gt 0 ] || exit 0 -config_get enabled $INTERFACE enabled 0 -config_get initial_state $INTERFACE initial_state "online" -[ "$enabled" == "1" ] || exit 0 - mwan3_lock mwan3_init mwan3_set_connected_iptables mwan3_unlock +config_get enabled $INTERFACE enabled 0 +config_get initial_state $INTERFACE initial_state "online" +[ "$enabled" == "1" ] || exit 0 + if [ "$ACTION" == "ifup" ]; then config_get family $INTERFACE family ipv4 if [ "$family" = "ipv4" ]; then From acf7278fb8dc6e9b953924f79207aa5d45fe7ce4 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 30 May 2018 12:57:49 +0200 Subject: [PATCH 2/2] net/mwan3: update version to 2.6.17 Signed-off-by: Florian Eckert --- net/mwan3/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mwan3/Makefile b/net/mwan3/Makefile index 8d55479eb..83e514be7 100644 --- a/net/mwan3/Makefile +++ b/net/mwan3/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mwan3 -PKG_VERSION:=2.6.16 +PKG_VERSION:=2.6.17 PKG_RELEASE:=1 PKG_MAINTAINER:=Florian Eckert PKG_LICENSE:=GPLv2