Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
MM_UNREACHABLE=""
MAX_SLEEP=$(((1<<31)-1))
+command -v ip6tables > /dev/null
+NO_IPV6=$?
+
LOG()
{
local facility=$1; shift
DEFAULT_LOWEST_METRIC=256
-command -v ip6tables > /dev/null
-NO_IPV6=$?
-
mwan3_push_update()
{
# helper function to build an update string to pass on to
. /usr/share/libubox/jshn.sh
. /lib/mwan3/common.sh
-MWAN3TRACK_STATUS_DIR="/var/run/mwan3track"
-
IPS="ipset"
IPT4="iptables -t mangle -w"
IPT6="ip6tables -t mangle -w"
}
report_connected_v6() {
+ [ $NO_IPV6 -ne 0 ] && return
local address
if [ -n "$($IPT6 -S mwan3_connected 2> /dev/null)" ]; then
}
report_policies_v6() {
+ [ $NO_IPV6 -ne 0 ] && return
local policy
for policy in $($IPT6 -S | awk '{print $2}' | grep mwan3_policy_ | sort -u); do