HomeFreeBSD

ifconfig: fix 'ifconfig -l ether'

Description

ifconfig: fix 'ifconfig -l ether'

When matching interfaces for being Ethernet, use same trick that
the link module does - pass if_type through convert_iftype().
That restores historicaly behaviour of listing lagg(4) ports.

Reviewed by: melifaro
Differential Revision: https://reviews.freebsd.org/D41585

(cherry picked from commit 31016aa0be6dbf7556a91dda14cfe1ff0dcf933b)

Details

Provenance
glebiusAuthored on Aug 25 2023, 5:31 PM
zleiCommitted on Feb 5 2026, 6:10 PM
Reviewer
melifaro
Differential Revision
D41585: ifconfig: fix 'ifconfig -l ether'
Parents
rG7bdf066ad212: ifconfig: fix logical error in interface matching for '-l ether'
Branches
Unknown
Tags
Unknown