HomeFreeBSD

Make ping6(1) return code consistent with the man page.

Description

Make ping6(1) return code consistent with the man page.
When every sendto() call originated by ping6(1) fails, current code always
returns 2 ("transmission was successful but no responses were received")
which is incorrect. Return EX_OSERR instead as in many cases it indicates
some kernel-level problems.

MFC after: 3 weeks

Details

Provenance
melifaroAuthored on
Parents
rS357966: Merge ^/head r357931 through r357965.
Branches
Unknown
Tags
Unknown