Page MenuHomeFreeBSD

route.8: Describe metric modifier
ClosedPublic

Authored by pouria on May 15 2026, 10:03 PM.
Tags
None
Referenced Files
F173865358: D57025.id178287.diff
Mon, Sep 28, 11:51 PM
F173862032: D57025.id177909.diff
Mon, Sep 28, 11:22 PM
Unknown Object (File)
Thu, Sep 24, 11:31 PM
Unknown Object (File)
Thu, Sep 24, 6:15 AM
Unknown Object (File)
Thu, Sep 24, 4:44 AM
Unknown Object (File)
Tue, Sep 22, 10:02 PM
Unknown Object (File)
Fri, Sep 18, 8:17 PM
Unknown Object (File)
Fri, Sep 11, 6:54 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.