Page MenuHomeFreeBSD

ifconfig: don't print bridge member ifmaxaddr if it's 0
ClosedPublic

Authored by ivy on Jul 11 2025, 7:06 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 15, 2:51 PM
Unknown Object (File)
Sun, Oct 12, 12:50 AM
Unknown Object (File)
Sun, Oct 12, 12:49 AM
Unknown Object (File)
Sun, Oct 12, 12:49 AM
Unknown Object (File)
Sat, Oct 11, 3:19 PM
Unknown Object (File)
Sun, Sep 28, 5:03 AM
Unknown Object (File)
Fri, Sep 19, 5:19 AM
Unknown Object (File)
Sep 18 2025, 6:16 AM
Subscribers

Details

Summary

Most bridge interfaces will have ifmaxaddr set to 0 (the default).
Save a little horizontal space by not printing it in this case.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ivy requested review of this revision.Jul 11 2025, 7:06 AM
kp added a subscriber: kp.

On the one hand, this might break scripts if people try to parse ifconfig output. On the other hand, they really shouldn't.

This revision is now accepted and ready to land.Jul 12 2025, 12:14 PM