summaryrefslogtreecommitdiffstats
path: root/sbin/ping6
Commit message (Collapse)AuthorAgeFilesLines
* Use nitems() from sys/param.h.araujo2016-04-191-1/+1
| | | | MFC after: 2 weeks.
* Use NULL instead of 0 for pointers.araujo2016-04-191-1/+1
| | | | | | malloc will return NULL if it cannot allocate memory. MFC after: 2 weeks.
* Create packages for atm, ccdconfig, devd, ipf, ipfw,gjb2016-02-091-0/+1
| | | | | | | | iscsi, natd, nandfs, pf, quotacheck, and routed. Add ping6 and rtsol to the runtime package. Sponsored by: The FreeBSD Foundation
* Use arc4random_buf(). While there, unifdef the code for HAVE_ARC4RANDOM.delphij2015-08-162-16/+2
| | | | MFC after: 2 weeks
* Add META_MODE support.sjg2015-06-131-0/+22
|\ | | | | | | | | | | | | | | | | | | | | 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
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-272-6/+14
| |\ | |/ |/|
| * Merge from head@274682sjg2014-11-193-341/+322
| |\
| * \ Merge head from 7/28sjg2014-08-191-2/+8
| |\ \
| * | | Updated dependenciessjg2014-05-161-1/+0
| | | |
| * | | Updated dependenciessjg2014-05-101-0/+2
| | | |
| * | | Merge from headsjg2013-09-052-9/+35
| |\ \ \
| * | | | Updated dependenciessjg2013-03-111-0/+1
| | | | |
| * | | | Updated dependenciessjg2013-02-161-2/+0
| | | | |
| | | | |
| | \ \ \
| *-. \ \ \ Sync from headsjg2012-11-041-2/+4
| |\ \ \ \ \
| * | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+23
| | |/ / / / | |/| | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | Add ability to not specify a zone identifier twice, when both source andae2014-12-161-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | destination addresses are specified. For example: # ping6 -S fe80::1%ix0 ff02::1 or # ping6 -S fe80::1 fe80::2%ix0 Obtained from: Yandex LLC Sponsored by: Yandex LLC
* | | | | | Convert sbin/ to LIBADDbapt2014-11-251-2/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | Reduce overlinking
* | | | | WARNS=3 and style fixes. No functionality change.hrs2014-10-202-103/+102
| | | | |
* | | | | Add -x waittime and -X timeout options for feature parity. These arehrs2014-10-172-9/+63
| | | | | | | | | | | | | | | | | | | | | | | | | equivalent to -W and -t options of ping(8). Different letters are used because both have already been used for another purposes in ping6(8).
* | | | | Fix a problem that reply packets are not received when -i T option is sethrs2014-09-202-232/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and (T < RTT). - Use select(2) for timeout instead of interval timer. Remove poll(2) support. - Use sigaction(2) instead of signal(3). - Exit in SIGINT handler when two signals are received and doing reverse DNS lookup as ping(8) does. - Remove redundant variables used for getaddrinfo(3). PR: 151023
* | | | | Revert changes in r269180. It could cause -c N option to enter anhrs2014-09-201-8/+2
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | infinite loop if no reply packet is received. PR: 151023
* | | | When interval is set to very small value with limited amount of packets,delphij2014-07-281-2/+8
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | ping6(8) would quit before the remote side gets a chance to respond. Solve this by resetting the itimer when we have reached the maximum packet number have reached, but let the other handling to continue. PR: bin/151023 Submitted by: tjmao at tjmao.net MFC after: 2 weeks
* | | Remove EOL whitespace.joel2013-05-081-1/+1
| | |
* | | Use FF02:0:0:0:0:2:FF00::/104 prefix for IPv6 Node Information Grouphrs2013-05-042-9/+35
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Address. Although KAME implementation used FF02:0:0:0:0:2::/96 based on older versions of draft-ietf-ipngwg-icmp-name-lookup, it has been changed in RFC 4620. The kernel always joins the /104-prefixed address, and additionally does /96-prefixed one only when net.inet6.icmp6.nodeinfo_oldmcprefix=1. The default value of the sysctl is 1. ping6(8) -N flag now uses /104-prefixed one. When this flag is specified twice, it uses /96-prefixed one instead. Reviewed by: ume Based on work by: Thomas Scheffler PR: conf/174957 MFC after: 2 weeks
* | Check the return error of set[ug]id. While this can never fail in theeadler2012-10-221-2/+4
|/ | | | | | | | | | | | | | 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
* Remove trailing whitespace per mdoc lint warningeadler2012-03-291-2/+2
| | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-101-2/+1
| | | | | | | error: variable 'origextlen' set but not used Approved by: dim MFC after: 3 days
* Spelling fixes for sbin/uqs2012-01-071-1/+1
|
* Add __unused. Ansi prototypes.charnier2010-12-191-66/+34
|
* Remove the advertising clause from UCB copyrighted files in sbin. Thisjoel2010-12-121-4/+0
| | | | | is in accordance with the information at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
* Fix typos and spelling mistakes.joel2010-08-061-1/+1
|
* Call free and freeaddrinfo before exiting.brucec2010-06-161-14/+35
| | | | | | | | PR: bin/144730 PR: bin/144974 Submitted by: Earl R. Lapus <earl.lapus at gmail.com> Approved by: rrs (mentor) MFC after: 1 month
* o Add do-not-fragment option support to ping6(8).maxim2010-04-202-6/+16
| | | | | | PR: bin/145759 Submitted by: pluknet MFC after: 1 month
* Implement -R support, similar to ping(8)'s -A.matteo2008-08-272-14/+34
| | | | | | | | | | ping(8)'s -a was mapped to -e, but -E was already taken in ping6 (old option) so rename -e to -r. Now: ping -a => ping6 -r ping -A => ping6 -R MFC after: 2 days
* Add -e to usage()matteo2008-08-271-1/+1
| | | | MFC after: 2 days
* Implement audible support similar to ping(8) -a option. Since -a was already ↵matteo2008-08-262-3/+16
| | | | | | | taken, I chose -e (no real argument for this) but I'm willing to change to a different character if needed/desired. PR: bin/123752 (inspired by) MFC after: 2 days
* Change the exit status for 0 and 2 to be the same as with ping(1)bz2008-05-272-4/+9
| | | | | | | | | | and be usable in scripts, etc. This also changes the semantics in case when we lose one of n packets. In that case, before we exited by SIG, now we exit with return(0). Submitted by: Gert Doering (gert space.net) MFC after: 10 days
* Decrease ping6's minimum allowed intervalsilby2008-02-251-3/+3
| | | | | | | | | | from .01 to .000001. Note that due to the architecture of ping6, you are still limited to kern.hz pings per second. MFC after: 2 weeks
* Add -o option to match ping(8)dd2007-11-202-5/+12
| | | | | Reviewed by: dwmalone, maxim MFC after: 2 weeks
* Remove the -DFAST_IPSEC from Makefiles again.bz2007-07-051-1/+1
| | | | | | | | | This was needed during the IPSEC->FAST_IPSEC->IPSEC transition period to not break the build after picking up netipsec header files. Now that the FAST_IPSEC kernel option is gone and the default is IPSEC again those defines are superfluous. Approved by: re (rwatson)
* Commit IPv6 support for FAST_IPSEC to the tree.gnn2007-07-012-3/+3
| | | | | | | | This commit includes all remaining changes for the time being including user space updates. Submitted by: bz Approved by: re
* Correct two issues in ping6:mtm2007-04-191-19/+68
| | | | | | | | | | | | | | | | | | | | 1. The static buffer that ping6(8) uses to hold the control data it gets from recvmsg(2) is too small in some cases. 2. When it prints the extra header information it doesn't do any checking to make sure the data it's printing is within the bounds of the supplied buffer. Fix this by: o Increasing the buffer to hold extra headers to 10240 bytes (the minimum according to RFC3542 sec. 20.1) and allocate it dynamically. o In verbose mode, specify a warning if any control data from recvmsg(2) was truncated because the buffer was too small. o When printing the extra headers make sure not to overrun the buffer boundaries. Reviewed By: mlaier PR: kern/99425 MFC After: 1 month
* These IPv6-only tools have no explicit dependency on the INET6 macro.yar2006-07-271-1/+1
| | | | Tested with: cmp(1)
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-102-15/+20
|
* Fixed the misplaced $FreeBSD$.ru2005-02-091-1/+1
|
* Added the EXIT STATUS section where appropriate.ru2005-01-171-1/+1
|
* Fix build on all (hopefully) 64 bit architectures.trhodes2005-01-091-1/+1
| | | | | Noticed by: tinderbox Tested on: panther
* Use static const char and bump WARNS.trhodes2005-01-082-2/+2
|
* re-enabled Rev 1.15 (lost during KAME merge at Rev 1.25, due to a KAME bug...)suz2004-07-261-1/+1
| | | | Obtained from: KAME
OpenPOWER on IntegriCloud