Page MenuHomeFreeBSD

route.8: Describe metric modifier
ClosedPublic

Authored by pouria on Fri, May 15, 10:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 8, 6:30 PM
Unknown Object (File)
Mon, Jun 8, 7:45 AM
Unknown Object (File)
Sat, Jun 6, 5:17 PM
Unknown Object (File)
Thu, Jun 4, 5:44 PM
Unknown Object (File)
Thu, Jun 4, 1:59 AM
Unknown Object (File)
Wed, Jun 3, 11:27 PM
Unknown Object (File)
Wed, Jun 3, 6:51 AM
Unknown Object (File)
Sun, May 31, 3:12 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.Wed, May 20, 8:59 PM
This revision was automatically updated to reflect the committed changes.