HomeFreeBSD

dumpon: warn if the configured netdump link is down

Description

dumpon: warn if the configured netdump link is down

Previously we expected the DIOCSKERNELDUMP ioctl to return ENXIO if the
interface was down, but it does not actually do this. Grab the link
status using getifaddrs(3) instead, and downgrade this case from an
error to a warning; the user might bring the link back up at a later
time.

Reviewed by: cem
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D35196

Details

Provenance
mhorneAuthored on May 14 2022, 1:25 PM
Reviewer
cem
Differential Revision
D35196: dumpon: warn if the configured netdump link is down
Parents
rG38a36057ae56: netdump: check the support status of the interface
Branches
Unknown
Tags
Unknown