summaryrefslogtreecommitdiff
path: root/sbin/ping
Commit message (Collapse)AuthorAgeFilesLines
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+23
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-272-11/+5
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge from head@274682Simon J. Gerraty2014-11-192-44/+45
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+4
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Merge from headSimon J. Gerraty2014-05-081-1/+1
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265720
| * \ \ Merge headSimon J. Gerraty2014-04-282-37/+183
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | Sync from headSimon J. Gerraty2012-11-041-2/+3
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | Remove "capability mode sandbox enabled" messages.Brooks Davis2015-05-041-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These messages serve little purpose and break some consumers. PR: 199855 Differential Revision: https://reviews.freebsd.org/D2440 Reviewed by: rwatson Approved by: pjd MFC after: 1 week Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=282436
* | | | | | After r270929 RAW IP code assumes that all IP fields are in networkAndrey V. Elsukov2015-01-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | byte order. Fix ping(8) to pass an IP header with converted ip_off and ip_len fields, when IP_HDRINCL socket option used. Notes: svn path=/head/; revision=277562
* | | | | | Convert sbin/ to LIBADDBaptiste Daroussin2014-11-251-6/+3
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275030
* | | | | WARNS=3 and style fixes. No functionality change.Hiroki Sato2014-10-202-44/+45
| |_|_|/ |/| | | | | | | | | | | Notes: svn path=/head/; revision=273295
* | | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffWarner Losh2014-05-061-1/+1
| |_|/ |/| | | | | | | | | | | | | | | | | from the latter. Notes: svn path=/head/; revision=265420
* | | Fix statically-linked build (WITHOUT_DYNAMICROOT).Jilles Tjoelker2014-03-161-2/+2
| | | | | | | | | | | | Notes: svn path=/head/; revision=263240
* | | Update most userspace consumers of capability.h to use capsicum.h instead.Robert Watson2014-03-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | auditdistd is not updated as I will make the change upstream and then do a vendor import sometime in the next week or two. MFC after: 3 weeks Notes: svn path=/head/; revision=263234
* | | Protect ping(8) using Capsicum and Casper. This is protection against maliciousPawel Jakub Dawidek2014-02-042-37/+183
| |/ |/| | | | | | | | | | | | | | | | | | | network packets that we parse and not against local users trying to gain root access through ping's set-uid bit - this is handled by dropping privileges very early in ping. Submitted by: Mikhail <mp@lenta.ru> Notes: svn path=/head/; revision=261498
* | Check the return error of set[ug]id. While this can never fail in theEitan Adler2012-10-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | current version of FreeBSD, this isn't guarenteed by the API. Custom security modules, or future implementations of the setuid and setgid may fail. PR: bin/172289 PR: bin/172290 PR: bin/172291 Submittud by: Erik Cederstrand <erik@cederstrand.dk> Discussed by: freebsd-security Approved by: cperciva MFC after: 1 week Notes: svn path=/head/; revision=241852
* | Use timeclear() instead of home grown version.Xin LI2012-07-021-1/+1
|/ | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=237942
* Small style fixes:Ed Schouten2010-06-201-32/+16
| | | | | | | | | - ANSIfy prototypes. - Remove unneeded whitespace. - Add const keyword to function where it can be used. Notes: svn path=/head/; revision=209366
* - 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
* Commit IPv6 support for FAST_IPSEC to the tree.George V. Neville-Neil2007-07-011-1/+1
| | | | | | | | | | | This commit includes all remaining changes for the time being including user space updates. Submitted by: bz Approved by: re Notes: svn path=/head/; revision=171135
* Force the alignment of the chars arrays, as they are casted later toOlivier Houchard2007-05-211-1/+1
| | | | | | | | | structs. gcc 4.2 doesn't do it by default, and that results in unaligned access on arm. Notes: svn path=/head/; revision=169833
* Remove alpha left-overs.Ruslan Ermilov2006-08-221-3/+0
| | | | Notes: svn path=/head/; revision=161526
* Print packet loss figures with one decimal place. ping6 already doesDima Dorfman2006-08-141-4/+4
| | | | | | | | this, and OpenBSD and NetBSD pings do it too. This is primarily useful for comparing low levels of packet loss. Notes: svn path=/head/; revision=161273
* Add a new feature to ping(8) - possibility to specify maximumGleb Smirnoff2006-04-052-8/+35
| | | | | | | | | | | | | 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
* Sync usage() with SYNOPSIS.Ruslan Ermilov2005-12-011-4/+4
| | | | Notes: svn path=/head/; revision=152996
* -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-152-7/+117
| | | | | | | | | | | | 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
* o Store timestamp in network byte order.Maxim Konovalov2004-09-301-4/+15
| | | | | | | | | | | | o Remove an assumption sizeof(struct timeval) == 8 (this is not true on sparc64). Reviewed by: imp, -hackers Obtained from: NetBSD (rev. 1.75) MT5 after: 1 month Notes: svn path=/head/; revision=135957
* Avoid using void pointers in additive expressions.Stefan Farfeleder2004-08-141-1/+1
| | | | | | | PR: 56653 Notes: svn path=/head/; revision=133723
* Remove advertising clause from University of California Regent's license,Mark Murray2004-04-092-8/+0
| | | | | | | | | per letter dated July 22, 1999. Approved by: core, imp Notes: svn path=/head/; revision=128073
* Don't turn off the regular SIGINFO status information. The use ofIan Dowse2004-04-071-14/+0
| | | | | | | | | | | | | the NOKERNINFO flag only marginally de-clutters the output and has a number of unwanted side effects: o The kernel info might be what you want to see o ^T is left non-functional if ping is killed non-cleanly o "ping -q foo &" gets suspended on tty output Encouraged by: bde Notes: svn path=/head/; revision=128015
* style.Makefile(5):Johan Karlsson2004-02-231-1/+1
| | | | | | | Use WARNS?= instead of WARNS=. Notes: svn path=/head/; revision=126178
* Certain ICMP error replies cause ping to perform a reverse DNSIan Dowse2004-02-081-0/+6
| | | | | | | | | | | | | | lookup on an IP address from the packet (such as the IP that sent a TTL exceeded error). If the DNS lookup takes a long time, ^C will appear to be ineffective since the SIGINT handler just sets a flag and returns. Work around this by exiting immediately on receipt of a second SIGINT when DNS lookups are enabled. PR: bin/4696 MFC after: 1 week Notes: svn path=/head/; revision=125605
* mdoc(7): Use the new feature of the .In macro.Ruslan Ermilov2003-09-081-1/+1
| | | | Notes: svn path=/head/; revision=119893
* o Rename local variables, do not shadow global declarations.Maxim Konovalov2003-07-141-7/+7
| | | | Notes: svn path=/head/; revision=117550
* o Kill MINICMPLEN, there is ICMP_MINLEN already.Maxim Konovalov2003-07-141-7/+6
| | | | Notes: svn path=/head/; revision=117549
* o Be ready to get a reply with length up to IP_MAXPACKET.Maxim Konovalov2003-07-141-11/+18
| | | | | | | | | | | o Warn when recieved packet length is not equal to length of the packet we sent out. Idea from NetBSD. o Fit the dump of packet with wrong data to 80 columns (from NetBSD). Comments from: bde Notes: svn path=/head/; revision=117548
* 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
* Fix SIGINFO handling: do not print incorrect timing statisticsMaxim Konovalov2003-06-021-6/+6
| | | | | | | | | when the data for it is not available. Founded by: ping -s0 localhost; press ^T Notes: svn path=/head/; revision=115691
* Use __FBSDID() to quiet GCC 3.3 warnings.David E. O'Brien2003-05-031-4/+4
| | | | Notes: svn path=/head/; revision=114589
* o Skip timestamp part when checking payload.Maxim Konovalov2003-04-141-2/+8
| | | | | | | | PR: bin/50909 Submitted by: Barney Wolff <barney@lab.databus.com> Notes: svn path=/head/; revision=113463
* Deal with a case where the returned packed was smaller than theMatthew N. Dodd2003-04-071-12/+17
| | | | | | | | | transmitted packet (because the remote host stripped off our icmp_data). Submitted by: Maxim Konovalov <maxim@macomnet.ru> Notes: svn path=/head/; revision=113217
* Back out support for RFC3514.Matthew N. Dodd2003-04-022-17/+3
| | | | | | | RFC3514 poses an unacceptale risk to compliant systems. Notes: svn path=/head/; revision=112985
* IP_EVIL -> IP_EFMaxim Konovalov2003-04-021-2/+2
| | | | Notes: svn path=/head/; revision=112980