Page MenuHomeFreeBSD

ping: Consistently use EX_NOHOST for DNS failures.
ClosedPublic

Authored by des on Oct 11 2023, 7:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Aug 4, 2:58 AM
Unknown Object (File)
Mon, Jul 28, 2:51 PM
Unknown Object (File)
Mon, Jul 28, 11:05 AM
Unknown Object (File)
Sat, Jul 19, 11:46 PM
Unknown Object (File)
Jun 24 2025, 4:00 PM
Unknown Object (File)
Jun 19 2025, 11:21 AM
Unknown Object (File)
Jun 15 2025, 5:51 AM
Unknown Object (File)
Jun 14 2025, 7:48 AM
Subscribers

Details

Summary

Traditionally, ping returned exit code EX_NOHOST if a DNS lookup failed.
That is still the case for the legacy code in the new merged ping, but
not for IPv6 targets, nor when a DNS lookup is performed in order to
determine which version of the tool to invoke.

While here, also make sure that the error message is consistent.

Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 53927
Build 50817: arc lint + arc unit

Event Timeline

des requested review of this revision.Oct 11 2023, 7:18 PM
This revision is now accepted and ready to land.Oct 11 2023, 7:21 PM
This revision now requires review to proceed.Oct 11 2023, 7:38 PM
This revision is now accepted and ready to land.Oct 11 2023, 7:41 PM