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

(cherry picked from commit 6543fa5a5c47cfbea92586f0994431fc8ba09f6a)

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
rGeda5293cd74a: debugnet: fix an errant assertion
Branches
Unknown
Tags
Unknown