The NetBSD Project

CVS log for src/sbin/ping/ping.c

[BACK] Up to [cvs.NetBSD.org] / src / sbin / ping

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.122 / (download) - annotate - [select for diffs], Thu Dec 1 14:42:12 2022 UTC (16 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.121: +3 -3 lines
Diff to previous 1.121 (colored) to selected 1.101.2.4 (colored)

fix sign.

Revision 1.121 / (download) - annotate - [select for diffs], Thu Dec 1 14:40:53 2022 UTC (16 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.120: +3 -3 lines
Diff to previous 1.120 (colored) to selected 1.101.2.4 (colored)

Add a sanity check for the ip header length (from FreeBSD)

Revision 1.120 / (download) - annotate - [select for diffs], Sun May 22 11:27:33 2022 UTC (22 months, 3 weeks ago) by andvar
Branch: MAIN
Changes since 1.119: +3 -3 lines
Diff to previous 1.119 (colored) to selected 1.101.2.4 (colored)

fix various small typos, mainly in comments.

Revision 1.119 / (download) - annotate - [select for diffs], Thu Apr 7 19:33:37 2022 UTC (2 years ago) by andvar
Branch: MAIN
Changes since 1.118: +3 -3 lines
Diff to previous 1.118 (colored) to selected 1.101.2.4 (colored)

fix various typos in comments.

Revision 1.118 / (download) - annotate - [select for diffs], Fri Jun 11 18:47:56 2021 UTC (2 years, 10 months ago) by rillig
Branch: MAIN
Changes since 1.117: +4 -4 lines
Diff to previous 1.117 (colored) to selected 1.101.2.4 (colored)

ping, ping6: fix comment about ID field

Since ping.c 1.76 and ping6.c 1.58 from 2004-04-22, the ID field
contains random bits instead of a process ID.

Revision 1.117 / (download) - annotate - [select for diffs], Mon Oct 2 10:08:11 2017 UTC (6 years, 6 months ago) by maya
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.116: +3 -20 lines
Diff to previous 1.116 (colored) to selected 1.101.2.4 (colored)

un-ifdef sgi. NFC

Revision 1.102.2.2 / (download) - annotate - [select for diffs], Tue Jul 11 21:16:07 2017 UTC (6 years, 9 months ago) by snj
Branch: netbsd-6
Changes since 1.102.2.1: +34 -10 lines
Diff to previous 1.102.2.1 (colored) to branchpoint 1.102 (colored) next main 1.103 (colored) to selected 1.101.2.4 (colored)

Pull up following revision(s) (requested by dholland in ticket #1424):
	sbin/ping/ping.c: revision 1.113 via patch
PR bin/36997 Zafer Aydogan: ping doesn't validate numeric inputs enough.
Check for values between INT_MAX and LONG_MAX (if they're different)
when using strtol to get an int. This applies to the -c and -l options;
the other uses were already checked.
Also limit the inter-packet interval given with -i to values that
don't cause integer overflow calling poll() with milliseconds.
Really large intervals (the number is read as floating point) can
produce positive poll() values but negative integers when converted to
struct timespec; this produces behavior akin to using -l at first and
could be construed as a local DoS vulnerability.

Revision 1.102.2.1.2.1 / (download) - annotate - [select for diffs], Tue Jul 11 21:15:43 2017 UTC (6 years, 9 months ago) by snj
Branch: netbsd-6-1
Changes since 1.102.2.1: +34 -10 lines
Diff to previous 1.102.2.1 (colored) next main 1.102.2.2 (colored) to selected 1.101.2.4 (colored)

Pull up following revision(s) (requested by dholland in ticket #1424):
	sbin/ping/ping.c: revision 1.113 via patch
PR bin/36997 Zafer Aydogan: ping doesn't validate numeric inputs enough.
Check for values between INT_MAX and LONG_MAX (if they're different)
when using strtol to get an int. This applies to the -c and -l options;
the other uses were already checked.
Also limit the inter-packet interval given with -i to values that
don't cause integer overflow calling poll() with milliseconds.
Really large intervals (the number is read as floating point) can
produce positive poll() values but negative integers when converted to
struct timespec; this produces behavior akin to using -l at first and
could be construed as a local DoS vulnerability.

Revision 1.102.8.1 / (download) - annotate - [select for diffs], Tue Jul 11 21:15:23 2017 UTC (6 years, 9 months ago) by snj
Branch: netbsd-6-0
Changes since 1.102: +34 -10 lines
Diff to previous 1.102 (colored) next main 1.103 (colored) to selected 1.101.2.4 (colored)

Pull up following revision(s) (requested by dholland in ticket #1424):
	sbin/ping/ping.c: revision 1.113 via patch
PR bin/36997 Zafer Aydogan: ping doesn't validate numeric inputs enough.
Check for values between INT_MAX and LONG_MAX (if they're different)
when using strtol to get an int. This applies to the -c and -l options;
the other uses were already checked.
Also limit the inter-packet interval given with -i to values that
don't cause integer overflow calling poll() with milliseconds.
Really large intervals (the number is read as floating point) can
produce positive poll() values but negative integers when converted to
struct timespec; this produces behavior akin to using -l at first and
could be construed as a local DoS vulnerability.

Revision 1.107.4.1.2.2 / (download) - annotate - [select for diffs], Fri May 12 05:21:43 2017 UTC (6 years, 11 months ago) by snj
Branch: netbsd-7-0
Changes since 1.107.4.1.2.1: +3 -3 lines
Diff to previous 1.107.4.1.2.1 (colored) to branchpoint 1.107.4.1 (colored) next main 1.107.4.2 (colored) to selected 1.101.2.4 (colored)

Pull up following revision(s) (requested by ryo in ticket #1390):
	sbin/ping/ping.c: revision 1.116
Fix cksum calculation for clearing the cached route.
In ping.c:r1.104, the size of echoreply packet was changed to ICMP_MINLEN,
Therefore also calculation size must be ICMP_MINLEN.

Revision 1.107.4.2.2.1 / (download) - annotate - [select for diffs], Fri May 12 05:21:01 2017 UTC (6 years, 11 months ago) by snj
Branch: netbsd-7-1
CVS Tags: netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE
Changes since 1.107.4.2: +3 -3 lines
Diff to previous 1.107.4.2 (colored) next main 1.107.4.3 (colored) to selected 1.101.2.4 (colored)

Pull up following revision(s) (requested by ryo in ticket #1390):
	sbin/ping/ping.c: revision 1.116
Fix cksum calculation for clearing the cached route.
In ping.c:r1.104, the size of echoreply packet was changed to ICMP_MINLEN,
Therefore also calculation size must be ICMP_MINLEN.

Revision 1.107.4.3 / (download) - annotate - [select for diffs], Fri May 12 05:20:27 2017 UTC (6 years, 11 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE
Changes since 1.107.4.2: +3 -3 lines
Diff to previous 1.107.4.2 (colored) to branchpoint 1.107 (colored) next main 1.108 (colored) to selected 1.101.2.4 (colored)

Pull up following revision(s) (requested by ryo in ticket #1390):
	sbin/ping/ping.c: revision 1.116
Fix cksum calculation for clearing the cached route.
In ping.c:r1.104, the size of echoreply packet was changed to ICMP_MINLEN,
Therefore also calculation size must be ICMP_MINLEN.

Revision 1.115.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:14 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.115: +3 -3 lines
Diff to previous 1.115 (colored) next main 1.116 (colored) to selected 1.101.2.4 (colored)

Sync with HEAD

Revision 1.109.2.4 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:02 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.109.2.3: +5 -4 lines
Diff to previous 1.109.2.3 (colored) to branchpoint 1.109 (colored) next main 1.110 (colored) to selected 1.101.2.4 (colored)

Sync with HEAD

Revision 1.116 / (download) - annotate - [select for diffs], Fri Mar 17 06:52:59 2017 UTC (7 years, 1 month ago) by ryo
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, bouyer-socketcan-base1
Changes since 1.115: +3 -3 lines
Diff to previous 1.115 (colored) to selected 1.101.2.4 (colored)

Fix cksum calculation for clearing the cached route.

In ping.c:r1.104, the size of echoreply packet was changed to ICMP_MINLEN,
Therefore also calculation size must be ICMP_MINLEN.

Revision 1.107.4.1.4.1 / (download) - annotate - [select for diffs], Wed Jan 18 08:46:23 2017 UTC (7 years, 2 months ago) by skrll
Branch: netbsd-7-nhusb
Changes since 1.107.4.1: +27 -6 lines
Diff to previous 1.107.4.1 (colored) next main 1.107.4.2 (colored) to selected 1.101.2.4 (colored)

Sync with netbsd-5

Revision 1.115 / (download) - annotate - [select for diffs], Wed Jan 11 12:13:52 2017 UTC (7 years, 3 months ago) by joerg
Branch: MAIN
CVS Tags: bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.114: +4 -3 lines
Diff to previous 1.114 (colored) to selected 1.101.2.4 (colored)

Use an explicitly aligned buffer for ip.

Revision 1.109.2.3 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:06 2017 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.109.2.2: +58 -10 lines
Diff to previous 1.109.2.2 (colored) to branchpoint 1.109 (colored) to selected 1.101.2.4 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.107.4.1.2.1 / (download) - annotate - [select for diffs], Sun Dec 18 08:40:54 2016 UTC (7 years, 3 months ago) by snj
Branch: netbsd-7-0
Changes since 1.107.4.1: +27 -6 lines
Diff to previous 1.107.4.1 (colored) to selected 1.101.2.4 (colored)

Pull up following revision(s) (requested by dholland in ticket #1333):
	sbin/ping/ping.c: revision 1.113
PR bin/36997 Zafer Aydogan: ping doesn't validate numeric inputs enough.
Check for values between INT_MAX and LONG_MAX (if they're different)
when using strtol to get an int. This applies to the -c and -l options;
the other uses were already checked.
Also limit the inter-packet interval given with -i to values that
don't cause integer overflow calling poll() with milliseconds.
Really large intervals (the number is read as floating point) can
produce positive poll() values but negative integers when converted to
struct timespec; this produces behavior akin to using -l at first and
could be construed as a local DoS vulnerability.

Revision 1.107.4.2 / (download) - annotate - [select for diffs], Sun Dec 18 08:22:28 2016 UTC (7 years, 3 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1
Branch point for: netbsd-7-1
Changes since 1.107.4.1: +27 -6 lines
Diff to previous 1.107.4.1 (colored) to branchpoint 1.107 (colored) to selected 1.101.2.4 (colored)

Pull up following revision(s) (requested by dholland in ticket #1333):
	sbin/ping/ping.c: revision 1.113
PR bin/36997 Zafer Aydogan: ping doesn't validate numeric inputs enough.
Check for values between INT_MAX and LONG_MAX (if they're different)
when using strtol to get an int. This applies to the -c and -l options;
the other uses were already checked.
Also limit the inter-packet interval given with -i to values that
don't cause integer overflow calling poll() with milliseconds.
Really large intervals (the number is read as floating point) can
produce positive poll() values but negative integers when converted to
struct timespec; this produces behavior akin to using -l at first and
could be construed as a local DoS vulnerability.

Revision 1.114 / (download) - annotate - [select for diffs], Sun Dec 18 01:19:34 2016 UTC (7 years, 3 months ago) by dholland
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107
Changes since 1.113: +33 -6 lines
Diff to previous 1.113 (colored) to selected 1.101.2.4 (colored)

PR bin/36997 Zafer Aydogan: ping doesn't validate numeric inputs enough.

Reject packet intervals < 1 ns as they lead to infinite loops adding
zero timespecs.

Fix the behind-schedule behavior so it doesn't spend all its time in
that loop adding very small timespecs. Try ping -c 500 -i 0.000000001
to see this in action with the old ping.

Revision 1.113 / (download) - annotate - [select for diffs], Sun Dec 18 00:21:33 2016 UTC (7 years, 4 months ago) by dholland
Branch: MAIN
Changes since 1.112: +27 -6 lines
Diff to previous 1.112 (colored) to selected 1.101.2.4 (colored)

PR bin/36997 Zafer Aydogan: ping doesn't validate numeric inputs enough.

Check for values between INT_MAX and LONG_MAX (if they're different)
when using strtol to get an int. This applies to the -c and -l options;
the other uses were already checked.

Also limit the inter-packet interval given with -i to values that
don't cause integer overflow calling poll() with milliseconds.

Really large intervals (the number is read as floating point) can
produce positive poll() values but negative integers when converted to
struct timespec; this produces behavior akin to using -l at first and
could be construed as a local DoS vulnerability.

Revision 1.109.2.2 / (download) - annotate - [select for diffs], Fri Nov 4 14:48:55 2016 UTC (7 years, 5 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.109.2.1: +3 -3 lines
Diff to previous 1.109.2.1 (colored) to branchpoint 1.109 (colored) to selected 1.101.2.4 (colored)

Sync with HEAD

Revision 1.112 / (download) - annotate - [select for diffs], Fri Oct 7 22:31:05 2016 UTC (7 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104
Changes since 1.111: +3 -3 lines
Diff to previous 1.111 (colored) to selected 1.101.2.4 (colored)

Make optspace an array of uint8_t, since some of the bytes written into
it are outside the signed char range.

Revision 1.109.2.1 / (download) - annotate - [select for diffs], Sat Aug 6 00:19:03 2016 UTC (7 years, 8 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.109: +46 -5 lines
Diff to previous 1.109 (colored) to selected 1.101.2.4 (colored)

Sync with HEAD

Revision 1.111 / (download) - annotate - [select for diffs], Sun Jul 31 18:14:36 2016 UTC (7 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: pgoyette-localcount-20160806, localcount-20160914
Changes since 1.110: +44 -3 lines
Diff to previous 1.110 (colored) to selected 1.101.2.4 (colored)

Manipulate the signal masks so signals only arrive while we're waiting,
so they can't illegally reenter libc.

Fixes the problem Greg A. Woods describes in PR 51267, which might or
might not be the original submitter's problem.

Revision 1.110 / (download) - annotate - [select for diffs], Sun Jul 31 17:59:08 2016 UTC (7 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.109: +4 -4 lines
Diff to previous 1.109 (colored) to selected 1.101.2.4 (colored)

Don't call variables that are used "dummy".

Revision 1.107.4.1 / (download) - annotate - [select for diffs], Tue Apr 14 05:26:20 2015 UTC (9 years ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE
Branch point for: netbsd-7-nhusb, netbsd-7-0
Changes since 1.107: +65 -54 lines
Diff to previous 1.107 (colored) to selected 1.101.2.4 (colored)

Pull up following revision(s) (requested by christos in ticket #692):
	sbin/ping/ping.c: revisions 1.108, 1.109
PR/49423: Martin Husemann: ping for small packets does not work in -7 or
-current
--
Adjust default packet size to 56 data bytes (64 total).
Make error messages consistent.

Revision 1.109 / (download) - annotate - [select for diffs], Sat Nov 29 14:48:42 2014 UTC (9 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160726
Branch point for: pgoyette-localcount
Changes since 1.108: +60 -48 lines
Diff to previous 1.108 (colored) to selected 1.101.2.4 (colored)

Adjust default packet size to 56 data bytes (64 total).
Make error messages consistent.

Revision 1.108 / (download) - annotate - [select for diffs], Thu Nov 27 19:43:58 2014 UTC (9 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.107: +7 -8 lines
Diff to previous 1.107 (colored) to selected 1.101.2.4 (colored)

PR/49423: Martin Husemann: ping for small packets does not work in -7 or
-current
XXX: pullup 7?

Revision 1.102.6.4 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:27 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.102.6.3: +12 -9 lines
Diff to previous 1.102.6.3 (colored) to branchpoint 1.102 (colored) next main 1.103 (colored) to selected 1.101.2.4 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.101.2.4 / (download) - annotate - [selected], Thu May 22 11:37:31 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.101.2.3: +25 -16 lines
Diff to previous 1.101.2.3 (colored) to branchpoint 1.101 (colored) next main 1.102 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.107 / (download) - annotate - [select for diffs], Sat Oct 19 01:08:25 2013 UTC (10 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.106: +14 -11 lines
Diff to previous 1.106 (colored) to selected 1.101.2.4 (colored)

avoid bogus uninitialized gcc warning

Revision 1.102.6.3 / (download) - annotate - [select for diffs], Sun Jun 23 06:28:52 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.102.6.2: +13 -7 lines
Diff to previous 1.102.6.2 (colored) to branchpoint 1.102 (colored) to selected 1.101.2.4 (colored)

resync from head

Revision 1.106 / (download) - annotate - [select for diffs], Wed Mar 6 11:33:08 2013 UTC (11 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, agc-symver-base, agc-symver
Changes since 1.105: +13 -7 lines
Diff to previous 1.105 (colored) to selected 1.101.2.4 (colored)

more precision for F_TIMING64

Revision 1.102.6.2 / (download) - annotate - [select for diffs], Mon Feb 25 00:28:10 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.102.6.1: +9 -8 lines
Diff to previous 1.102.6.1 (colored) to branchpoint 1.102 (colored) to selected 1.101.2.4 (colored)

resync with head

Revision 1.101.2.3 / (download) - annotate - [select for diffs], Wed Jan 23 00:05:33 2013 UTC (11 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.101.2.2: +9 -8 lines
Diff to previous 1.101.2.2 (colored) to branchpoint 1.101 (colored) to selected 1.101.2.4 (colored)

sync with head

Revision 1.105 / (download) - annotate - [select for diffs], Sun Dec 30 03:19:24 2012 UTC (11 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8
Changes since 1.104: +4 -4 lines
Diff to previous 1.104 (colored) to selected 1.101.2.4 (colored)

deduct phdrlen after computing max size.

Revision 1.104 / (download) - annotate - [select for diffs], Sun Dec 30 02:41:11 2012 UTC (11 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.103: +8 -7 lines
Diff to previous 1.103 (colored) to selected 1.101.2.4 (colored)

1. Allocate the max packet size before accounting for phdrlen, harmless.
2. In the clear-route-cache sendto, don't send 0 bytes (if -s was specified
   with < 8, phdrlen would be 0).
3. Always send ICMP_MINLEN packets; this is what everyone else does. Makes
   ping -s n where n < 8 work.
4. The condition for checking the data bytes was completely wrong. only check
   the data bytes if we got all of them.
5. The condition for printing a newline was wrong; before it would not print
   a newline before printing the data bytes, and it would append to the previous
   error message.

Revision 1.102.6.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:00:49 2012 UTC (11 years, 4 months ago) by tls
Branch: tls-maxphys
Changes since 1.102: +5 -5 lines
Diff to previous 1.102 (colored) to selected 1.101.2.4 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.101.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 18:59:31 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.101.2.1: +5 -5 lines
Diff to previous 1.101.2.1 (colored) to branchpoint 1.101 (colored) to selected 1.101.2.4 (colored)

sync with head

Revision 1.102.2.1 / (download) - annotate - [select for diffs], Tue Oct 23 19:44:44 2012 UTC (11 years, 5 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE
Branch point for: netbsd-6-1
Changes since 1.102: +5 -5 lines
Diff to previous 1.102 (colored) to selected 1.101.2.4 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #621):
	sbin/ping/ping.c: revision 1.103
Fix a bug that misunderstand F_TIMING64,  F_POLICY and F_AUTHHDR.

Revision 1.103 / (download) - annotate - [select for diffs], Tue Sep 18 04:07:44 2012 UTC (11 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6
Changes since 1.102: +5 -5 lines
Diff to previous 1.102 (colored) to selected 1.101.2.4 (colored)

Fix a bug that misunderstand F_TIMING64,  F_POLICY and F_AUTHHDR.

Revision 1.101.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:42 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored) to selected 1.101.2.4 (colored)

sync with head

Revision 1.102 / (download) - annotate - [select for diffs], Wed Jan 4 16:09:42 2012 UTC (12 years, 3 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: tls-maxphys, netbsd-6-0, netbsd-6
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored) to selected 1.101.2.4 (colored)

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))

Revision 1.101 / (download) - annotate - [select for diffs], Sun Sep 11 17:18:52 2011 UTC (12 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.100: +3 -3 lines
Diff to previous 1.100 (colored) to selected 1.101.2.4 (colored)

print summary stats.

Revision 1.100 / (download) - annotate - [select for diffs], Sat Sep 10 20:46:43 2011 UTC (12 years, 7 months ago) by wiz
Branch: MAIN
Changes since 1.99: +5 -5 lines
Diff to previous 1.99 (colored) to selected 1.101.2.4 (colored)

Sort options and descriptions in standard order.
Remove unecessary Bk/Ek in SYNOPSIS.

Revision 1.99 / (download) - annotate - [select for diffs], Sat Sep 10 20:04:28 2011 UTC (12 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.98: +93 -61 lines
Diff to previous 1.98 (colored) to selected 1.101.2.4 (colored)

PR/45257: Instead of passing a 32bit sec and 32 bit usec timestamp in little
endian format by default, pass a struct timespec in native host format. Add
-C flag to produce a compatible timestamp like before.

Revision 1.98 / (download) - annotate - [select for diffs], Sat Aug 27 18:40:18 2011 UTC (12 years, 7 months ago) by joerg
Branch: MAIN
Changes since 1.97: +42 -43 lines
Diff to previous 1.97 (colored) to selected 1.101.2.4 (colored)

static + __dead

Revision 1.97 / (download) - annotate - [select for diffs], Sun Aug 21 06:39:09 2011 UTC (12 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.96: +4 -2 lines
Diff to previous 1.96 (colored) to selected 1.101.2.4 (colored)

handle the first loop where time == 0.

Revision 1.96 / (download) - annotate - [select for diffs], Sat Aug 20 14:38:09 2011 UTC (12 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.95: +4 -4 lines
Diff to previous 1.95 (colored) to selected 1.101.2.4 (colored)

we need difftime to return a signed result, so clamp the timeval's to
uint32_t but then, return a signed result of their difference.

Revision 1.95 / (download) - annotate - [select for diffs], Fri Aug 19 08:35:40 2011 UTC (12 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.94: +9 -9 lines
Diff to previous 1.94 (colored) to selected 1.101.2.4 (colored)

PR/45257: Ryo Shimizu: ping(8) prints bogus round-trip times after Year 2038
Clamp all time computations to 32 bits; idea from dsl@

Revision 1.94 / (download) - annotate - [select for diffs], Tue Aug 9 12:55:19 2011 UTC (12 years, 8 months ago) by joerg
Branch: MAIN
Changes since 1.93: +4 -4 lines
Diff to previous 1.93 (colored) to selected 1.101.2.4 (colored)

Don't use array access to compute addresses that are definitely beyond
the static array boundaries.

Revision 1.93 / (download) - annotate - [select for diffs], Fri Mar 11 09:59:56 2011 UTC (13 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp
Changes since 1.92: +6 -6 lines
Diff to previous 1.92 (colored) to selected 1.101.2.4 (colored)

Make get/setuid prog ops (so that i can do rump.ping -f regardless
of host privs).

Revision 1.92 / (download) - annotate - [select for diffs], Mon Dec 13 17:42:17 2010 UTC (13 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.91: +37 -41 lines
Diff to previous 1.91 (colored) to selected 1.101.2.4 (colored)

RUMP_ACTION -> RUMPPRG

Revision 1.91 / (download) - annotate - [select for diffs], Thu Nov 11 22:56:38 2010 UTC (13 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.90: +14 -2 lines
Diff to previous 1.90 (colored) to selected 1.101.2.4 (colored)

add compile-conditional rumpclient support

Revision 1.87.16.1 / (download) - annotate - [select for diffs], Wed Apr 21 05:26:34 2010 UTC (13 years, 11 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.87: +28 -4 lines
Diff to previous 1.87 (colored) next main 1.88 (colored) to selected 1.101.2.4 (colored)

sync to netbsd-5

Revision 1.90 / (download) - annotate - [select for diffs], Mon Nov 2 00:47:09 2009 UTC (14 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.89: +4 -16 lines
Diff to previous 1.89 (colored) to selected 1.101.2.4 (colored)

remove ancient ifdefs (Aleksej Saushev)

Revision 1.87.12.1 / (download) - annotate - [select for diffs], Wed May 13 19:19:04 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.87: +34 -9 lines
Diff to previous 1.87 (colored) next main 1.88 (colored) to selected 1.101.2.4 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.87.10.1 / (download) - annotate - [select for diffs], Sun May 3 22:32:12 2009 UTC (14 years, 11 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.87: +28 -4 lines
Diff to previous 1.87 (colored) next main 1.88 (colored) to selected 1.101.2.4 (colored)

Pull up following revision(s) (requested by christos in ticket #636):
	sbin/ping/ping.c: revision 1.88
PR/41111: Ed Ravin: ping -R gives misleading error when remote side doesn't
support record route
Deal with source route and record route specially giving a meaningful error
message.

Revision 1.89 / (download) - annotate - [select for diffs], Sat Apr 11 06:49:50 2009 UTC (15 years ago) by lukem
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.88: +8 -7 lines
Diff to previous 1.88 (colored) to selected 1.101.2.4 (colored)

fix sign-compare issues

Revision 1.88 / (download) - annotate - [select for diffs], Tue Mar 31 19:51:11 2009 UTC (15 years ago) by christos
Branch: MAIN
Changes since 1.87: +28 -4 lines
Diff to previous 1.87 (colored) to selected 1.101.2.4 (colored)

PR/41111: Ed Ravin: ping -R gives misleading error when remote side doesn't
support record route
Deal with source route and record route specially giving a meaningful error
message.
Pullup to 5.0?

Revision 1.86.4.1 / (download) - annotate - [select for diffs], Sun Mar 23 00:44:24 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.86: +9 -2 lines
Diff to previous 1.86 (colored) next main 1.87 (colored) to selected 1.101.2.4 (colored)

sync with HEAD

Revision 1.86.6.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:04:17 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.86: +9 -2 lines
Diff to previous 1.86 (colored) next main 1.87 (colored) to selected 1.101.2.4 (colored)

Sync with HEAD.

Revision 1.87 / (download) - annotate - [select for diffs], Tue Jan 8 20:03:09 2008 UTC (16 years, 3 months ago) by seanb
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-armv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base
Branch point for: netbsd-5, matt-nb5-mips64, jym-xensuspend
Changes since 1.86: +9 -2 lines
Diff to previous 1.86 (colored) to selected 1.101.2.4 (colored)

Shutdown sloop socket for read as it's never read on to
prevent mbufs from queueing in its recv buf.
PR:21459

Revision 1.77.4.1 / (download) - annotate - [select for diffs], Sun Aug 26 19:55:21 2007 UTC (16 years, 7 months ago) by bouyer
Branch: netbsd-3-0
Changes since 1.77: +10 -6 lines
Diff to previous 1.77 (colored) next main 1.78 (colored) to selected 1.101.2.4 (colored)

Pull up following revision(s) (requested by ghen in ticket #1818):
	sbin/ping/ping.c: revisions 1.83 - 1.85
PR/28741: Michael Santos: ping does [not] drop root privileges

Revision 1.77.6.1 / (download) - annotate - [select for diffs], Sun Aug 26 19:55:17 2007 UTC (16 years, 7 months ago) by bouyer
Branch: netbsd-3-1
Changes since 1.77: +10 -6 lines
Diff to previous 1.77 (colored) next main 1.78 (colored) to selected 1.101.2.4 (colored)

Pull up following revision(s) (requested by ghen in ticket #1818):
	sbin/ping/ping.c: revisions 1.83 - 1.85
PR/28741: Michael Santos: ping does [not] drop root privileges

Revision 1.77.2.2 / (download) - annotate - [select for diffs], Sun Aug 26 19:54:51 2007 UTC (16 years, 7 months ago) by bouyer
Branch: netbsd-3
Changes since 1.77.2.1: +10 -6 lines
Diff to previous 1.77.2.1 (colored) to branchpoint 1.77 (colored) next main 1.78 (colored) to selected 1.101.2.4 (colored)

Pull up following revision(s) (requested by ghen in ticket #1818):
	sbin/ping/ping.c: revisions 1.83 - 1.85
PR/28741: Michael Santos: ping does [not] drop root privileges

Revision 1.77.2.1 / (download) - annotate - [select for diffs], Sun Aug 26 18:53:05 2007 UTC (16 years, 7 months ago) by bouyer
Branch: netbsd-3
Changes since 1.77: +32 -7 lines
Diff to previous 1.77 (colored) to selected 1.101.2.4 (colored)

Pull up following revision(s) (requested by ghen in ticket #1817):
	sbin/ping/ping.c: revisions 1.79 - 1.80
PR/33623: Chuck Cranor: Ping stops when ran in the background
because it tries to set the tty not to print kerninfo. Change it
to only only play with the tty when ping is running in the foreground
(and will not stop when calling tcsetattr()). In my opinion, it is
preferable to print the kerninfo line with the ping info message
rather than to mess with the tty, but that's just me.
Factor out the tty code and explain we prefer to stop in the ^Z bg case
when we exit, rather than kill the tty setting.

Revision 1.75.6.1 / (download) - annotate - [select for diffs], Sat Aug 11 14:25:43 2007 UTC (16 years, 8 months ago) by bouyer
Branch: netbsd-2-1
Changes since 1.75: +10 -6 lines
Diff to previous 1.75 (colored) next main 1.76 (colored) to selected 1.101.2.4 (colored)

Pull up following revision(s) (requested by ghen in ticket #11352):
	sbin/ping/ping.c: revision 1.83 - 1.85
PR/28741: Michael Santos: ping does [not] drop root privileges
Moved socket calls way up, and called seteuid(getuid()).
On 2nd thought, setuid() is better here.
Change error message to say "setuid", forgotten in previous commit.
Pointed out by Ray Lai, thanks!

Revision 1.75.2.1 / (download) - annotate - [select for diffs], Sat Aug 11 14:24:41 2007 UTC (16 years, 8 months ago) by bouyer
Branch: netbsd-2-0
Changes since 1.75: +10 -6 lines
Diff to previous 1.75 (colored) next main 1.76 (colored) to selected 1.101.2.4 (colored)

Pull up following revision(s) (requested by ghen in ticket #11352):
	sbin/ping/ping.c: revision 1.83 - 1.85
PR/28741: Michael Santos: ping does [not] drop root privileges
Moved socket calls way up, and called seteuid(getuid()).
On 2nd thought, setuid() is better here.
Change error message to say "setuid", forgotten in previous commit.
Pointed out by Ray Lai, thanks!

Revision 1.75.4.2 / (download) - annotate - [select for diffs], Sat Aug 11 14:10:48 2007 UTC (16 years, 8 months ago) by bouyer
Branch: netbsd-2
Changes since 1.75.4.1: +10 -6 lines
Diff to previous 1.75.4.1 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored) to selected 1.101.2.4 (colored)

Pull up following revision(s) (requested by ghen in ticket #11352):
	sbin/ping/ping.c: revision 1.83 - 1.85
PR/28741: Michael Santos: ping does [not] drop root privileges
Moved socket calls way up, and called seteuid(getuid()).
On 2nd thought, setuid() is better here.
Change error message to say "setuid", forgotten in previous commit.
Pointed out by Ray Lai, thanks!

Revision 1.75.4.1 / (download) - annotate - [select for diffs], Sat Aug 11 14:08:43 2007 UTC (16 years, 8 months ago) by bouyer
Branch: netbsd-2
Changes since 1.75: +32 -7 lines
Diff to previous 1.75 (colored) to selected 1.101.2.4 (colored)

Pull up following revision(s) (requested by ghen in ticket #11351):
	sbin/ping/ping.c: revision 1.79, 1.80
PR/33623: Chuck Cranor: Ping stops when ran in the background
because it tries to set the tty not to print kerninfo. Change it
to only only play with the tty when ping is running in the foreground
(and will not stop when calling tcsetattr()). In my opinion, it is
preferable to print the kerninfo line with the ping info message
rather than to mess with the tty, but that's just me.
Factor out the tty code and explain we prefer to stop in the ^Z bg case
when we exit, rather than kill the tty setting.

Revision 1.86 / (download) - annotate - [select for diffs], Wed Jan 17 21:59:49 2007 UTC (17 years, 3 months ago) by hubertf
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: mjf-devfs, matt-armv6
Changes since 1.85: +2 -3 lines
Diff to previous 1.85 (colored) to selected 1.101.2.4 (colored)

Remove more duplicate #includes,
from Slava Semushin <slava.semushin@gmail.com>

Revision 1.85 / (download) - annotate - [select for diffs], Thu Sep 28 16:01:16 2006 UTC (17 years, 6 months ago) by elad
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored) to selected 1.101.2.4 (colored)

Change error message to say "setuid", forgotten in previous commit.

Pointed out by Ray Lai, thanks!

Revision 1.84 / (download) - annotate - [select for diffs], Sun Sep 24 11:17:09 2006 UTC (17 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.83: +3 -3 lines
Diff to previous 1.83 (colored) to selected 1.101.2.4 (colored)

On 2nd thought, setuid() is better here.

Revision 1.83 / (download) - annotate - [select for diffs], Sun Sep 24 11:05:09 2006 UTC (17 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.82: +10 -6 lines
Diff to previous 1.82 (colored) to selected 1.101.2.4 (colored)

PR/28741: Michael Santos: ping does [not] drop root privileges

Moved socket calls way up, and called seteuid(getuid()).

Revision 1.82 / (download) - annotate - [select for diffs], Fri Jul 14 05:43:49 2006 UTC (17 years, 9 months ago) by yamt
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.81: +3 -3 lines
Diff to previous 1.81 (colored) to selected 1.101.2.4 (colored)

prtsig: remove a mysterious abort().

Revision 1.81 / (download) - annotate - [select for diffs], Sat Jun 3 18:19:55 2006 UTC (17 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.80: +14 -58 lines
Diff to previous 1.80 (colored) to selected 1.101.2.4 (colored)

Use SA_NOKERNINFO instead of playing with the tty.

Revision 1.80 / (download) - annotate - [select for diffs], Thu Jun 1 18:04:08 2006 UTC (17 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.79: +32 -11 lines
Diff to previous 1.79 (colored) to selected 1.101.2.4 (colored)

Factor out the tty code and explain we prefer to stop in the ^Z bg case
when we exit, rather than kill the tty setting.

Revision 1.79 / (download) - annotate - [select for diffs], Thu Jun 1 15:59:31 2006 UTC (17 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.78: +12 -8 lines
Diff to previous 1.78 (colored) to selected 1.101.2.4 (colored)

PR/33623: Chuck Cranor: Ping stops when ran in the background
because it tries to set the tty not to print kerninfo. Change it
to only only play with the tty when ping is running in the foreground
(and will not stop when calling tcsetattr()). In my opinion, it is
preferable to print the kerninfo line with the ping info message
rather than to mess with the tty, but that's just me.

Revision 1.78 / (download) - annotate - [select for diffs], Tue May 9 20:18:08 2006 UTC (17 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored) to selected 1.101.2.4 (colored)

change (mostly) int to socklen_t.  GCC 4 doesn't like that int and
socklen_t are different signness.

Revision 1.77 / (download) - annotate - [select for diffs], Thu May 13 20:27:38 2004 UTC (19 years, 11 months ago) by kleink
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE
Branch point for: netbsd-3-1, netbsd-3-0, netbsd-3
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored) to selected 1.101.2.4 (colored)

There's no point in bringing PRNG output to network byteorder prior to
transmission.

Revision 1.76 / (download) - annotate - [select for diffs], Thu Apr 22 01:39:20 2004 UTC (19 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored) to selected 1.101.2.4 (colored)

do not disclose endian.   henning@openbsd

Revision 1.75 / (download) - annotate - [select for diffs], Mon Jan 26 02:21:30 2004 UTC (20 years, 2 months ago) by itojun
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2-1, netbsd-2-0, netbsd-2
Changes since 1.74: +22 -10 lines
Diff to previous 1.74 (colored) to selected 1.101.2.4 (colored)

do not disclose endianness/sizeof(long) on probe packet.  idea from openbsd

Revision 1.74 / (download) - annotate - [select for diffs], Mon Jan 5 23:23:33 2004 UTC (20 years, 3 months ago) by jmmv
Branch: MAIN
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored) to selected 1.101.2.4 (colored)

Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.

Revision 1.73 / (download) - annotate - [select for diffs], Thu Aug 7 10:04:36 2003 UTC (20 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.72: +3 -7 lines
Diff to previous 1.72 (colored) to selected 1.101.2.4 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.

Revision 1.72 / (download) - annotate - [select for diffs], Mon Apr 14 10:18:37 2003 UTC (21 years ago) by itojun
Branch: MAIN
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored) to selected 1.101.2.4 (colored)

permit -s 0.  from Maxim Konovalov

Revision 1.71 / (download) - annotate - [select for diffs], Sat Nov 16 16:39:55 2002 UTC (21 years, 5 months ago) by itojun
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.70: +3 -2 lines
Diff to previous 1.70 (colored) to selected 1.101.2.4 (colored)

set sa_len right

Revision 1.70 / (download) - annotate - [select for diffs], Sat Nov 16 16:02:03 2002 UTC (21 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.69: +9 -5 lines
Diff to previous 1.69 (colored) to selected 1.101.2.4 (colored)

die if strdup fails

Revision 1.69 / (download) - annotate - [select for diffs], Sat Nov 16 14:09:16 2002 UTC (21 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.68: +7 -9 lines
Diff to previous 1.68 (colored) to selected 1.101.2.4 (colored)

use strlcpy.  initialize sa_len correctly.

Revision 1.68 / (download) - annotate - [select for diffs], Sat Sep 21 18:33:51 2002 UTC (21 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored) to selected 1.101.2.4 (colored)

Touch up error/warning messages.

Revision 1.67 / (download) - annotate - [select for diffs], Sat Sep 21 18:24:40 2002 UTC (21 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.66: +7 -14 lines
Diff to previous 1.66 (colored) to selected 1.101.2.4 (colored)

select() -> poll()

Revision 1.66 / (download) - annotate - [select for diffs], Mon Aug 12 18:24:53 2002 UTC (21 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.65: +20 -2 lines
Diff to previous 1.65 (colored) to selected 1.101.2.4 (colored)

Add support for printing out messages about missing packet gaps.  This is
done with the -v switch.  If -q is also given with -v, then only the
packet gap messages will be printed along with summary after each gap
message.

Revision 1.65 / (download) - annotate - [select for diffs], Thu Aug 1 08:56:59 2002 UTC (21 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.64: +19 -20 lines
Diff to previous 1.64 (colored) to selected 1.101.2.4 (colored)

u_short cleansing (use u_int16_t where appropriate)

Revision 1.64 / (download) - annotate - [select for diffs], Fri May 31 01:10:53 2002 UTC (21 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored) to selected 1.101.2.4 (colored)

clarify comment when nreceived > ntransmitted.  from deraadt

Revision 1.63 / (download) - annotate - [select for diffs], Thu Dec 20 20:10:38 2001 UTC (22 years, 4 months ago) by soren
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored) to selected 1.101.2.4 (colored)

Sync getopt() / man page with actual getopt options.

Revision 1.62 / (download) - annotate - [select for diffs], Thu Nov 1 08:06:57 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.61: +9 -9 lines
Diff to previous 1.61 (colored) to selected 1.101.2.4 (colored)

fix a couple of -Wshadow warnings

Revision 1.61 / (download) - annotate - [select for diffs], Wed Oct 10 15:58:04 2001 UTC (22 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.60: +4 -4 lines
Diff to previous 1.60 (colored) to selected 1.101.2.4 (colored)

- use IP_MAXPACKET instead of 65535.
- change max packet size from 65468 to 65467(= IP_MAXPACKET-60-8).

Revision 1.60 / (download) - annotate - [select for diffs], Tue Oct 9 19:17:02 2001 UTC (22 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.59: +6 -5 lines
Diff to previous 1.59 (colored) to selected 1.101.2.4 (colored)

- fix overrun bug.
- bump bufsize to fix "packet loss" with large packet.

Revision 1.59 / (download) - annotate - [select for diffs], Mon Feb 19 22:56:21 2001 UTC (23 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.58: +9 -11 lines
Diff to previous 1.58 (colored) to selected 1.101.2.4 (colored)

convert to use getprogname()

Revision 1.58 / (download) - annotate - [select for diffs], Fri Jan 12 18:50:57 2001 UTC (23 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored) to selected 1.101.2.4 (colored)

correct use of howmany() for fd_set.  commented by deraadt

Revision 1.55.4.2 / (download) - annotate - [select for diffs], Wed Oct 18 02:04:49 2000 UTC (23 years, 6 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.55.4.1: +11 -7 lines
Diff to previous 1.55.4.1 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored) to selected 1.101.2.4 (colored)

Pullup 1.56 [itojun]:
avoid fd_set overflow.

Revision 1.55.4.1 / (download) - annotate - [select for diffs], Wed Oct 18 00:39:47 2000 UTC (23 years, 6 months ago) by tv
Branch: netbsd-1-5
Changes since 1.55: +10 -11 lines
Diff to previous 1.55 (colored) to selected 1.101.2.4 (colored)

Pullup sbin string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.

Revision 1.47.2.2 / (download) - annotate - [select for diffs], Tue Oct 10 22:23:45 2000 UTC (23 years, 6 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.47.2.1: +7 -8 lines
Diff to previous 1.47.2.1 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored) to selected 1.101.2.4 (colored)

Pull up revision 1.57 (via patch, requested by is):
  Format string cleanup.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Oct 10 20:24:53 2000 UTC (23 years, 6 months ago) by is
Branch: MAIN
Changes since 1.56: +10 -11 lines
Diff to previous 1.56 (colored) to selected 1.101.2.4 (colored)

Format string cleanups by Bill Sommerfeld.

Revision 1.56 / (download) - annotate - [select for diffs], Sat Oct 7 06:50:43 2000 UTC (23 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.55: +11 -7 lines
Diff to previous 1.55 (colored) to selected 1.101.2.4 (colored)

avoid fd_set overflow.  see openbsd select(2).

Revision 1.55 / (download) - annotate - [select for diffs], Mon Jan 31 14:24:23 2000 UTC (24 years, 2 months ago) by itojun
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.54: +34 -20 lines
Diff to previous 1.54 (colored) to selected 1.101.2.4 (colored)

sync with latest libipsec and kernel.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Jan 20 01:04:41 2000 UTC (24 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.53: +6 -6 lines
Diff to previous 1.53 (colored) to selected 1.101.2.4 (colored)

Fix data comparison to not overrun array bounds.

Revision 1.53 / (download) - annotate - [select for diffs], Sun Jul 4 15:24:35 1999 UTC (24 years, 9 months ago) by itojun
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored) to selected 1.101.2.4 (colored)

do not pass NULL to errx().

From: Chris Joness <cjones@rupert.honors.montana.edu>

Revision 1.52 / (download) - annotate - [select for diffs], Sun Jul 4 13:27:03 1999 UTC (24 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.51: +8 -3 lines
Diff to previous 1.51 (colored) to selected 1.101.2.4 (colored)

do not bark even if ipsec policy setting for "route flushing 127.0.0.1"
ping socket is not successful.  it usually means that the kernel is
not ipsec ready, and in that case this should be just okay.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Jul 3 15:09:51 1999 UTC (24 years, 9 months ago) by kleink
Branch: MAIN
Changes since 1.50: +4 -4 lines
Diff to previous 1.50 (colored) to selected 1.101.2.4 (colored)

0 -> STDIN_FILENO

Revision 1.50 / (download) - annotate - [select for diffs], Fri Jul 2 04:53:24 1999 UTC (24 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.49: +129 -7 lines
Diff to previous 1.49 (colored) to selected 1.101.2.4 (colored)

IPsec support (specify policy on ping - quite useful to test
if IPsec is working or not) is added.

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Thu Jun 24 16:23:03 1999 UTC (24 years, 9 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.47: +26 -10 lines
Diff to previous 1.47 (colored) to selected 1.101.2.4 (colored)

pullup 1.47->1.48 (sommerfeld)

Revision 1.49 / (download) - annotate - [select for diffs], Sat Jun 19 19:15:22 1999 UTC (24 years, 10 months ago) by sommerfeld
Branch: MAIN
Changes since 1.48: +17 -3 lines
Diff to previous 1.48 (colored) to selected 1.101.2.4 (colored)

Support for ping -a: beep when packet received.
Slightly tweaked from version submitted by andrew@untraceable.net in PR7815

Revision 1.48 / (download) - annotate - [select for diffs], Sat Apr 17 01:17:15 1999 UTC (25 years ago) by mjl
Branch: MAIN
Changes since 1.47: +11 -9 lines
Diff to previous 1.47 (colored) to selected 1.101.2.4 (colored)

Correct nokerninfo tty flag being left set in most error cases.
Closes PR/7388 by Dave Huang <khym@bga.com>.

Revision 1.47 / (download) - annotate - [select for diffs], Mon Mar 8 01:16:20 1999 UTC (25 years, 1 month ago) by sommerfe
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE
Branch point for: netbsd-1-4
Changes since 1.46: +5 -3 lines
Diff to previous 1.46 (colored) to selected 1.101.2.4 (colored)

Don't bother doing stddev calculation when n==1, since that results in
a computation of 0.0/0.0.
On IEEE systems you get a NaN from this; non-IEEE systems probably
give you a SIGFPE.

Revision 1.46 / (download) - annotate - [select for diffs], Thu Feb 25 19:07:15 1999 UTC (25 years, 1 month ago) by jwise
Branch: MAIN
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored) to selected 1.101.2.4 (colored)

Once more around the hickory shrub.  Faster and simpler stddev calculation from
Bill Studenmund.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Feb 25 03:35:34 1999 UTC (25 years, 1 month ago) by jwise
Branch: MAIN
Changes since 1.44: +4 -4 lines
Diff to previous 1.44 (colored) to selected 1.101.2.4 (colored)

Fix calculation of standard deviation.  From Brian C. Grayson <bgrayson@orac.ece.utexas.edu>

Revision 1.44 / (download) - annotate - [select for diffs], Wed Feb 24 19:31:38 1999 UTC (25 years, 1 month ago) by jwise
Branch: MAIN
Changes since 1.43: +13 -6 lines
Diff to previous 1.43 (colored) to selected 1.101.2.4 (colored)

Add code from Daniel Hagerty <hag@ai.mit.edu> to print standard deviation
when printing out final statistics line.

Closes PR bin/6198

Revision 1.43 / (download) - annotate - [select for diffs], Fri Nov 6 16:52:42 1998 UTC (25 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored) to selected 1.101.2.4 (colored)

char -> unsigned char

Revision 1.42 / (download) - annotate - [select for diffs], Mon Oct 26 04:45:35 1998 UTC (25 years, 5 months ago) by enami
Branch: MAIN
Changes since 1.41: +8 -7 lines
Diff to previous 1.41 (colored) to selected 1.101.2.4 (colored)

Fix usage string;
	- option to specify maxwait is -w, not -i.
	- add missing -h host and -Q option.

Revision 1.41 / (download) - annotate - [select for diffs], Sun Oct 25 13:51:33 1998 UTC (25 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.40: +104 -67 lines
Diff to previous 1.40 (colored) to selected 1.101.2.4 (colored)

Update to the 980911 version from ftp.rhyolite.com:/src/ping.tar.Z

Revision 1.40 / (download) - annotate - [select for diffs], Thu Oct 1 19:39:33 1998 UTC (25 years, 6 months ago) by frueauf
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored) to selected 1.101.2.4 (colored)

Add getuid() check if -f is set, fixes pr 6222 by Uwe Arndt.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Sep 14 17:08:56 1998 UTC (25 years, 7 months ago) by tv
Branch: MAIN
Changes since 1.38: +6 -2 lines
Diff to previous 1.38 (colored) to selected 1.101.2.4 (colored)

Restrict -l to the superuser as suggested in PR 3973 from <soren@t.dk>.
Also distinguish "-f" from "-i 0.x" in the superuser restriction messages.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Sep 14 12:52:47 1998 UTC (25 years, 7 months ago) by tv
Branch: MAIN
Changes since 1.37: +3 -25 lines
Diff to previous 1.37 (colored) to selected 1.101.2.4 (colored)

Nuke the termios stuff from the 1997/03/11 import, which prevents ping
from being run in the background of most shells without redirecting stdin
from /dev/null.  (AFAICT, the termios stuff is useless and does not
interfere with SIGINFO handling.)

Revision 1.37 / (download) - annotate - [select for diffs], Tue Jul 28 19:22:56 1998 UTC (25 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.36: +5 -4 lines
Diff to previous 1.36 (colored) to selected 1.101.2.4 (colored)

__AUDIT__ cleanup.

Revision 1.32.2.2 / (download) - annotate - [select for diffs], Tue May 5 08:48:13 1998 UTC (25 years, 11 months ago) by mycroft
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002
Changes since 1.32.2.1: +3 -3 lines
Diff to previous 1.32.2.1 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored) to selected 1.101.2.4 (colored)

Pull up 1.36, per request of kleink.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Apr 16 09:02:56 1998 UTC (26 years ago) by kleink
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored) to selected 1.101.2.4 (colored)

Take into consideration that icmp_nextmtu is stored in network byte order;
from Leonard Samuelson in PR bin/5230.

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Mon Dec 1 20:02:05 1997 UTC (26 years, 4 months ago) by mellon
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH001
Changes since 1.32: +18 -10 lines
Diff to previous 1.32 (colored) to selected 1.101.2.4 (colored)

Pull rev 1.33, 1.34 and 1.35 up from trunk (christos) (reviewed by mellon)

Revision 1.35 / (download) - annotate - [select for diffs], Mon Dec 1 08:41:48 1997 UTC (26 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored) to selected 1.101.2.4 (colored)

PR/4615: David Jones: Ping usage does not show -o option.

Revision 1.34 / (download) - annotate - [select for diffs], Sun Nov 30 22:33:30 1997 UTC (26 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.33: +12 -4 lines
Diff to previous 1.33 (colored) to selected 1.101.2.4 (colored)

Make the "failed to clear cached route" a warning only if verbose is set.
This always happens when lo0 is not configured and confuses new users.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Nov 5 21:29:36 1997 UTC (26 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.32: +7 -7 lines
Diff to previous 1.32 (colored) to selected 1.101.2.4 (colored)

lint

Revision 1.1.1.4 / (download) - annotate - [select for diffs] (vendor branch), Tue Sep 16 12:41:32 1997 UTC (26 years, 7 months ago) by lukem
Branch: WFJ-920714, SGI, CSRG
CVS Tags: lite-2
Changes since 1.1.1.3: +658 -1192 lines
Diff to previous 1.1.1.3 (colored) to selected 1.101.2.4 (colored)

imported from lite-2

Revision 1.32 / (download) - annotate - [select for diffs], Mon Sep 15 07:21:12 1997 UTC (26 years, 7 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-BETA
Branch point for: netbsd-1-3
Changes since 1.31: +11 -10 lines
Diff to previous 1.31 (colored) to selected 1.101.2.4 (colored)

* cleanup .Nm
* deprecate register
* cleanup for WARNS=1
* bzero(), bcopy() -> memset(), memmove()
* prefix hex numbers with '0x'

Revision 1.31 / (download) - annotate - [select for diffs], Thu Jul 17 06:39:46 1997 UTC (26 years, 9 months ago) by mikel
Branch: MAIN
Changes since 1.30: +5 -5 lines
Diff to previous 1.30 (colored) to selected 1.101.2.4 (colored)

convert to host byte order when printing stats of received ICMP
  packets other than echo-replies; from Dave Huang in PR bin/3876

Revision 1.30 / (download) - annotate - [select for diffs], Sun Jun 1 19:34:49 1997 UTC (26 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.29: +302 -307 lines
Diff to previous 1.29 (colored) to selected 1.101.2.4 (colored)

Update from Vernon Schryver, fixing the kluge to flush the route cache.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Apr 2 09:22:01 1997 UTC (27 years ago) by augustss
Branch: MAIN
Changes since 1.28: +5 -5 lines
Diff to previous 1.28 (colored) to selected 1.101.2.4 (colored)

Make ping obey the -n flag in places.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Mar 24 03:34:26 1997 UTC (27 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.27: +6 -6 lines
Diff to previous 1.27 (colored) to selected 1.101.2.4 (colored)

Don't allow < 1 sec ping interval to regular users.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Mar 19 12:44:08 1997 UTC (27 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored) to selected 1.101.2.4 (colored)

Try adding `o' option again; connection died.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Mar 19 12:36:03 1997 UTC (27 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.25: +43 -34 lines
Diff to previous 1.25 (colored) to selected 1.101.2.4 (colored)

Take care of alignment problems on the alpha: From John Birell, via cgd.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Mar 18 19:06:51 1997 UTC (27 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.24: +9 -3 lines
Diff to previous 1.24 (colored) to selected 1.101.2.4 (colored)

PR/3329: From David Jones: Add F_ONCE

Revision 1.24 / (download) - annotate - [select for diffs], Thu Mar 13 16:19:10 1997 UTC (27 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.23: +5 -6 lines
Diff to previous 1.23 (colored) to selected 1.101.2.4 (colored)

Fix PR/3327: rcvd_tbl index was assumed to be in host order, creating
incorrect dup reports. From enami tsugutomo

Revision 1.23 / (download) - annotate - [select for diffs], Tue Mar 11 21:53:42 1997 UTC (27 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.22: +17 -10 lines
Diff to previous 1.22 (colored) to selected 1.101.2.4 (colored)

- remove -g from Makefile
- fix setsockopt and recvfrom casts.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Mar 11 21:22:52 1997 UTC (27 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.21: +1259 -702 lines
Diff to previous 1.21 (colored) to selected 1.101.2.4 (colored)

- Use err, warn, errx
- Don't use floor, because we would need libm
- Add maxwait option from old ping
- Add a centralized gethost() to get hostnames
- Fix PR/1014 and PR/2017; (adds -D, -T options, and -I and -t for unicast)
- Document exit status

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Tue Mar 11 21:04:25 1997 UTC (27 years, 1 month ago) by christos
Branch: WFJ-920714, SGI, CSRG
CVS Tags: ping-970113
Changes since 1.1.1.2: +1192 -658 lines
Diff to previous 1.1.1.2 (colored) to selected 1.101.2.4 (colored)

From Vernon Schryver <vjs@sgi.com>

Revision 1.21 / (download) - annotate - [select for diffs], Wed Nov 6 20:42:17 1996 UTC (27 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.20: +36 -8 lines
Diff to previous 1.20 (colored) to selected 1.101.2.4 (colored)

make ping(8) print out statistics when given a SIGINFO.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Aug 11 22:37:58 1995 UTC (28 years, 8 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.19: +14 -10 lines
Diff to previous 1.19 (colored) to selected 1.101.2.4 (colored)

fix a couple of bugs pointed out by John Birrell, though fix some
differently he did.  (1) don't assume that the timeval in
the packet is correctly aligned, (2) don't compare beyond the end
of the packet, (3) minor cast for printf happiness.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jul 27 23:49:45 1995 UTC (28 years, 8 months ago) by ghudson
Branch: MAIN
Changes since 1.18: +35 -7 lines
Diff to previous 1.18 (colored) to selected 1.101.2.4 (colored)

Add and document options -w (to specify a maximum wait timeout, useful
for testing network interfaces) and -S (to specify a source address
on a machine with multiple interfaces).

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jun 26 23:26:23 1995 UTC (28 years, 9 months ago) by jtc
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored) to selected 1.101.2.4 (colored)

sys/signal.h -> signal.h

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jun 3 23:23:52 1995 UTC (28 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +3 -2 lines
Diff to previous 1.16 (colored) to selected 1.101.2.4 (colored)

Fill in sin_len.

Revision 1.16 / (download) - annotate - [select for diffs], Sun May 21 01:18:03 1995 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.15: +3 -4 lines
Diff to previous 1.15 (colored) to selected 1.101.2.4 (colored)

Use inet_aton(), not inet_addr().

Revision 1.15 / (download) - annotate - [select for diffs], Sat Apr 22 15:27:08 1995 UTC (29 years ago) by cgd
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored) to selected 1.101.2.4 (colored)

if no packets were received, exit with status 1.  this should be
documented somewhere.  As suggested by Rens Troost.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Mar 21 13:59:39 1995 UTC (29 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.13: +3 -20 lines
Diff to previous 1.13 (colored) to selected 1.101.2.4 (colored)

Update to use timer{add,sub}().

Revision 1.13 / (download) - annotate - [select for diffs], Sat Mar 18 14:59:16 1995 UTC (29 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.12: +7 -2 lines
Diff to previous 1.12 (colored) to selected 1.101.2.4 (colored)

convert to new RCS Id conventions; reduce my headache

Revision 1.12 / (download) - annotate - [select for diffs], Sun Dec 18 00:20:51 1994 UTC (29 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.11: +25 -3 lines
Diff to previous 1.11 (colored) to selected 1.101.2.4 (colored)

-Wall cleanups from Jim Jegers

Revision 1.11 / (download) - annotate - [select for diffs], Mon Oct 31 04:34:56 1994 UTC (29 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored) to selected 1.101.2.4 (colored)

will need <sys/queue.h>

Revision 1.10 / (download) - annotate - [select for diffs], Fri Sep 23 23:49:18 1994 UTC (29 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored) to selected 1.101.2.4 (colored)

Remove some more uses of obsolete functions.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Sep 23 14:27:48 1994 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored) to selected 1.101.2.4 (colored)

Eliminate uses of some obsolete functions.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Sep 23 01:39:00 1994 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.7: +89 -138 lines
Diff to previous 1.7 (colored) to selected 1.101.2.4 (colored)

Merge with 4.4-Lite version.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Fri Sep 23 01:35:34 1994 UTC (29 years, 7 months ago) by mycroft
Branch: WFJ-920714, SGI, CSRG
CVS Tags: lite-1
Changes since 1.1.1.1: +26 -18 lines
Diff to previous 1.1.1.1 (colored) to selected 1.101.2.4 (colored)

Import original 4.4-Lite version.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Dec 15 04:46:13 1993 UTC (30 years, 4 months ago) by hpeyerl
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.6: +63 -5 lines
Diff to previous 1.6 (colored) to selected 1.101.2.4 (colored)

Another multicast patch.
>From LBL and Steve Mccanne

Revision 1.6 / (download) - annotate - [select for diffs], Thu Sep 23 23:03:55 1993 UTC (30 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +8 -8 lines
Diff to previous 1.5 (colored) to selected 1.101.2.4 (colored)

Use doubles to rather than longs to avoid tsum overflowing so quickly.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Aug 1 18:25:47 1993 UTC (30 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored) to selected 1.101.2.4 (colored)

Add RCS identifiers.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jul 22 09:49:57 1993 UTC (30 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.3: +6 -5 lines
Diff to previous 1.3 (colored) to selected 1.101.2.4 (colored)

have ping do the right thing, wrt microseconds.
actually, now it'll overflow its counters sooner than before, and everything
should *really* be converted to doubles and/or "unsigned long long"s

Revision 1.3 / (download) - annotate - [select for diffs], Tue Mar 23 00:29:48 1993 UTC (31 years, 1 month ago) by cgd
Branch: MAIN
CVS Tags: netbsd-alpha-1, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9, netbsd-0-8
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored) to selected 1.101.2.4 (colored)

changed "Id" to "Header" for rcsids

Revision 1.2 / (download) - annotate - [select for diffs], Mon Mar 22 08:04:00 1993 UTC (31 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored) to selected 1.101.2.4 (colored)

added rcs ids to all files

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (31 years, 1 month ago) by cgd
Branch: WFJ-920714, SGI, CSRG
CVS Tags: patchkit-0-2-2, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.101.2.4 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years, 1 month ago) by cgd
Branch: MAIN
Diff to selected 1.101.2.4 (colored)

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>