summaryrefslogtreecommitdiffstats
path: root/sbin/ping/ping.8
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>1996-08-20 23:50:16 +0000
committerfenner <fenner@FreeBSD.org>1996-08-20 23:50:16 +0000
commit14a5500ac5c72141c158f0b8a6d0baf666709697 (patch)
tree1b81f92dac1957499f73d6de2d742827f4f7ebdc /sbin/ping/ping.8
parent24233d4f761a22dd6fb0d4e88cd74647604b8281 (diff)
downloadFreeBSD-src-14a5500ac5c72141c158f0b8a6d0baf666709697.zip
FreeBSD-src-14a5500ac5c72141c158f0b8a6d0baf666709697.tar.gz
Print out ICMP errors that are responses to our own packets by default.
Turn this behavior off using '-Q'. This makes '-v' useless other than as an ICMP-sniffer, which tcpdump is better at anyway. Print out another couple of ICMP messages, and fix the printing of the original packet (mostly byte order problems).
Diffstat (limited to 'sbin/ping/ping.8')
-rw-r--r--sbin/ping/ping.820
1 files changed, 19 insertions, 1 deletions
diff --git a/sbin/ping/ping.8 b/sbin/ping/ping.8
index e3de68a..b2a6bf7 100644
--- a/sbin/ping/ping.8
+++ b/sbin/ping/ping.8
@@ -41,7 +41,7 @@
packets to network hosts
.Sh SYNOPSIS
.Nm ping
-.Op Fl dfnqrvR
+.Op Fl dfnqrvRQ
.Op Fl c Ar count
.Op Fl i Ar wait
.Op Fl l Ar preload
@@ -115,6 +115,20 @@ For example,
.Dq Li \-p ff
will cause the sent packet to be filled with all
ones.
+.It Fl Q
+Somewhat quiet output.
+Don't display ICMP error messages that are in response to our query messages.
+Originally, the
+.Fl v
+flag was required to display such errors, but
+.Fl v
+displays all ICMP error messages. On a busy machine, this output can
+be overbearing. Without the
+.Fl Q
+flag,
+.Nm
+prints out any ICMP error messages caused by its own ECHO_REQUEST
+messages.
.It Fl q
Quiet output.
Nothing is displayed except the summary lines at startup time and
@@ -316,6 +330,10 @@ There's not much that that can be done about this, however.
.Pp
Flood pinging is not recommended in general, and flood pinging the
broadcast address should only be done under very controlled conditions.
+.Pp
+The
+.Fl v
+option is not worth much on busy hosts.
.Sh SEE ALSO
.Xr netstat 1 ,
.Xr ifconfig 8 ,
OpenPOWER on IntegriCloud