mwan3: Bug fixes with nping usage
authorBrian J. Murrell <brian@interlinx.bc.ca>
Thu, 9 Jan 2025 13:57:07 +0000 (13:57 +0000)
committerFlorian Eckert <Eckert.Florian@googlemail.com>
Tue, 21 Jan 2025 09:33:42 +0000 (10:33 +0100)
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 <brian@interlinx.bc.ca>
net/mwan3/files/usr/sbin/mwan3track

index 478f4f0e35f9bbf95b9a6dfa7c165a02fa0de662..5e574d35f86e533752aa1f9271e1c6a74c55c937 100755 (executable)
@@ -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}')