History log of /src/usr.bin/netstat/netstat.1 (Results 1 – 25 of 477)
Revision Date Author Comments
# cc61a079 16-Jul-2025 Alan Somers <asomers@FreeBSD.org>

manpages: prefer linking to xo_options.7 over xo_parse_args.3

Most libxo-enabled utilities link to xo_parse_args.3. But that man page
doesn't actually describe how to format command-line arguments.

manpages: prefer linking to xo_options.7 over xo_parse_args.3

Most libxo-enabled utilities link to xo_parse_args.3. But that man page
doesn't actually describe how to format command-line arguments. Rather,
xo_options.7 does. I suspect that these utilities link to the former
because the latter man page did not exist until libxo-0.7.2
(8a6eceff3ce). And newer utilities have probably been copy/pasting the
same text from older ones. But the superior man page does exist now,
so we should link to it instead.

MFC after: 2 weeks
Sponsored by: ConnectWise
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D51354

show more ...


# 76856ead 13-Jul-2025 Lukas Engelhardt <lukas.engelhardt@gmx.de>

netstat.1: Add common example to list listening sockets

While here, wrap to 80 characters.

Approved by: ziaee
Differential Revision: https://reviews.freebsd.org/D51280


# afa30c5d 06-Apr-2025 K Rin <rin@sandb0x.tw>

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 ("Intro

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

show more ...


# c2aa9174 03-Feb-2025 Gleb Smirnoff <glebius@FreeBSD.org>

netstat: restore printing the "default" keyword, provide -nn option

Avoid POLA breakage and preserve output standard that really predates
the FreeBSD project itself. There are scripts in the wild t

netstat: restore printing the "default" keyword, provide -nn option

Avoid POLA breakage and preserve output standard that really predates
the FreeBSD project itself. There are scripts in the wild that rely
on the behavior.

Provide option to specify -nn twice to have a completely numeric
output of the routing tables.

Fixes: 9206c79961986c2114a9a2cfccf009ac010ad259
This reverts commit e090646d6f5a4a6848ecd4bcb1f2db498ea3b3e2.

Reviewed by: zlei, gallatin, melifaro, allanjude, markj, emaste
Differential Revision: https://reviews.freebsd.org/D48729

show more ...


# 1d551845 17-Jul-2024 Bram <bram@cbbg.nl>

netstat.1: Clarify -d argument

The man page states that the -d flag can be used to show the dropped
packets. But, the number of dropped input packets are always shown,
independent of the -d flag. Th

netstat.1: Clarify -d argument

The man page states that the -d flag can be used to show the dropped
packets. But, the number of dropped input packets are always shown,
independent of the -d flag. This commit clarifies that the -d flag will
add the number of dropped output packets to the output.

MFC after: 3 days
Reviewed by: imp, Alexander Ziaee
Pull Request: https://github.com/freebsd/freebsd-src/pull/1332

show more ...


# bdcbfde3 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.bin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a pe

usr.bin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix

show more ...


# b2c76c41 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line nroff pattern

Remove /^\.\\"\s*\$FreeBSD\$$\n/


# 3af3571c 16-Aug-2023 Doug Rabson <dfr@FreeBSD.org>

netstat(1): fix manpage date

MFC after: 1 week


# 182e8ae2 14-Aug-2023 Doug Rabson <dfr@FreeBSD.org>

netstat(1): teach netstat to attach to jails

Add -j <jail> flag to netstat(1) to allow access to network information
from a jail.

MFC after: 1 week
Differential Revision: https://reviews.freebsd.or

netstat(1): teach netstat to attach to jails

Add -j <jail> flag to netstat(1) to allow access to network information
from a jail.

MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D41446

show more ...


# 372e3d56 26-Jul-2023 Mike Karels <karels@FreeBSD.org>

netstat -i: compute most field widths dynamically

The network and address fields were sometimes truncated for netstat -i
without -W, and often much too wide for netstat -i with the -W option.
Fields

netstat -i: compute most field widths dynamically

The network and address fields were sometimes truncated for netstat -i
without -W, and often much too wide for netstat -i with the -W option.
Fields such as normal packet counts often overflowed. As a result,
columns didn't line up, and large white spaces made it harder to
follow a line across the display. Change the code to compute the
required field sizes for network, address, and various packet counts.
Hoist the code to format network and address into a subroutine that
can be called twice, once to measure the required field widths,
and once to emit the values. Use separate field widths for input
and output packets, byte counts, and error and drop counters.
These are left at defaults (the preceding values) with the -h
option, in which case the fields have a limited total width.
An extra space is included between the Network and Address, which
otherwise seemed too close.

Change the mention of -W with -i in the man page to say that most
field widths are computed dynamically in this case.

MFC after: 1 week
Reviewed by: sjg, glebius
Differential Revision: https://reviews.freebsd.org/D41160

show more ...


# e495600c 26-Jun-2023 Tom Hukins <tom@FreeBSD.org>

netstat(1): Use simpler language

Reviewed by: imp, Mina Galić
Pull Request: https://github.com/freebsd/freebsd-src/pull/771


# 373b9597 19-Apr-2023 Michael Tuexen <tuexen@FreeBSD.org>

netstat: document that PCB information can't be read from corefiles

Reviewed by: glebius, cc
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D39610


# 91706f0d 18-Feb-2023 Fernando Apesteguía <fernape@FreeBSD.org>

netstat.1: Clarify -i and -I priorities

netstat(1) allows to specify both -i (all interfaces) and -I <ifname>.
However, when both are specified, -I always overrides -i.
Add a comment where appropria

netstat.1: Clarify -i and -I priorities

netstat(1) allows to specify both -i (all interfaces) and -I <ifname>.
However, when both are specified, -I always overrides -i.
Add a comment where appropriate the same way we do in rm(1) for -f and -i.

PR: 202708
Reported by: demon@
Approved by: manpages (pauamma@)
Differential Revision: https://reviews.freebsd.org/D38654

show more ...


# 657729a8 02-Dec-2022 Gleb Smirnoff <glebius@FreeBSD.org>

Retire trpt(8).

trpt(8) was utility to pull TCP debugging data from the kernel
originating back from 4.2BSD. It is not used nowadays by TCP
developers. We have more powerful debugging facilities,

Retire trpt(8).

trpt(8) was utility to pull TCP debugging data from the kernel
originating back from 4.2BSD. It is not used nowadays by TCP
developers. We have more powerful debugging facilities, e.g.
the Dtrace probing, the TCP black box logging and siftr.

Discussed with: rscheff, tuexen, rrs, jtl and others

show more ...


# 231092bb 02-Jul-2022 Mike Karels <karels@FreeBSD.org>

netstat -i: do not truncate interface names

The field for interface names for netstat -i was 5 characters by
default, which is no longer sufficient with names like "vlan1234"
and "vtnet0". netstat

netstat -i: do not truncate interface names

The field for interface names for netstat -i was 5 characters by
default, which is no longer sufficient with names like "vlan1234"
and "vtnet0". netstat -iW computed the necessary field width, but
also enlarged the address field by a lot (especially with IPv6 enabled).
Make netstat -i compute the field width for interface names with or
without -W. Note that the existing default output does not fit in
80 columns in any case. Update the man page accordingly, documenting
the remaining effect of -W with -i. Also add -W to the list of
General Options, as there are numerous pointers to this.

Reported by: Chris Ross
Reviewed by: melifaro, rgrimes, cy
Differential Revision: https://reviews.freebsd.org/D35703
MFC after: 1 week

show more ...


# d59bc188 27-May-2022 Gleb Smirnoff <glebius@FreeBSD.org>

sockbuf: remove unused mbuf counter and cluster counter

With M_EXTPG mbufs these two counters already do not represent the
reality. As we are moving towards protocol independent socket buffers,
whi

sockbuf: remove unused mbuf counter and cluster counter

With M_EXTPG mbufs these two counters already do not represent the
reality. As we are moving towards protocol independent socket buffers,
which may not even use mbufs at all, the counters become less and less
relevant. The only userland seeing them was 'netstat -x'.

PR: 264181 (exp-run)
Reviewed by: markj
Differential revision: https://reviews.freebsd.org/D35334

show more ...


# 0e5e35e3 09-Oct-2020 Richard Scheffenegger <rscheff@FreeBSD.org>

Extend netstat to display TCP stack and detailed congestion state

Adding the "-c" option used to show detailed per-connection
congestion control state for TCP sessions.

This is one summary patch, w

Extend netstat to display TCP stack and detailed congestion state

Adding the "-c" option used to show detailed per-connection
congestion control state for TCP sessions.

This is one summary patch, which adds the relevant variables into
xtcpcb. As previous "spare" space is used, these changes are ABI
compatible.

Reviewed by: tuexen
MFC after: 2 weeks
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D26518

show more ...


# b98a21f6 13-Sep-2020 Michael Tuexen <tuexen@FreeBSD.org>

Add a -C option to netstat to display the congestion control for
TCP connections.

Reviewed by: rscheff
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd

Add a -C option to netstat to display the congestion control for
TCP connections.

Reviewed by: rscheff
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D26414

show more ...


# c7aa572c 31-Jul-2020 Glen Barber <gjb@FreeBSD.org>

MFH

Sponsored by: Rubicon Communications, LLC (netgate.com)


# f8f51b49 21-Jul-2020 Fernando Apesteguía <fernape@FreeBSD.org>

netstat(1): Add EXAMPLES section

* Add small EXAMPLES section
* Fix warning reported by mandoc (./netstat.1:747:2: WARNING: skipping paragraph
macro: Pp before Ss)

Approved by: manpages (gbe)
Dif

netstat(1): Add EXAMPLES section

* Add small EXAMPLES section
* Fix warning reported by mandoc (./netstat.1:747:2: WARNING: skipping paragraph
macro: Pp before Ss)

Approved by: manpages (gbe)
Differential Revision: https://reviews.freebsd.org/D25212

show more ...


# cc61a079 16-Jul-2025 Alan Somers <asomers@FreeBSD.org>

manpages: prefer linking to xo_options.7 over xo_parse_args.3

Most libxo-enabled utilities link to xo_parse_args.3. But that man page
doesn't actually describe how to format command-line arguments.

manpages: prefer linking to xo_options.7 over xo_parse_args.3

Most libxo-enabled utilities link to xo_parse_args.3. But that man page
doesn't actually describe how to format command-line arguments. Rather,
xo_options.7 does. I suspect that these utilities link to the former
because the latter man page did not exist until libxo-0.7.2
(8a6eceff3ce). And newer utilities have probably been copy/pasting the
same text from older ones. But the superior man page does exist now,
so we should link to it instead.

MFC after: 2 weeks
Sponsored by: ConnectWise
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D51354

show more ...


# 76856ead 13-Jul-2025 Lukas Engelhardt <lukas.engelhardt@gmx.de>

netstat.1: Add common example to list listening sockets

While here, wrap to 80 characters.

Approved by: ziaee
Differential Revision: https://reviews.freebsd.org/D51280


# afa30c5d 06-Apr-2025 K Rin <rin@sandb0x.tw>

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 ("Intro

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

show more ...


# c2aa9174 03-Feb-2025 Gleb Smirnoff <glebius@FreeBSD.org>

netstat: restore printing the "default" keyword, provide -nn option

Avoid POLA breakage and preserve output standard that really predates
the FreeBSD project itself. There are scripts in the wild t

netstat: restore printing the "default" keyword, provide -nn option

Avoid POLA breakage and preserve output standard that really predates
the FreeBSD project itself. There are scripts in the wild that rely
on the behavior.

Provide option to specify -nn twice to have a completely numeric
output of the routing tables.

Fixes: 9206c79961986c2114a9a2cfccf009ac010ad259
This reverts commit e090646d6f5a4a6848ecd4bcb1f2db498ea3b3e2.

Reviewed by: zlei, gallatin, melifaro, allanjude, markj, emaste
Differential Revision: https://reviews.freebsd.org/D48729

show more ...


# 1d551845 17-Jul-2024 Bram <bram@cbbg.nl>

netstat.1: Clarify -d argument

The man page states that the -d flag can be used to show the dropped
packets. But, the number of dropped input packets are always shown,
independent of the -d flag. Th

netstat.1: Clarify -d argument

The man page states that the -d flag can be used to show the dropped
packets. But, the number of dropped input packets are always shown,
independent of the -d flag. This commit clarifies that the -d flag will
add the number of dropped output packets to the output.

MFC after: 3 days
Reviewed by: imp, Alexander Ziaee
Pull Request: https://github.com/freebsd/freebsd-src/pull/1332

show more ...


12345678910>>...20