diff options
author | Alan Somers <asomers@FreeBSD.org> | 2020-11-26 04:29:30 +0000 |
---|---|---|
committer | Alan Somers <asomers@FreeBSD.org> | 2020-11-26 04:29:30 +0000 |
commit | 3cde9171d2d50852ab782e90acf734f416246e86 (patch) | |
tree | 0d4e70ec68ec4ba273dfc9081f85959963620917 /sbin/ping/ping6.h | |
parent | b05f17a12fc58914e0a5b17f90331627b600432d (diff) | |
download | src-3cde9171d2d50852ab782e90acf734f416246e86.tar.gz src-3cde9171d2d50852ab782e90acf734f416246e86.zip |
Merge ping6 to ping
There is now a single ping binary, which chooses to use ICMP or ICMPv4
based on the -4 and -6 options, and the format of the address.
Submitted by: Ján Sučan <sucanjan@gmail.com>
Sponsored by: Google LLC (Google Summer of Code 2019)
MFC after: Never
Differential Revision: https://reviews.freebsd.org/D21377
Notes
Notes:
svn path=/head/; revision=368045
Diffstat (limited to 'sbin/ping/ping6.h')
-rw-r--r-- | sbin/ping/ping6.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sbin/ping/ping6.h b/sbin/ping/ping6.h new file mode 100644 index 000000000000..5879b3684f2f --- /dev/null +++ b/sbin/ping/ping6.h @@ -0,0 +1,36 @@ +/*- + * SPDX-License-Identifier: BSD-2-Clause-FreeBSD + * + * Copyright (C) 2019 Jan Sucan <jansucan@FreeBSD.org> + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $FreeBSD$ + */ + +#ifndef PING6_H +#define PING6_H 1 + +int ping6(int argc, char *argv[]); + +#endif |