| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Found by: WARNS=6
MFC after: 3 days
|
|
|
|
|
| |
Found by: WARNS=6
MFC after: 3 days
|
|
|
|
|
| |
shouldn't be printed after the last column. This restores the
formatting to 79 columns.
|
|
|
|
| |
Submitted by: ru
|
| |
|
| |
|
|
|
|
|
| |
Requested by: Tomasz Pilat <tomasz.pilat (at) axelspringer.pl>
Approved by: andre
|
|
|
|
|
|
|
|
| |
- Fix a nlist initialization: it should be terminated by a NULL entry.
- Constify.
- Catch an unused parameter.
Tested on: i386 amd64 ia64
|
|
|
|
|
|
|
| |
including to printf(). Using uintmax_t is also robust to further
extensions in both the C language and the bitwidth of kernel counters.
Tested on: i386 amd64 ia64
|
|
|
|
| |
so we should cast them to a type printf() knows about.
|
|
|
|
|
| |
This also avoids pretending that netstat includes inet6.c in the
output from ident(1).
|
|
|
|
| |
MFC after: 1 week
|
|
|
|
|
|
| |
memory directly, we should do timebase conversion for route lifetime.
Approved by: glebius (mentor)
|
|
|
|
|
|
|
|
| |
http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html
The src.conf(5) manpage is to follow in a few days.
Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
|
|
|
|
|
| |
Sponsored by: TCP/IP Optimization Fundraise 2005
MFC after: 3 days
|
|
|
|
|
| |
Sponsored by: TCP/IP Optimization Fundraise 2005
MFC after: 3 days
|
|
|
|
|
| |
Sponsored by: TCP/IP Optimization Fundraise 2005
MFC after: 3 days
|
|
|
|
| |
MFC after: 3 days
|
|
|
|
|
|
| |
and packets in netstat -m.
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
with FAST_IPSEC rather than the KAME IPSEC stack.
Note that the output of "netstat -s -p ipsec" differs depending on which
stack is compiled into the kernel since they each keep different stats.
This delta also adds the "esp", "ah", and "ipcomp" protocol stats, which
are also available when the kernel is compiled with the FAST_IPSEC stack
(e.g. "netstat -s -p esp").
Submitted by: Matt Titus <titus at nttmcl dot com>
MFC after: 3 days
|
|
|
|
|
| |
supposed to mean. Also, add an external references for bpf now that we
reference flags from that man page.
|
|
|
|
| |
commit to fix up kvm support for netstat -m.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
kernel memory and not using sysctl. Previously, libmemstat was used
only for the live kernel via sysctl paths.
This results in netstat output becoming both more consistent between
core dumps and the live kernel, and also more information in the core
dump case than previously (i.e., mbuf cache information).
Statistics relating to sfbufs still rely on a kvm descriptor as they
are not currently exposed via libmemstat. netstat -m operating on a
core is still unable to print certain sfbuf stats available on the live
kernel.
MFC after: 1 week
|
| |
|
|
|
|
|
|
| |
PR: bin/87783
Submitted by: Mats Palmgren
MFC after: 1 week
|
|
|
|
|
|
|
|
| |
replacement and has additional features which make it superior.
Discussed on: -arch
Reviewed by: thompsa
X-MFC-after: never (RELENG_6 as transition period)
|
|
|
|
|
| |
- Utilize show_stat() in sidewaysintpr() loop. This makes periodic
statistics to honor -h flag.
|
| |
|
| |
|
|
|
|
|
|
| |
retrieve statistic information for them.
Pointed out by: Pawel Worach < pawel.worach at gmail.com >
|
|
|
|
|
| |
that critical as the program exits after this point anyway, but this may
not always be the case.
|
|
|
|
| |
Pointed out by: ru
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
a -B option which causes bpf peers to be printed. This option can be
used in conjunction with -I if information about specific interfaces
is desired. This is similar to what NetBSD added to their version of
netstat.
$ netstat -B
Pid Netif Flags Recv Drop Match Sblen Hblen Command
1137 lo0 p--s-- 0 0 0 0 0 tcpdump
205 sis0 -ifs-l 37331 0 1 0 0 dhclient
$
$ netstat -I lo0 -B
Pid Netif Flags Recv Drop Match Sblen Hblen Command
1174 lo0 p--s-- 0 0 0 0 0 tcpdump
$
-Add bpf.c which stores all the code for retrieving and parsing bpf
related statistics.
-Modify main.c to add support for the -B option and hook it into the
program logic.
-Add bpf.c to the build.
-Document this new functionality in the man page and bump the revision
date.
-Add prototype for bpf_stats function.
|
|
|
|
|
|
| |
display of netstat(1).
MFC after: 3 days
|
|
|
|
|
| |
"all interfaces" mode. (Only works with -w, but still better
than nothing.)
|
|
|
|
|
|
|
| |
statistics in human readable form.
In collaboration with: vsevolod
Reviewed by: cperciva
|
| |
|
| |
|
|
|
|
|
|
|
| |
use that instead of trying to use errno, in order to produce a
sensible error message.
MFC after: 1 day
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
with a number of positive benefits:
- Start using UMA(9) statistics for mbufs and clusters, which avoids
using the mbuf allocator statistics which suffer from races under
load on SMP. This should eliminate "negative" mbuf counts in
netstat -mb.
- We are now able to track cached (free) mbufs and clusters and count
it towards memory allocated by the network stack.
- We are now also able to track memory allocated to mbuf tags since
libmemstat(3) can also query malloc(9). We don't print this except
as part of the total (for now - #if 0).
- We are now able to track mbuf/cluster/packet allocation failures,
although they are not currently printed (#if 0).
- Don't print out sfbuf statistics when running on a kernel core, as
currently that code is able only to query sysctl for statistics.
MFC after: 1 week
|
|
|
|
|
| |
Requested by: glebius
MFC after: 1 week
|
|
|
|
|
| |
NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special
for it, now.
|
| |
|
|
|
|
|
|
|
|
| |
per-connection and globally. This eliminates potential DoS attacks
where SACK scoreboard elements tie up too much memory.
Submitted by: Raja Mukerji (raja at moselle dot com).
Reviewed by: Mohan Srinivasan (mohans at yahoo-inc dot com).
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
hosts to share an IP address, providing high availability and load
balancing.
Original work on CARP done by Michael Shalayeff, with many
additions by Marco Pfatschbacher and Ryan McBride.
FreeBSD port done solely by Max Laier.
Patch by: mlaier
Obtained from: OpenBSD (mickey, mcbride)
|
|
|
|
|
|
| |
WARNS?= should appear before CFLAGS
Reviewed by: ru
|
|
|
|
|
|
|
|
| |
Without this change, when running netstat with a kernel without
INET6 built in, you will get a complain at the end of "netstat -s"
output.
X-MFC: NO_INET6 was called "NOINET6" on RELENG_5
|
|
|
|
| |
LIST_FOREACH() is difficult to use correctly, so don't try to.
|
|
|
|
|
|
|
|
|
|
|
| |
netstat(1):
- Make previously unnecessarily global variables local.
- Use LIST_FOREACH() in preference to manual iteration.
- Restore a sanity check through slightly incestuous use of queue macro
knowledge.
Submitted by: rik
|