freebsd-src/sbin/ping
Dag-Erling Smørgrav 4187a7dbbe ping: Fix protocol selection with NOINET6 kernel.
A missing else caused the correct resolver hint (AF_INET) to be
overwritten with AF_UNSPEC when the kernel supports IPv4 but not
IPv6.

MFC after:	3 days
PR:		277592
Sponsored by:	NetApp, Inc.
Sponsored by:	Klara, Inc.
Reviewed by:	allanjude
Differential Revision:	https://reviews.freebsd.org/D44304

(cherry picked from commit b53ae8a833)
2024-03-17 14:37:59 +00:00
..
tests ping: Simplify protocol selection. 2023-12-13 17:39:36 +01:00
main.c ping: Fix protocol selection with NOINET6 kernel. 2024-03-17 14:37:59 +00:00
main.h Remove $FreeBSD$: two-line .h pattern 2023-08-23 11:43:21 -06:00
Makefile ping6(8): Add ping6(8) as MLINK to ping(8) 2023-11-10 15:42:07 +08:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
Makefile.depend.options Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
ping6.c ping: Simplify protocol selection. 2023-12-13 17:39:36 +01:00
ping6.h Remove $FreeBSD$: two-line .h pattern 2023-08-23 11:43:21 -06:00
ping.8 ping: The -C option is also supported for IPv6. 2023-09-29 00:34:54 +00:00
ping.c ping: Avoid reporting NaNs 2023-11-13 10:20:50 -05:00
ping.h Remove $FreeBSD$: two-line .h pattern 2023-08-23 11:43:21 -06:00
utils.c Remove $FreeBSD$: one-line .c pattern 2023-08-23 11:43:26 -06:00
utils.h Remove $FreeBSD$: two-line .h pattern 2023-08-23 11:43:21 -06:00