Bug 183787 - ping6(8) has no -t <timeout> option, ping does have this
Summary: ping6(8) has no -t <timeout> option, ping does have this
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.0-BETA3
Hardware: Any Any
: Normal Affects Only Me
Assignee: Mark Linimon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-08 13:00 UTC by Kurt Jaeger
Modified: 2018-08-17 19:50 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Jaeger 2013-11-08 13:00:00 UTC
	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: 	-
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:12 UTC
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
Comment 2 Mike Appleby 2018-08-17 16:40:07 UTC
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