netstat(1): add description for option -o and -O.

Reviewed by: kevans, ziaee, ivy
Approved by: kevans (mentor)
Fixes: fedeb08b6a ("Introduce scalable route multipath.")
Fixes: a666325282 ("Introduce nexthop objects and new routing KPI.")
Pull Request: https://github.com/freebsd/freebsd-src/pull/1643
This commit is contained in:
K Rin 2025-04-07 02:15:07 +08:00 committed by Lexi Winter
parent fe9bf4b9f5
commit afa30c5dec

View file

@ -25,7 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.Dd January 29, 2025
.Dd April 30, 2025
.Dt NETSTAT 1
.Os
.Sh NAME
@ -105,6 +105,10 @@
.It Nm Fl Q
.Op Fl j Ar jail
.Op Fl -libxo
.It Nm Fl o
.Fl 4 | Fl 6
.It Nm Fl O
.Fl 4 | Fl 6
.El
.Ek
.Sh DESCRIPTION
@ -401,6 +405,34 @@ See
.El
.It Xo
.Bk -words
.Nm netstat
.Fl o
.Fl 4 | Fl 6
.Ek
.Xc
Print nexthop (nhops) information associated with routing entries.
When used with
.Fl 4
or
.Fl 6 ,
limit the output to IPv4 or IPv6 routes respectively.
This option provides details about individual nexthop addresses used in routing decisions.
.It Xo
.Bk -words
.Nm netstat
.Fl O
.Fl 4 | Fl 6
.Ek
.Xc
Print nexthop groups (nhgrp) information associated with routing entries.
When used with
.Fl 4
or
.Fl 6 ,
restrict the output to IPv4 or IPv6 nexthop groups respectively.
This option shows grouped nexthop entries for multipath or load-balanced routing setups.
.It Xo
.Bk -words
.Nm
.Fl s
.Op Fl 46sz