HomeFreeBSD

netdump: check the support status of the interface

Description

netdump: check the support status of the interface

If the interface does not support debugnet(4) we should bail early,
rather than having the user find this out at the time of the panic.
dumpon(8) already expects this return value and will print a helpful
error message.

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

(cherry picked from commit 38a36057ae56c8023878f3c3c2185bafc2896964)

Details

Provenance
mhorneAuthored on May 14 2022, 1:23 PM
Reviewer
cem
Differential Revision
D35180: netdump: check the support status of the interface
Parents
rG6350ace614fc: Drop d_dump from struct cdevsw
Branches
Unknown
Tags
Unknown