HomeFreeBSD

ifconfig: add -D option to print driver name for interface

Description

ifconfig: add -D option to print driver name for interface

Add -D option to add the drivername and unit number to ifconfig output
for normal display, including -a. Use ifconfig_get_orig_name() from
libifconfig to fetch the name. Note that this is the original name
for many drivers, but not for some exceptions like epair (which appends
'a' or 'b' to the unit number). epair interface pairs both display
as "epair0", etc. Make -v imply -D; might as well be fully verbose.

Reviewed by: zlei, kp
Differential Revision: https://reviews.freebsd.org/D42721

(cherry picked from commit cd201c090858e5cfae3be005453ec634c1fca36a)

Details

Provenance
karelsAuthored on Nov 28 2023, 7:47 PM
Reviewer
zlei
Differential Revision
D42721: ifconfig: add -D option to print driver name for interface
Parents
rG020432848ee5: vmstat: fix column names broken in c168508655720
Branches
Unknown
Tags
Unknown