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)
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)
Thu, Sep 18, 6:16 AM
Unknown Object (File)
Sep 10 2025, 2:09 PM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 65344
Build 62227: arc lint + arc unit

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