git: 3de5e282e52c - stable/14 - netstat(1): add description for option -o and -O.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 07 May 2025 18:59:11 UTC
The branch stable/14 has been updated by ivy: URL: https://cgit.FreeBSD.org/src/commit/?id=3de5e282e52c87bd2d17b6e17c483b6f5826922d commit 3de5e282e52c87bd2d17b6e17c483b6f5826922d Author: K Rin <rin@sandb0x.tw> AuthorDate: 2025-04-06 18:15:07 +0000 Commit: Lexi Winter <ivy@FreeBSD.org> CommitDate: 2025-05-07 18:53:06 +0000 netstat(1): add description for option -o and -O. Reviewed by: kevans, ziaee, ivy Approved by: kevans (mentor) Fixes: fedeb08b6a58 ("Introduce scalable route multipath.") Fixes: a666325282ea ("Introduce nexthop objects and new routing KPI.") Pull Request: https://github.com/freebsd/freebsd-src/pull/1643 (cherry picked from commit afa30c5dec5afc8496172a062c93e96d78f5b9b9) --- usr.bin/netstat/netstat.1 | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/usr.bin/netstat/netstat.1 b/usr.bin/netstat/netstat.1 index 0a1f3342168c..9b476e6825e6 100644 --- a/usr.bin/netstat/netstat.1 +++ b/usr.bin/netstat/netstat.1 @@ -27,7 +27,7 @@ .\" .\" @(#)netstat.1 8.8 (Berkeley) 4/18/94 .\" -.Dd July 29, 2024 +.Dd April 30, 2025 .Dt NETSTAT 1 .Os .Sh NAME @@ -107,6 +107,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 @@ -403,6 +407,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