From ae1fecd92ff5ca8a458e9aea38a1a8e34ce18932 Mon Sep 17 00:00:00 2001 From: imp Date: Sun, 2 Mar 1997 06:32:42 +0000 Subject: 1) Fix usage to match convention and manual. Fix manual to match usage. 2) Must be root to run preload (OpenBSD ping.c 1.8) 3) Don't print all replies unless verbose and root (from idea in OpenBSD ping.c 1.10 and 1.11) to avoid leaking information available only to root. 4) Remove unused h: from option string to getopt. 5) Make the compiler happy with exit(0) (Lite-2?) Reviewed by: Dan Cross Good candidate for 2.2 and 2.1 (as are many of the 1.17 changes). --- sbin/ping/ping.8 | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'sbin/ping/ping.8') diff --git a/sbin/ping/ping.8 b/sbin/ping/ping.8 index c42272c..11199b5 100644 --- a/sbin/ping/ping.8 +++ b/sbin/ping/ping.8 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" @(#)ping.8 8.2 (Berkeley) 12/11/93 -.\" $Id: ping.8,v 1.7 1997/02/22 14:33:06 peter Exp $ +.\" $Id: ping.8,v 1.8 1997/03/01 20:19:18 wollman Exp $ .\" .Dd March 1, 1997 .Dt PING 8 @@ -42,15 +42,20 @@ packets to network hosts .Sh SYNOPSIS .Nm ping -.Op Fl adfnqrvLRQ +.Op Fl QRadfnqrv .Op Fl c Ar count .Op Fl i Ar wait -.Op Fl I Ar interface .Op Fl l Ar preload .Op Fl p Ar pattern .Op Fl s Ar packetsize -.Op Fl T Ar ttl +[ .Ar host +| +.Op Fl L +.Op Fl I Ar interface +.Op Fl T Ar ttl +.Ar mcast-group +] .Sh DESCRIPTION .Nm Ping uses the -- cgit v1.1