summaryrefslogtreecommitdiffstats
path: root/sbin/ping
Commit message (Collapse)AuthorAgeFilesLines
...
* Reviewed by: Gary Jennejohn <gj@freebsd.org>danny1997-02-082-3/+12
| | | | | | | Submitted by: Bruce Murphy <packrat@iinet.net.au> Add '-a' audible flag, so terminal will beep upon receipt of a reply packet. Useful for debugging ethernet runs, among other things.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Add multicast options -I (source interface), -T (set ttl), -L (no loopback).fenner1996-12-152-15/+80
| | | | | | | They were all lowercase in the original, but our ping already uses -i and -l so I made them all uppercase. Obtained from: Multicast release 3.5
* Cleaned up recent SIGINFO changes.bde1996-12-101-24/+19
| | | | | | | | | | | | Simplified average calculations. This also fixes potential overflow errors and minor rounding inconsistencies (always round to nearest now). Don't lose more SIGINFOs than necessary. Print \r at the start of the status message. This clears the dots that are sometimes left by ping -f. Reviewed by: sef
* Fix typo in last patch. empty!=emtpypst1996-12-081-1/+1
|
* Change how SIGINFO is handled -- set a flag (of sig_atomic_t), and checksef1996-12-071-15/+34
| | | | | | | that flag on every iteration of the loop. This avoids calling fprintf inside a signal handler, which is always somewhat icky. Reviewed by: bde
* Fix math in SIGINFO printer.fenner1996-12-021-2/+2
|
* Move the terminal handling code to a later location; this allowssef1996-11-191-5/+6
| | | | | | | the signal handlers to be set up; it also means that a failed name lookup won't mess up the nokerninfo setting of the tty. Reviewed by: pst, nate
* Fixed backgrounding of ping, which was broken by the ^T changes in rev.1.3.bde1996-11-041-4/+4
|
* delete doubled words, e.g.: "the the" -> "the"wosch1996-10-051-1/+2
|
* Print out ICMP errors that are responses to our own packets by default.fenner1996-08-202-20/+69
| | | | | | | | 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).
* Drop setuid ASAP, to minimize code executed as root.fenner1996-08-091-3/+17
| | | | Reviewed by: pst
* Limit the risk of `buf' overrun in ping.c when printing hostnames.peter1996-07-281-2/+3
| | | | | | | | | Note, this is not really a security risk, because the buffer in question is a static variable in the data segment and not on the stack, and hence cannot subert the flow of execution in any way. About the worst case was that if you pinged a long hostname, ping could coredump. Pointed out on: bugtraq (listserv@netspace.org)
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* In past releases of FreeBSD, I have used the exit status of "ping" todg1994-11-291-1/+4
| | | | | | | | | | | | determine whether a connection to a given machine is up or not. In FreeBSD 2.0 (and therefore, I assume, BSD 4.4) the exit code of ping is always zero, even if no packets were received. I would like to propose the following change to /usr/src/sbin/ping/ping.c to restore this useful behaviour: Submitted by: Denis Fortin
* Reviewed by: jkhsef1994-10-221-1/+41
| | | | | | Print out summary information on receipt of SIGINFO; also, stop the kernel printing of information and restore it on exit. Now, it needs an option to be quiet. ;)
* Changed output formatting to accurately represent the precision.dg1994-08-051-2/+2
|
* Convert to our man installation style. Also fixed long-standing bugwollman1994-08-051-1/+1
| | | | | in `fastboot'/`fasthalt' in which the interpreter would hang around after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-263-0/+1321
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud