1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-16 20:33:58 +02:00

mwan3: use mwan3_push_update function for mwan3_delete_iface_iptables

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2022-02-25 16:17:39 +01:00
parent b5c675392d
commit 502779755a

View File

@ -380,7 +380,7 @@ mwan3_create_iface_iptables()
mwan3_delete_iface_iptables()
{
local IPT
local IPT update
config_get family "$1" family ipv4
if [ "$family" = "ipv4" ]; then
@ -392,12 +392,18 @@ mwan3_delete_iface_iptables()
IPT="$IPT6"
fi
$IPT -D mwan3_ifaces_in \
-m mark --mark 0x0/$MMX_MASK \
-j "mwan3_iface_in_$1" &> /dev/null
$IPT -F "mwan3_iface_in_$1" &> /dev/null
$IPT -X "mwan3_iface_in_$1" &> /dev/null
update="*mangle"
mwan3_push_update -D mwan3_ifaces_in \
-m mark --mark 0x0/$MMX_MASK \
-j "mwan3_iface_in_$1" &> /dev/null
mwan3_push_update -F "mwan3_iface_in_$1" &> /dev/null
mwan3_push_update -X "mwan3_iface_in_$1" &> /dev/null
mwan3_push_update COMMIT
mwan3_push_update ""
error=$(echo "$update" | $IPTR 2>&1) || LOG error "delete_iface_iptables_${1}: $error"
}
mwan3_extra_tables_routes()