HomeFreeBSD

ping: Fix protocol selection with NOINET6 kernel.

Description

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)

Details

Provenance
desAuthored on Mar 12 2024, 7:40 PM
Reviewer
allanjude
Differential Revision
D44304: ping: Fix protocol selection with NOINET6 kernel.
Parents
rG0cb72c25b01a: psci: split off psci_reboot from psci_shutdown
Branches
Unknown
Tags
Unknown