Commit Graph

74 Commits

Author SHA1 Message Date
itojun 62e82d7e0c sync with latest libipsec and kernel. 2000-01-31 14:24:23 +00:00
mycroft 3809e348e0 Fix data comparison to not overrun array bounds. 2000-01-20 01:04:41 +00:00
itojun 8c46b24007 correct typo. s/LDADD/DPADD/ 1999-07-12 19:00:52 +00:00
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