aboutsummaryrefslogtreecommitdiff
path: root/sbin/ping/ping.8
Commit message (Collapse)AuthorAgeFilesLines
* - improve readabilityDaniel Gerzo2009-01-111-8/+12
| | | | | | | | Reviewed by: trhodes, keramida MFC after: 3 days Notes: svn path=/head/; revision=187067
* - rename the RETURN VALUES section to EXIT STATUSDaniel Gerzo2009-01-071-1/+1
| | | | | | | | | | - not bumping a date as this is not a real content change Approved by: ru MFC after: 3 days Notes: svn path=/head/; revision=186843
* Add a new feature to ping(8) - possibility to specify maximumGleb Smirnoff2006-04-051-1/+7
| | | | | | | | | | | | | wait time for a packet. This allows to: - Count number of packets received before and after specified time. - Shorten time of execution of 'ping -c 1' scripts. Submitted by: Lytochkin Boris <lytboris gmail.com> Notes: svn path=/head/; revision=157535
* -mdoc sweep.Ruslan Ermilov2005-11-181-3/+4
| | | | Notes: svn path=/head/; revision=152568
* Implement a new feature for ping(8) - sweeping pings. In a sweepingGleb Smirnoff2005-08-151-1/+24
| | | | | | | | | | | | ping ICMP payload of packets being sent is increased with given step. Sweeping pings are useful for testing problematic channels, MTU issues or traffic policing functions in networks. PR: bin/82625 Submitted by: Chris Hellberg <chellberg juniper.net> (with some cleanups) Notes: svn path=/head/; revision=149086
* Remove advertising clause from University of California Regent's license,Mark Murray2004-04-091-4/+0
| | | | | | | | | per letter dated July 22, 1999. Approved by: core, imp Notes: svn path=/head/; revision=128073
* mdoc(7): Use the new feature of the .In macro.Ruslan Ermilov2003-09-081-1/+1
| | | | Notes: svn path=/head/; revision=119893
* The current recommended default time to live (TTL) for the InternetRuslan Ermilov2003-06-251-3/+3
| | | | | | | | | | Protocol (IP) is 64 [RFC791, RFC1122]. Prodded by: Igor Kucherenko <kivvy@sunbay.com> Obtained from: http://www.iana.org/assignments/ip-parameters Notes: svn path=/head/; revision=116806
* Back out support for RFC3514.Matthew N. Dodd2003-04-021-4/+2
| | | | | | | RFC3514 poses an unacceptale risk to compliant systems. Notes: svn path=/head/; revision=112985
* Implement support for RFC 3514 (The Security Flag in the IPv4 Header).Matthew N. Dodd2003-04-011-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (See: ftp://ftp.rfc-editor.org/in-notes/rfc3514.txt) This fulfills the host requirements for userland support by way of the setsockopt() IP_EVIL_INTENT message. There are three sysctl tunables provided to govern system behavior. net.inet.ip.rfc3514: Enables support for rfc3514. As this is an Informational RFC and support is not yet widespread this option is disabled by default. net.inet.ip.hear_no_evil If set the host will discard all received evil packets. net.inet.ip.speak_no_evil If set the host will discard all transmitted evil packets. The IP statistics counter 'ips_evil' (available via 'netstat') provides information on the number of 'evil' packets recieved. For reference, the '-E' option to 'ping' has been provided to demonstrate and test the implementation. Notes: svn path=/head/; revision=112929
* Fix and sync SYNOPSIS and usage().Ruslan Ermilov2003-03-111-12/+32
| | | | | | | Prodded by: bde Notes: svn path=/head/; revision=112110
* Spelling, grammar fixes.Matthew N. Dodd2003-03-051-3/+3
| | | | Notes: svn path=/head/; revision=111930
* Remove documentation of old '-M' flag.Matthew N. Dodd2003-03-051-15/+5
| | | | | | | Re-order. Notes: svn path=/head/; revision=111927
* Support ICMP_TSTAMP/ICMP_TSTAMPREPLY.Matthew N. Dodd2003-03-021-0/+10
| | | | | | | This alters the meaning of the '-M' flag. Notes: svn path=/head/; revision=111765
* Sort options.Ruslan Ermilov2003-02-231-37/+43
| | | | Notes: svn path=/head/; revision=111287
* Send ICMP_MASKREQ packets when the '-M' option is specified.Matthew N. Dodd2003-01-281-4/+9
| | | | Notes: svn path=/head/; revision=110009
* Better error handling for -s.Maxim Konovalov2003-01-231-1/+1
| | | | | | | | | | | | | | | | | Submitted by: bde Do not constantify maximum payload size. It is 65467 with -R (record route), and 65507 without it. Reviewed by: silence on -net Proposed by: bde I am going to MFC rev.1.77 - 1.81 ping.c and rev.1.39 and 1.40 ping.8: MFC after: 6 months Notes: svn path=/head/; revision=109734
* Implement -D (do not fragment) and -z (TOS) options.Maxim Konovalov2003-01-231-1/+6
| | | | | | | | | PR: bin/29164 Reviewed by: silence of -net Obtained from: OpenBSD Notes: svn path=/head/; revision=109731
* english(4) police.Jens Schweikhardt2002-12-271-1/+1
| | | | Notes: svn path=/head/; revision=108317
* Spelling: s/then/than/ where appropriate.Ruslan Ermilov2002-12-241-1/+1
| | | | Notes: svn path=/head/; revision=108260
* Add an -o option to exit after receiving one reply. This can be usedDima Dorfman2002-10-021-2/+4
| | | | | | | | | | | to test whether a link is live. PR: 38573 Submitted by: David Taylor <davidt@yadt.co.uk> Obtained from: NetBSD Notes: svn path=/head/; revision=104339
* The .Nm utilityPhilippe Charnier2002-07-061-7/+9
| | | | Notes: svn path=/head/; revision=99501
* Document ping(8) reaction to SIGINFO.Maxim Konovalov2002-02-071-1/+13
| | | | | | | | | | PR: doc/33639 Reviewed by: ru Approved by: ru MFC after: 1 week Notes: svn path=/head/; revision=90351
* The -A option (beep when packets are dropped) didn't work quiteIan Dowse2001-09-251-3/+6
| | | | | | | | | | | | | | | | right; after a single packet was dropped it beeped after every transmission. Change its implementation to only output a bell when there is an increase in the maximum value of the number of packets that were sent but not yet received. This has the benefit that even for very long round-trip times, ping -A will do roughly the right thing after a few inital false-positives. Reviewed by: ru Notes: svn path=/head/; revision=83940
* mdoc(7) police:Ruslan Ermilov2001-08-071-16/+17
| | | | | | | | | | Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block. Notes: svn path=/head/; revision=81251
* Remove whitespace at EOL.Dima Dorfman2001-07-151-7/+7
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79530
* Add a -A option to ping which beeps when packets are lost.Poul-Henning Kamp2001-05-241-1/+7
| | | | | | | | PR: 11818 Submitted by: Marc Evans marc@destek.net Notes: svn path=/head/; revision=77119
* Add new option -m which allows the user to set IP TTL.Ruslan Ermilov2001-03-091-0/+6
| | | | Notes: svn path=/head/; revision=74029
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-181-1/+1
| | | | Notes: svn path=/head/; revision=70152
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-2/+2
| | | | Notes: svn path=/head/; revision=68960
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-2/+4
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57668
* Brucify:Bill Fumerola2000-01-201-0/+1
| | | | | | | | | | | | add an upper limit to -t match the types of return values and the variables they are stuffed in make the man page and usage() a little more consistantly ugly less obfuscation. Submitted by: adrian, billf Notes: svn path=/head/; revision=56342
* Add '-t X' which times out after pinging for X seconds.Bill Fumerola2000-01-141-0/+3
| | | | | | | Submitted by: adrian Notes: svn path=/head/; revision=55996
* libipsec and IPsec related apps. (and some KAME related man pages)Yoshinobu Inoue2000-01-061-0/+8
| | | | | | | | Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project Notes: svn path=/head/; revision=55505
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Finish documenting -S src-addr change.Warner Losh1999-02-191-1/+8
| | | | | | | | | | Forgotten by: me Forgotten for: Far Too Long Gently Reminded by: Ruslan Ermilov <ru@ucb.crimea.ua> Submitted by: Ruslan Ermilov <ru@ucb.crimea.ua> Notes: svn path=/head/; revision=44138
* Allow PINGing from any address on multihomed hostsWarner Losh1999-01-061-1/+2
| | | | | | | | | | | | In the words of the submitter: "The patch below allows to ping from any address on the multihomed host. The man page is also updated, the text was cutted from traceroute(8)." Submitted by: Ruslan Ermilov PR: 6832 Notes: svn path=/head/; revision=42337
* Fixed non-use of .Nm and hard line breaks in rev.1.16-1.17:Bruce Evans1998-11-291-7/+12
| | | | Notes: svn path=/head/; revision=41409
* Updated manual page. Removed description of (now defunct) -c restrictions.Matthew Dillon1998-08-271-3/+2
| | | | Notes: svn path=/head/; revision=38588
* (well tested at BEST): -i option can now take FP values (e.g. -i 0.1),Matthew Dillon1998-08-261-6/+8
| | | | | | | | | | extremely useful for networking testing. Other options secured from user-level D.O.S. attacks. -f, -s now root-only. -i wait times < 1.0 root-only. -c count limited to 100 and defaults to 16 when ping run by non-root user. Notes: svn path=/head/; revision=38549
* Correct use of .Nm. Remove unused #includes. Use warn(). cosmetic in usage()Philippe Charnier1998-07-151-10/+16
| | | | | | | | string. Translate 0 sec 1000000 usec to 1 sec 0 usec. Notes: svn path=/head/; revision=37671
* A fairly rare possible buffer overflow:Warner Losh1998-04-011-1/+4
| | | | | | | | Theo fixed this and tqbf reported it Obtained from: OpenBSD Notes: svn path=/head/; revision=34976
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.Philippe Charnier1998-03-191-2/+4
| | | | Notes: svn path=/head/; revision=34673
* Calculate and print out the standard deviation of the round trip times.Garrett Wollman1997-07-181-15/+20
| | | | | | | | | | This isn't necessarily the best statistic, but it is by far the easiest to calculate. Update the man page to be more explicit about precisely which statistics are printed out. Revert some of jmg's bogus man page changes from rev 1.11. Notes: svn path=/head/; revision=27508
* fix man page to use marcos instead of parens, quotes and bracesJohn-Mark Gurney1997-03-021-60/+79
| | | | | | | plus other minor fixes Notes: svn path=/head/; revision=23304
* 1) Minor nits in the usage message from bde. I took out the hard tabs andWarner Losh1997-03-021-1/+2
| | | | | | | | | | | | used spaces to align the second line under the program name. 2) Cache uid after call to setuid(getuid()) so we don't waste a system call for each packet with a call to getuid for the -v case. 3) Update manual to reflect new restriction on -l from last delta. Suggested by: bde, Bill Fenner Notes: svn path=/head/; revision=23295
* 1) Fix usage to match convention and manual. Fix manual to match usage.Warner Losh1997-03-021-4/+9
| | | | | | | | | | | | | | | | 2) Must be root to run preload (OpenBSD ping.c 1.8) 3) Don't print all replies unless verbose and root (from idea in OpenBSD ping.c 1.10 and 1.11) to avoid leaking information available only to root. 4) Remove unused h: from option string to getopt. 5) Make the compiler happy with exit(0) (Lite-2?) Reviewed by: Dan Cross <tenser@spitfire.ecsel.psu.edu> Good candidate for 2.2 and 2.1 (as are many of the 1.17 changes). Notes: svn path=/head/; revision=23251
* Make ping -Wall clean (except for one warning).Garrett Wollman1997-03-011-13/+35
| | | | | | | | | | | | Do a better job of argument parsing. Don't permit ping -f to a multicast address (very antisocial). Don't permit -L, -I, -T options with unicast addresses. Ensure that we ask for only AF_INET addresses (should close PR#2584). Return <sysexits.h> error codes for failures. Document this. Fix man page to identify the author and put sections in correct order. Notes: svn path=/head/; revision=23247
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22990