Page MenuHomeFreeBSD

route(8): Show metric value in get route
ClosedPublic

Authored by pouria on Apr 8 2026, 9:56 PM.
Tags
None
Referenced Files
F166166662: D56325.id177146.diff
Wed, Aug 12, 1:02 AM
F166151871: D56325.id178285.diff
Tue, Aug 11, 11:46 PM
Unknown Object (File)
Mon, Aug 10, 11:40 AM
Unknown Object (File)
Mon, Aug 10, 7:09 AM
Unknown Object (File)
Sun, Aug 9, 7:00 PM
Unknown Object (File)
Sun, Aug 9, 4:30 AM
Unknown Object (File)
Sat, Aug 8, 6:16 PM
Unknown Object (File)
Sat, Aug 8, 9:17 AM
Subscribers

Diff Detail

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

Event Timeline

pouria requested review of this revision.Apr 8 2026, 9:56 PM
This revision is now accepted and ready to land.Apr 12 2026, 7:50 PM

Remove extra macros to update according to parent revision.

This revision now requires review to proceed.May 4 2026, 11:34 AM

I accidently amended D56326 into this revision.
Exclude it.

sbin/route/route_netlink.c
391

We're not worried about breaking compatibility for scripts which extract columns from this output?

sbin/route/route_netlink.c
391

Honestly, route get output is not script (grep/cut) friendly.
And in this case, IMHO, we really should put metric before weight.

This revision was not accepted when it landed; it landed in state Needs Review.May 20 2026, 8:59 PM
This revision was automatically updated to reflect the committed changes.