mwan3: disable DNS lookups for ping checks
authorFlorian Eckert <redacted>
Mon, 1 Mar 2021 11:22:38 +0000 (12:22 +0100)
committerFlorian Eckert <redacted>
Mon, 1 Mar 2021 11:23:43 +0000 (12:23 +0100)
By default, ping does a reverse DNS of the IP that you are pinging.
When you have a network issue (such as when a link has just gone down
and you haven't yet marked it down), this lookup can cause failures on
tests for links that are still good.

This option only works for iputils ping.
For busybox the option is not evaluated, but it is accepted without
throwing an error.

Fixes: #14968
Fixes: #14924
Signed-off-by: Florian Eckert <redacted>
Suggested-by: David Lang <redacted>
net/mwan3/Makefile
net/mwan3/files/usr/sbin/mwan3track

index 914844674fe932ae5f96f887676e3c2280ac3587..c8f551df2fba84f60968b9d6da920a81eb76147e 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mwan3
-PKG_VERSION:=2.10.6
+PKG_VERSION:=2.10.7
 PKG_RELEASE:=1
 PKG_MAINTAINER:=Florian Eckert <fe@dev.tdt.de>, \
                Aaron Goodman <aaronjg@alumni.stanford.edu>
index c6333198e9e1df4cb18f3bcf6daa89f5c87399da..fd81f68c3b68ff2253ce29bb163bd2dc8dfb15ce 100755 (executable)
@@ -242,12 +242,12 @@ main() {
                                case "$track_method" in
                                        ping)
                                                if [ $check_quality -eq 0 ]; then
-                                                       WRAP $PING -c $count -W $timeout -s $size -t $max_ttl -q $track_ip &> /dev/null &
+                                                       WRAP $PING -n -c $count -W $timeout -s $size -t $max_ttl -q $track_ip &> /dev/null &
                                                        TRACK_PID=$!
                                                        wait $TRACK_PID
                                                        result=$?
                                                else
-                                                       WRAP $PING -c $count -W $timeout -s $size -t $max_ttl -q $track_ip 2>/dev/null > $TRACK_OUTPUT &
+                                                       WRAP $PING -n -c $count -W $timeout -s $size -t $max_ttl -q $track_ip 2>/dev/null > $TRACK_OUTPUT &
                                                        TRACK_PID=$!
                                                        wait $TRACK_PID
                                                        ping_status=$?
git clone https://git.99rst.org/PROJECT