From 5691ff247f24d6784af8fd2f5b7ed17879dbcc08 Mon Sep 17 00:00:00 2001 From: Aaron Goodman Date: Sat, 12 Dec 2020 08:45:53 -0500 Subject: [PATCH] mwan3: fix linkdown routes not being added Signed-off-by: Aaron Goodman --- net/mwan3/files/lib/mwan3/common.sh | 3 +++ net/mwan3/files/lib/mwan3/mwan3.sh | 2 +- net/mwan3/files/usr/sbin/mwan3rtmon | 16 ++++++---------- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/net/mwan3/files/lib/mwan3/common.sh b/net/mwan3/files/lib/mwan3/common.sh index 3cb6f1a45b..bb55a466cb 100644 --- a/net/mwan3/files/lib/mwan3/common.sh +++ b/net/mwan3/files/lib/mwan3/common.sh @@ -129,6 +129,9 @@ mwan3_init() LOG debug "Max interface count is ${MWAN3_INTERFACE_MAX}" fi + # remove "linkdown", expiry and source based routing modifiers from route lines + MWAN3_ROUTE_LINE_EXP="s/linkdown //; s/expires [0-9]\+sec//;s/error [0-9]\+//; ${source_routing:+s/default\(.*\) from [^ ]*/default\1/;} p" + # mark mask constants bitcnt=$(mwan3_count_one_bits MMX_MASK) mmdefault=$(((1<