itojun
d1d8f0f73c
do not pass NULL to errx().
...
From: Chris Joness <cjones@rupert.honors.montana.edu>
1999-07-04 15:24:35 +00:00
itojun
4cd93a1723
do not bark even if ipsec policy setting for "route flushing 127.0.0.1"
...
ping socket is not successful. it usually means that the kernel is
not ipsec ready, and in that case this should be just okay.
1999-07-04 13:27:03 +00:00
kleink
19b055d5a7
0 -> STDIN_FILENO
1999-07-03 15:09:51 +00:00
itojun
909714f4a5
IPsec support (specify policy on ping - quite useful to test
...
if IPsec is working or not) is added.
1999-07-02 04:53:23 +00:00
sommerfeld
6c3d02c865
Support for ping -a: beep when packet received.
...
Slightly tweaked from version submitted by andrew@untraceable.net in PR7815
1999-06-19 19:15:22 +00:00
tron
bb880545b1
Fix a typo.
1999-06-12 17:17:16 +00:00
mjl
144e7d3345
Remove duplicate paragraph. Closes PR/7498 by Geoff C. Wing.
1999-04-29 21:53:08 +00:00
mjl
6299fb0813
Correct nokerninfo tty flag being left set in most error cases.
...
Closes PR/7388 by Dave Huang <khym@bga.com>.
1999-04-17 01:17:15 +00:00
sommerfe
79b9ef47d2
Don't bother doing stddev calculation when n==1, since that results in
...
a computation of 0.0/0.0.
On IEEE systems you get a NaN from this; non-IEEE systems probably
give you a SIGFPE.
1999-03-08 01:16:20 +00:00
mycroft
f6590b22cd
Clean up SYNOPSIS formatting.
1999-03-07 11:02:05 +00:00
jwise
bce8ed1c8e
Once more around the hickory shrub. Faster and simpler stddev calculation from
...
Bill Studenmund.
1999-02-25 19:07:15 +00:00
jwise
1b92119539
Fix calculation of standard deviation. From Brian C. Grayson <bgrayson@orac.ece.utexas.edu>
1999-02-25 03:35:34 +00:00
jwise
12711b010a
Add code from Daniel Hagerty <hag@ai.mit.edu> to print standard deviation
...
when printing out final statistics line.
Closes PR bin/6198
1999-02-24 19:31:38 +00:00
jtk
f7514cc95c
typo: should be loose source routing
1998-12-22 16:36:41 +00:00
msaitoh
91395a8690
delete .TP (because this document is written in "mdoc" format)
1998-11-17 21:02:38 +00:00
christos
7f1ed758a3
char -> unsigned char
1998-11-06 16:52:42 +00:00
enami
de113f1843
Fix usage string;
...
- option to specify maxwait is -w, not -i.
- add missing -h host and -Q option.
1998-10-26 04:45:35 +00:00
christos
99c0436391
Update to the 980911 version from ftp.rhyolite.com:/src/ping.tar.Z
1998-10-25 13:51:31 +00:00
frueauf
27993f82cc
Add getuid() check if -f is set, fixes pr 6222 by Uwe Arndt.
1998-10-01 19:39:33 +00:00
tv
8f7ed4aa27
Restrict -l to the superuser as suggested in PR 3973 from <soren@t.dk>.
...
Also distinguish "-f" from "-i 0.x" in the superuser restriction messages.
1998-09-14 17:08:55 +00:00
tv
b6b7269733
Nuke the termios stuff from the 1997/03/11 import, which prevents ping
...
from being run in the background of most shells without redirecting stdin
from /dev/null. (AFAICT, the termios stuff is useless and does not
interfere with SIGINFO handling.)
1998-09-14 12:52:47 +00:00
mycroft
519d858510
__AUDIT__ cleanup.
1998-07-28 19:22:54 +00:00
fair
3d7afc6d03
fix bad .Xr references
1998-04-29 09:49:10 +00:00
fair
dc026e0515
Change occurrences of "UNIX" to .Ux or .At as appropriate.
1998-04-28 06:00:51 +00:00
kleink
6913d5696a
Take into consideration that icmp_nextmtu is stored in network byte order;
...
from Leonard Samuelson in PR bin/5230.
1998-04-16 09:02:56 +00:00
perry
34a98169f0
macroize BSD, NetBSD, FreeBSD and misc cleanup
1998-02-06 05:54:12 +00:00
christos
764e7492a8
PR/4615: David Jones: Ping usage does not show -o option.
1997-12-01 08:41:48 +00:00
christos
89e0b4d7e4
Make the "failed to clear cached route" a warning only if verbose is set.
...
This always happens when lo0 is not configured and confuses new users.
1997-11-30 22:33:30 +00:00
fair
994948ff88
Fix man page confusion about the -R option, per PR#4246
...
Add some paragraph breaks for readability,
and a traceroute(8) reference.
1997-11-06 10:07:33 +00:00
cgd
1c9d9590f6
lint
1997-11-05 21:29:29 +00:00
hubertf
d616097cd1
PR misc/4206: internal -> interval;
...
Reported by William O Ferry.
1997-10-03 00:55:28 +00:00
lukem
e464b5f452
* cleanup .Nm
...
* deprecate register
* cleanup for WARNS=1
* bzero(), bcopy() -> memset(), memmove()
* prefix hex numbers with '0x'
1997-09-15 07:21:09 +00:00
mikel
24af6eac72
convert to host byte order when printing stats of received ICMP
...
packets other than echo-replies; from Dave Huang in PR bin/3876
1997-07-17 06:39:46 +00:00
kleink
0505614d4e
Fix formatting directives; from SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp>
...
in PR misc/3795.
1997-06-26 20:23:44 +00:00
christos
01bf6a0596
Update from Vernon Schryver, fixing the kluge to flush the route cache.
1997-06-01 19:34:46 +00:00
mikel
54d02ddfb0
flag is -f, not --f; from Saitoh Masanobu in PR misc/3469.
1997-04-10 06:16:06 +00:00
augustss
525bca97ff
Make ping obey the -n flag in places.
1997-04-02 09:22:01 +00:00
christos
794ba0d372
Don't allow < 1 sec ping interval to regular users.
1997-03-24 03:34:26 +00:00
christos
9c21b4d7f9
Try adding `o' option again; connection died.
1997-03-19 12:44:08 +00:00
christos
3696ff03af
Take care of alignment problems on the alpha: From John Birell, via cgd.
1997-03-19 12:36:03 +00:00
christos
217f82764f
PR/3329: From David Jones: Add F_ONCE
1997-03-18 19:06:51 +00:00
christos
9ee27f02a1
Fix PR/3327: rcvd_tbl index was assumed to be in host order, creating
...
incorrect dup reports. From enami tsugutomo
1997-03-13 16:19:10 +00:00
christos
fe4e4bb7a5
- remove -g from Makefile
...
- fix setsockopt and recvfrom casts.
1997-03-11 21:53:41 +00:00
christos
203dfd3486
- Use err, warn, errx
...
- Don't use floor, because we would need libm
- Add maxwait option from old ping
- Add a centralized gethost() to get hostnames
- Fix PR/1014 and PR/2017; (adds -D, -T options, and -I and -t for unicast)
- Document exit status
1997-03-11 21:22:49 +00:00
cgd
b292e6cefd
make ping(8) print out statistics when given a SIGINFO.
1996-11-06 20:42:14 +00:00
ghudson
8eedfc4a5d
The maxwait option was accidentally placed in the "options for
...
multicast pings" section of the description.
1995-12-31 04:55:35 +00:00
pk
db3185152f
Fix typo (from Mark Weaver PR#1556);
1995-10-02 19:47:11 +00:00
cgd
705e61651e
fix a couple of bugs pointed out by John Birrell, though fix some
...
differently he did. (1) don't assume that the timeval in
the packet is correctly aligned, (2) don't compare beyond the end
of the packet, (3) minor cast for printf happiness.
1995-08-11 22:37:58 +00:00
ghudson
34f94f0c70
Add and document options -w (to specify a maximum wait timeout, useful
...
for testing network interfaces) and -S (to specify a source address
on a machine with multiple interfaces).
1995-07-27 23:49:07 +00:00
jtc
68ad3878b1
sys/signal.h -> signal.h
1995-06-26 23:26:23 +00:00
mycroft
27093b3eba
Fill in sin_len.
1995-06-03 23:23:52 +00:00
mycroft
6d4cde278d
Use inet_aton(), not inet_addr().
1995-05-21 01:18:03 +00:00
cgd
dfb2f56868
if no packets were received, exit with status 1. this should be
...
documented somewhere. As suggested by Rens Troost.
1995-04-22 15:27:08 +00:00
mycroft
ffe9a4ccf0
Update to use timer{add,sub}().
1995-03-21 13:55:23 +00:00
cgd
0114e805ce
convert to new RCS Id conventions; reduce my headache
1995-03-18 14:54:19 +00:00
cgd
06e2955ff1
specify man pages the new way.
1994-12-22 10:44:04 +00:00
cgd
c9117f53b5
-Wall cleanups from Jim Jegers
1994-12-18 00:15:01 +00:00
glass
3ec23014c1
misc/596: fix from James Jegers for missing host and add cross ref to spray.
1994-11-29 20:41:06 +00:00
cgd
568f59eb00
will need <sys/queue.h>
1994-10-31 04:34:56 +00:00
mycroft
4922d725cf
Remove some more uses of obsolete functions.
1994-09-23 23:48:10 +00:00
mycroft
ea7b5d4ec6
Eliminate uses of some obsolete functions.
1994-09-23 14:26:58 +00:00
mycroft
3c78ef3311
Merge with 4.4-Lite version.
1994-09-23 01:38:45 +00:00
hpeyerl
93855d31e9
Another multicast patch.
...
>From LBL and Steve Mccanne
1993-12-15 04:46:13 +00:00
mycroft
262cbdab66
Use doubles to rather than longs to avoid tsum overflowing so quickly.
1993-09-23 23:03:55 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
mycroft
dfb9caab49
Add RCS indentifiers.
1993-08-01 07:32:48 +00:00
mycroft
1fb80e5b34
Add RCS identifiers.
1993-08-01 05:26:30 +00:00
cgd
beb4553725
have ping do the right thing, wrt microseconds.
...
actually, now it'll overflow its counters sooner than before, and everything
should *really* be converted to doubles and/or "unsigned long long"s
1993-07-22 09:49:57 +00:00
cgd
06be60083d
changed "Id" to "Header" for rcsids
1993-03-23 00:22:59 +00:00
cgd
346aa5dd48
added rcs ids to all files
1993-03-22 08:04:00 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00