opnsense-src/sbin/ping
Dag-Erling Smørgrav c3f4736f04 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 b53ae8a8333d730bb977276c511743b98c881423)
2024-03-17 14:38:12 +00:00
..
tests ping: Simplify protocol selection. 2023-12-13 17:41:46 +01:00
main.c ping: Fix protocol selection with NOINET6 kernel. 2024-03-17 14:38:12 +00:00
main.h ping: Unify ping/ping6 statistics section 2023-11-06 11:45:43 -05:00
Makefile ping6(8): Add ping6(8) as MLINK to ping(8) 2023-11-10 15:41:32 +08:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend.options Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ping.8 ping: The -C option is also supported for IPv6. 2023-09-22 09:50:32 +02:00
ping.c ping: pr_iph() improvements 2023-11-06 11:45:44 -05:00
ping.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
ping6.c ping: Simplify protocol selection. 2023-12-13 17:41:46 +01:00
ping6.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
utils.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
utils.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00