From c44289297814b5b040575d79ba29d6f4358b90b8 Mon Sep 17 00:00:00 2001 From: "Brian J. Murrell" Date: Thu, 9 Jan 2025 13:57:07 +0000 Subject: [PATCH] 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 --- net/mwan3/files/usr/sbin/mwan3track | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}') -- 2.30.2