Page MenuHomeFreeBSD

route.8: Describe metric modifier
ClosedPublic

Authored by pouria on May 15 2026, 10:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Aug 9, 7:00 AM
Unknown Object (File)
Sat, Aug 8, 8:35 AM
Unknown Object (File)
Thu, Aug 6, 12:26 PM
Unknown Object (File)
Sun, Aug 2, 5:44 AM
Unknown Object (File)
Sun, Aug 2, 3:53 AM
Unknown Object (File)
Sat, Aug 1, 5:24 AM
Unknown Object (File)
Fri, Jul 31, 12:45 AM
Unknown Object (File)
Thu, Jul 30, 8:44 PM
Subscribers

Details

Summary

Describe -metric argument in the route manual.

Depends on D56335

Test Plan

mandoc lint:
mandoc -Tlint sbin/route/route.8

Diff Detail

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

Event Timeline

Thanks for doing this!

sbin/route/route.8
178

I don't have experience doing advanced networking, but should there also be some kind of structure in this area somewhere so it says something like:

route [-n] command [-net | -host] destination [gateway [-weight] [netmask]] [-fib number]

329

Maybe?

sbin/route/route.8
178

I don't have experience doing advanced networking, but should there also be some kind of structure in this area somewhere so it says something like:

route [-n] command [-net | -host] destination [gateway [-weight] [netmask]] [-fib number]

You're right, we should include -weight and -metric in that too.
but there are too many keywords too include AND you can use -metric without specifying -gateway during route del and vice versa.
So [gateway [-weight] [netmask]] won't help much.

329

I prefer to use word selected instead of preferred.
words like cost, metric, preference are similar but have their own technical meaning in routing stack.
I don't want to accidentally confuse users.

sbin/route/route.8
178

sounds like we need another list like what's on 335. we could do that in a followup commit, if you want?

329

okay, thanks for explaining!

sbin/route/route.8
178

Yes! That's a good idea.
I'll work on one in another revision.

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.