[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ping(8) misbehaviour ?



Quoting Denis A. Doroshenko (d_(_dot_)_doroshenko_(_at_)_omnitel_(_dot_)_net) from 16 May 2003:
> On Fri, May 16, 2003 at 09:12:56AM +0200, Paul de Weerd wrote:
> > I'm not sure what is in error (ping or it's manpage)
> 
> perhaps this is an intended behaviour, otherwise the last ping request
> would never be counted as received the reply... thus the manpage isn't
> accurate.

Pretty sure this is just a documentation mistake. Here is a patch that
it is perhaps a bit clearer, and that also makes ping6's man page
consistent.


-b

Index: ping.8
===================================================================
RCS file: /cvs/src/sbin/ping/ping.8,v
retrieving revision 1.26
diff -u -r1.26 ping.8
--- ping.8	11 Feb 2003 07:26:20 -0000	1.26
+++ ping.8	16 May 2003 08:37:22 -0000
@@ -81,7 +81,11 @@
 The options are as follows:
 .Bl -tag -width Ds
 .It Fl c Ar count
-Stop after sending
+Stop after receiving 
+.Ar count
+.Tn ECHO_REPLY
+packets.
+Note that this may mean sending more than
 .Ar count
 .Tn ECHO_REQUEST
 packets.


Index: ping6.8
===================================================================
RCS file: /cvs/src/sbin/ping6/ping6.8,v
retrieving revision 1.25
diff -u -r1.25 ping6.8
--- ping6.8	14 Nov 2002 02:57:27 -0000	1.25
+++ ping6.8	16 May 2003 08:37:34 -0000
@@ -134,10 +134,13 @@
 .It Fl b Ar bufsiz
 Set socket buffer size.
 .It Fl c Ar count
-Stop after sending
-.Pq and receiving
+Stop after receiving 
 .Ar count
-.Tn ECHO_RESPONSE
+.Tn ECHO_REPLY
+packets.
+Note that this may mean sending more than
+.Ar count
+.Tn ECHO_REQUEST
 packets.
 .It Fl d
 Set the



Visit your host, monkey.org