From: Brian J. Murrell Date: Thu, 9 Jan 2025 13:57:07 +0000 (+0000) Subject: mwan3: Bug fixes with nping usage X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c44289297814b5b040575d79ba29d6f4358b90b8;p=feed%2Fpackages.git mwan3: Bug fixes with nping usage The IP address family is a single dash option and one of 4 or 6, not tcp or udp. Signed-off-by: Brian J. Murrell --- diff --git a/net/mwan3/files/usr/sbin/mwan3track b/net/mwan3/files/usr/sbin/mwan3track index 478f4f0e35..5e574d35f8 100755 --- a/net/mwan3/files/usr/sbin/mwan3track +++ b/net/mwan3/files/usr/sbin/mwan3track @@ -322,7 +322,7 @@ main() { fi ;; nping-*) - WRAP nping -c $count $track_ip --${FAMILY#nping-} > $TRACK_OUTPUT & + WRAP nping -${FAMILY#ipv} -c $count $track_ip --${track_method#nping-} > $TRACK_OUTPUT & TRACK_PID=$! wait $TRACK_PID result=$(grep Lost $TRACK_OUTPUT | awk '{print $12}')