summaryrefslogtreecommitdiff
path: root/sbin/ping
Commit message (Collapse)AuthorAgeFilesLines
* MFC: gack. That's the doc fixes merged, many utilities converted overJordan K. Hubbard1998-07-172-51/+81
| | | | | | | | to err(), and a few assorted buffer overflow fixes. Also nuked the now-useless LFS stuff. Notes: svn path=/stable/2.2/; revision=37729
* MFC: rev 1.37: use select(), SO_TIMESTAMP and fix IP options generation.Bill Fenner1998-05-251-81/+104
| | | | Notes: svn path=/stable/2.2/; revision=36379
* MFC: style nits & missing DPADDJordan K. Hubbard1998-03-062-2/+4
| | | | Notes: svn path=/stable/2.2/; revision=34097
* MFC: doc changes and new preload features.Jordan K. Hubbard1997-09-143-275/+367
| | | | Notes: svn path=/stable/2.2/; revision=29403
* Merge from -current:Bill Fenner1997-08-111-2/+2
| | | | | | | | | | | Add an ntohs() and format an IP address with inet_ntoa() when printing the details of a received ICMP packet. PR: bin/3766 Submitted by: denny1@home.com (Denton Gentry) Notes: svn path=/stable/2.2/; revision=28060
* MFC: make sure we count packets with errors (except ENOBUFS)Julian Elischer1997-08-071-4/+4
| | | | | | | | this makes -c work again for targets with no route to them. matches version 1.27 Notes: svn path=/stable/2.2/; revision=27946
* Merge from current -- handle the case where we're trying to ping anSean Eric Fagan1997-07-131-4/+37
| | | | | | | unreachable host better. Notes: svn path=/stable/2.2/; revision=27358
* YAMFCJulian Elischer1997-07-091-1/+3
| | | | | | | | don't count packets that we weren't allowed to send in our transmitted packets count. Notes: svn path=/stable/2.2/; revision=27303
* YAMFCJulian Elischer1997-07-091-6/+27
| | | | | | | | | remove recursinve malloc (via printf in signal handler) allow gracefull backof on ping -f on slow links (usleep 2 ticks if we get ENOBUFS) Notes: svn path=/stable/2.2/; revision=27300
* Backport changes from current:Warner Losh1997-03-031-3/+12
| | | | | | | | | | | | | 1) getopt returnes -1 and remove 'h:' that isn't needed 2) -l needs super user now to work 3) check to make sure that address returned from gethostbyname will fit in sin_addr 4) Fix minor strncpy bug. 5) Don't leak information about ICMP packets that aren't for you, unless superuser. Notes: svn path=/stable/2.2/; revision=23326
* YAMFC:Mike Pritchard1997-03-031-3/+3
| | | | | | | | Mostly xrefs sorts, but some general man page cleanup and mdoc cleanup. Notes: svn path=/stable/2.2/; revision=23315
* Merge multicast additions (ping.c rev 1.15, ping.8 rev 1.4) from current.Bill Fenner1997-02-242-16/+81
| | | | | | | Ok'd by: jkh Notes: svn path=/stable/2.2/; revision=23072
* Reviewed by: Gary jennejohnDaniel O'Callaghan1997-02-082-117/+47
| | | | | | | | | Submitted by: Bruce Murphy <packrat@iinet.net.au> Add '-a' audible flag to 2.2, and fix up earlier confusion. Notes: svn path=/stable/2.2/; revision=22420
* Back out the 'audible' changes which went to the wrong branch.Daniel O'Callaghan1997-02-082-47/+117
| | | | Notes: svn path=/stable/2.2/; revision=22416
* Submitted by: Bruce Murphy <packrat@iinet.net.au>Daniel O'Callaghan1997-02-061-2/+5
| | | | | | | Update man page to reflect '-a' audible flag. Notes: svn path=/stable/2.2/; revision=22360
* Reviewed by: Gary JennejohnDaniel O'Callaghan1997-02-061-2/+8
| | | | | | | | | | | | Submitted by: Bruce Murphy <packrat@iinet.net.au> Modified files: ping.c Add the '-a' audible flag to ping, useful for debugging ethernets without requiring the operator to jump up and look at the ping results every 15 seconds. Notes: svn path=/stable/2.2/; revision=22359
* YAMFCPoul-Henning Kamp1996-12-031-2/+2
| | | | Notes: svn path=/stable/2.2/; revision=20115
* YAMFCPoul-Henning Kamp1996-11-211-5/+6
| | | | Notes: svn path=/stable/2.2/; revision=19913
* Merge from -current.Poul-Henning Kamp1996-11-051-4/+4
| | | | Notes: svn path=/stable/2.2/; revision=19434
* delete doubled words, e.g.: "the the" -> "the"Wolfram Schneider1996-10-051-1/+2
| | | | Notes: svn path=/head/; revision=18718
* Print out ICMP errors that are responses to our own packets by default.Bill 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). Notes: svn path=/head/; revision=17724
* Drop setuid ASAP, to minimize code executed as root.Bill Fenner1996-08-091-3/+17
| | | | | | | Reviewed by: pst Notes: svn path=/head/; revision=17474
* Limit the risk of `buf' overrun in ping.c when printing hostnames.Peter Wemm1996-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) Notes: svn path=/head/; revision=17320
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-3/+3
| | | | Notes: svn path=/head/; revision=8871
* In past releases of FreeBSD, I have used the exit status of "ping" toDavid Greenman1994-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 Notes: svn path=/head/; revision=4862
* Reviewed by: jkhSean Eric Fagan1994-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. ;) Notes: svn path=/head/; revision=3792
* Changed output formatting to accurately represent the precision.David Greenman1994-08-051-2/+2
| | | | Notes: svn path=/head/; revision=1859
* Convert to our man installation style. Also fixed long-standing bugGarrett Wollman1994-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. Notes: svn path=/head/; revision=1855
* BSD 4.4 Lite sbin SourcesRodney W. Grimes1994-05-263-0/+1321
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin. Notes: svn path=/head/; revision=1558