ping -n -c 1 -t 1 -q <someip> provides a good way to test connectivity with the exit code ping6 is using the -t option for something else (Generate ICMPv6 Node Information supported query types query) Fix: TODO: provide a timeout patch for ping6 How-To-Repeat: -
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
I think that this PR can be closed. A timeout option (-X) was added to ping6(8) in base r273211. That change is in -current and stable/11, and was merged into stable/10 in base r285820. The patch was submitted as part of bug #151023. Here is an example shell session from a 12.0-ALPHA1 snapshot: $ uname -a FreeBSD fbsd-current 12.0-ALPHA1 FreeBSD 12.0-ALPHA1 #0 r337557: Fri Aug 10 02:02:48 UTC 2018 root@releng3.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 $ time ping6 -X 1 fe80::1%lo0 PING6(56=40+8+8 bytes) fe80::1%lo0 --> fe80::1%lo0 16 bytes from fe80::1%lo0, icmp_seq=0 hlim=64 time=0.140 ms --- fe80::1%lo0 ping6 statistics --- 1 packets transmitted, 1 packets received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.140/0.140/0.140/0.000 ms real 0m1.025s user 0m0.001s sys 0m0.004s