Page MenuHomeFreeBSD

rtnetlink: Don't send RTA_PRIORITY if has default value
AbandonedPublic

Authored by pouria on May 27 2026, 10:58 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Aug 13, 2:27 AM
Unknown Object (File)
Mon, Aug 10, 2:26 PM
Unknown Object (File)
Sat, Aug 8, 11:41 AM
Unknown Object (File)
Sat, Aug 8, 9:32 AM
Unknown Object (File)
Sat, Aug 8, 8:39 AM
Unknown Object (File)
Sat, Aug 8, 7:14 AM
Unknown Object (File)
Fri, Aug 7, 3:09 PM
Unknown Object (File)
Fri, Aug 7, 7:24 AM
Subscribers

Details

Reviewers
melifaro
glebius
markj
Group Reviewers
network
Summary

Also update route(8) and netstat(8) to show
default metric if it was not specified.
This helps reducing netlink message size.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 73473
Build 70356: arc lint + arc unit

Event Timeline

I'm not sure - defaults tend to change and hardcoding those in netstat / rtsock seem somewhat fragile. Let's maybe take a step back - is there any measurable performance difference after the change?