ozaki-r
2a4e5e0f61
Introduce rump.ping6
...
We use ping6 frequently in ATF tests so let's have rump-ified one.
2015-08-06 14:45:54 +00:00
kefren
0c4c07ab30
Add options -X for deadline and -x for reply maxwait (flag names matching
...
FreeBSD). Unline FreeBSD, currently -x doesn't count late packets to statistics.
After discussion with, and help from ozaki-r@
Should fix PR/49896
2015-05-15 08:02:39 +00:00
christos
8e83ba138f
Add the once -o option like ping
2015-04-24 00:42:56 +00:00
ozaki-r
ba4f0be24c
Remove out-of-date comments
2014-09-17 01:00:41 +00:00
christos
6b3fd816dd
PR/49206: ping6 dies with SIGINT even when it just fails to ping
...
When reusing the same handler for SIGALRM, make don't pretend you
got SIGINT.
2014-09-16 21:29:12 +00:00
matt
4e8f1b53e9
Rework to be avoid a conditional assignment which results in:
...
sbin/ping6/ping6.c:1879:8: error: 'cbit.skip' may be used uninitialized in this function [-Werror=maybe-uninitialized]
cur += ntohs(cbit.skip) * 32;
2014-08-22 20:54:29 +00:00
christos
dc30329cc3
avoit type punning
2013-10-19 01:09:16 +00:00
msaitoh
5699fb2d89
Accept "-s 0"
2012-09-10 04:32:24 +00:00
drochner
8fd6dadaf8
include <netipsec/ipsec.h> rather than <netinet6/ipsec.h> from userland
...
where possible, for consistency and compatibility to FreeBSD
(exception: KAME specific statistics gathering in netstat(1) and systat(1))
2012-01-04 16:09:40 +00:00
drochner
3712f81ced
-consistently use "char *" for the compiled policy buffer in the
...
ipsec_*_policy() functions, as it was documented and used by clients
-remove "ipsec_policy_t" which was undocumented and only present
in the KAME version of the ipsec.h header
-misc cleanup of historical artefacts, and to remove unnecessary
differences between KAME ans FAST_IPSEC
2012-01-04 15:55:35 +00:00
plunky
2b8aaed8cd
NULL does not need a cast, here
2011-09-16 16:13:16 +00:00
christos
9bf741a041
put back the byte swapping code, and remove the double byte swapping.
2011-08-31 22:27:26 +00:00
riz
e14f406cd9
Remove erroneous seq=ntohs(seq) introduced in rev. 1.74, which caused
...
icmp_seq numbers to increment by 256 instead of 1 on LE platforms.
2011-08-31 22:05:57 +00:00
joerg
3fedada239
static + __dead + G/C pathmtu
2011-08-27 18:43:24 +00:00
christos
82f7376491
fix gcc warnings and eliminate duplicate code.
2011-08-14 12:09:35 +00:00
ahoka
592d1c274a
Avoid NaN when calculating std-dev, which fixes a crash on VAX.
2010-09-20 11:49:48 +00:00
lukem
002fe60580
fix sign-compare issues
2009-04-11 07:40:37 +00:00
dholland
866d811ed8
Fix reversed test in connection with combining -i and -l. If some
...
packets have already sent because of the preload count handling, we
shouldn't start off by sending another one right away. The reversed
test causes ping6 to wait one interval before sending anything at all
if you don't use -l. PR bin/39732.
2008-10-13 13:47:35 +00:00
elad
30d1b3f220
PR/30226: Nino Dehne: ping6(8) and ping(8) are inconsistent in the output
...
of round-trip times.
okay rpaulo@
2006-09-23 16:18:04 +00:00
rpaulo
25ff2bc882
Replace the way we calculate the standard deviation with the unbiased form
...
for non-related samples. There are several websites that explain why we
should use this form instead of the normal formula to compute the std. dev.
(Wikipedia is one of them).
Also, ping(8) (where this "new" formula came from) already does it this way
so, I'm trying to score some extra points by making both utilities behave
the same way.
Thanks to wrtstuden@ for the initial clarification.
2006-05-18 02:14:22 +00:00
rpaulo
84f73e685c
Remove support support for RFC 2292.
2006-05-07 16:00:18 +00:00
rpaulo
848d0be7cc
len should be socklen_t, not size_t. Spotted by
...
Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>.
2006-05-05 12:49:23 +00:00
rpaulo
de8db47547
Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292).
...
* RFC 3542 isn't binary compatible with RFC 2292.
* RFC 2292 support is on by default but can be disabled.
* update ping6, telnet and traceroute6 to the new API.
From the KAME project (www.kame.net).
Reviewed by core.
2006-05-05 00:03:21 +00:00
elad
21831d5e1d
Fix an off-by-one found by Coverity, CID 1456.
...
I haven't looked, but I suggest security-officer@ looks into it to see if
this may be exploited passively?
2006-03-17 02:31:03 +00:00
he
2e34fff7c9
Add an initialization to appease -Wuninitialized.
...
Marked with XXXGCC for sun2 (found while building for it).
Reviewed by lukem.
2005-06-07 09:10:33 +00:00
lukem
658ed3362c
appease gcc -Wuninitialized
2005-06-02 01:35:57 +00:00
xtraeme
39707ce809
Kill __P(), use ANSI function declarations; WARNS=3.
2005-02-09 14:09:46 +00:00
dsl
91d3fe12d9
Add (unsigned char) cast to ctype function
2004-10-29 19:15:20 +00:00
itojun
fd9a3b1704
correct mistake in usage(). Chris Pinnock
2004-06-09 01:59:20 +00:00
kleink
faed9caa49
There's no point in bringing PRNG output to network byteorder prior to
...
transmission.
2004-05-13 20:27:38 +00:00
itojun
56ae6a5d4c
do not disclose endian. henning@openbsd
2004-04-22 01:39:20 +00:00
agc
276d62f603
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22308, verified by myself.
2003-08-07 10:04:22 +00:00
itojun
c9ecfbe3a4
fix packet loss rate computation
2003-07-25 06:01:44 +00:00
cjep
100bffb736
Fix typo. Noted by Sean Boudreau on tech-net.
2003-06-06 14:18:40 +00:00
perry
1fbcf39738
do proper rounded packet loss calculations.
...
From Robert Elz in PR #20885
XXX This should be sent back to KAME
2003-03-27 16:15:44 +00:00
itojun
7955954132
correct the use of sizeof() on memset(). sync w/kame
2002-12-05 02:07:03 +00:00
itojun
4606602797
use strlcpy. sync w/kame
2002-11-16 14:06:56 +00:00
itojun
3772e08b03
be more picky about numeric arg parsing. sync w/kame
2002-10-25 02:20:37 +00:00
itojun
5d481d0136
reduce diff w/ kame
2002-09-23 12:52:30 +00:00
mycroft
c7d63f201b
Touch up error/warning messages.
2002-09-21 18:33:51 +00:00
mycroft
75cf9dce87
select() -> poll()
2002-09-21 18:24:40 +00:00
itojun
4df4d0a437
ansi pedantic. sync w/kame
2002-09-08 14:31:41 +00:00
itojun
16e84a7542
clarify comment when nreceived > ntransmitted. from deraadt
2002-05-31 01:10:53 +00:00
itojun
08f5f94674
typo, from openbsd
2002-05-30 21:32:18 +00:00
thorpej
313148a4db
Fix Missing %s in format string.
2002-05-30 17:02:17 +00:00
itojun
7f0c96b84b
KNF. remove unused variable "signo". from deraadt
2002-05-26 13:21:01 +00:00
itojun
6cad7e9bef
s/IPSec/IPsec/
2002-05-26 12:56:57 +00:00
itojun
d265331969
sync with kame.
...
- use bind(2) to select source.
- KNF.
- -g option to specify intermediate gateway.
2002-05-26 05:46:24 +00:00
itojun
3d6f24bae3
no \n to warnx(3). From: Mike Pechkin <mpech@prosoft.org.lv>
2002-03-11 02:06:02 +00:00
darrenr
53b688a6ee
should be using htons() to convert from a host byte order into a network
...
byte order, not ntohs().
2002-01-09 12:30:15 +00:00