| History log of /src/usr.bin/netstat/mbuf.c |
| Revision | | Date | Author | Comments |
| 1.36 |
| 24-Feb-2024 |
mlelstv | Don't truncate mo_descr output and protect against missing terminating NUL.
|
| 1.35 |
| 01-Sep-2022 |
msaitoh | branches: 1.35.2; KNF. No functional change.
|
| 1.34 |
| 25-Jun-2019 |
martin | branches: 1.34.2; Limit maximum owner name to appease gcc
|
| 1.33 |
| 28-Jul-2015 |
christos | branches: 1.33.8; 1.33.16; revert previous, will fix differently.
|
| 1.32 |
| 28-Jul-2015 |
christos | fix build (stdbool lossage)
|
| 1.31 |
| 20-Mar-2012 |
matt | Use C89 function definitions
|
| 1.30 |
| 13-Dec-2010 |
pooka | branches: 1.30.6; Add netstat rump client. For now, it always sets -X, i.e. will use only sysctl and no kvm (implementing /dev/mem for a rump kernel would probably not be hard, but still a non-zero effort).
Note: since there is absolutely no network activity in a fresh rump kernel, rump.netstat usually displays exactly nothing when invoked without parameters. Arguments like -r, -bi, -p icmp etc. produce more stuff.
|
| 1.29 |
| 12-Apr-2009 |
lukem | Fix many WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare). Fix probable bug with numeric printing of anon ports when using sysctl.
|
| 1.28 |
| 17-Jan-2008 |
yamt | branches: 1.28.12; sync with kernel. (make some mbuf related statistics per-cpu.)
|
| 1.27 |
| 14-Jan-2008 |
yamt | mbpr: fix a harmless bug. (sizeof pointer -> sizeof *pointer)
|
| 1.26 |
| 10-Nov-2007 |
yamt | don't bother to print unmaintained statistics. (m_drops, m_wait)
|
| 1.25 |
| 09-Nov-2007 |
christos | include stdbool.h instead of typedefing bool to int
|
| 1.24 |
| 04-Aug-2005 |
rpaulo | branches: 1.24.12; Added #include <kvm.h> since netstat.h, which is included too, needs it.
|
| 1.23 |
| 09-Apr-2004 |
atatat | sysctl(3) no longer returns ENOPROTOOPT in this case, but ENOENT, which is a more generic "that's not in the tree" response.
ENOPROTOOPT was specific to the net subtree under the old framework, and didn't add much value (other than letting the caller know they were looking up something under the net subtree, which they presumably ought to have known already).
|
| 1.22 |
| 18-Oct-2003 |
enami | branches: 1.22.2; mbstat.m_drain is still maintained. Don't skip it.
|
| 1.21 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
|
| 1.20 |
| 27-Feb-2003 |
enami | Don't use uninitialized variable.
|
| 1.19 |
| 26-Feb-2003 |
matt | Add MBUFTRACE kernel option. Do a little mbuf rework while here. Change all uses of MGET*(*, M_WAIT, *) to m_get*(M_WAIT, *). These are not performance critical and making them call m_get saves considerable space. Add m_clget analogue of MCLGET and make corresponding change for M_WAIT uses. Modify netinet, gem, fxp, tulip, nfs to support MBUFTRACE. Begin to change netstat to use sysctl.
|
| 1.18 |
| 14-Dec-2002 |
martin | Avoid integer overflow in percent calculation when facing a mbuf leak. Fixes PR bin/19381 by Michael van Elst (slightly different than suggested).
|
| 1.17 |
| 09-Mar-2002 |
sommerfeld | Adapt to pool rototill.
|
| 1.16 |
| 19-Feb-2001 |
cgd | convert to use getprogname()
|
| 1.15 |
| 02-Apr-1999 |
hubertf | Remove duplicated if() statementA. This fixes PR 7308 by Feico Dillema <feico@pasta.cs.uit.no>
|
| 1.14 |
| 31-Mar-1999 |
thorpej | branches: 1.14.2; Define __POOL_EXPOSE to get at the guts of the pool descriptor.
|
| 1.13 |
| 27-Feb-1999 |
sommerfe | fix PR7057: division by zero if no mbufs allocated fix PR7059 (partial): mbuf cluster counts were based on counters which are no longer maintained. (full fix will involve renaming the now-unused fields in mclstat in mbuf.h)
|
| 1.12 |
| 19-Oct-1997 |
lukem | fix up .Nm usage, getopt returns -1 not EOF
|
| 1.11 |
| 03-Apr-1997 |
christos | - netatalk additions - printf format fixes - minor prototype cleanups
|
| 1.10 |
| 28-Feb-1997 |
jonathan | Add compiled-in MCLBYTES and MSIZE to conf/param.c, as 'mclbytes" and "msize".
Add code to netstat to use libkvm to for kernel variables "mclbytes" and "msize', and if found, use those for netstat -m rather than compiled-in defaults.
|
| 1.9 |
| 07-May-1996 |
thorpej | Update for the changes to struct ifnet. While I'm here, fix a couple of long-standing bugs:
- Actually deal with the fact that the kernel ifnet list is a TAILQ; it just happened to work before.
- Use kvm_openfiles() instead of kvm_open(). The code passed arguments to kvm_open() as if it were kvm_openfiles(), but apparently went unnoticed since the prototypes are the same. Amusing bit: there were XXX's in the code which seemed to apologize for a verbose libkvm, when it happened to be a bug in netstat!
|
| 1.8 |
| 03-Oct-1995 |
thorpej | New-style RCS ids.
|
| 1.7 |
| 17-Aug-1995 |
mycroft | Garbage collect mbuf types.
|
| 1.6 |
| 17-Aug-1995 |
mycroft | Garbage collect mbuf types.
|
| 1.5 |
| 13-May-1994 |
mycroft | Clean up import.
|
| 1.4 |
| 01-Apr-1994 |
cgd | kill lots of off_t's.
|
| 1.3 |
| 28-Mar-1994 |
cgd | clean up, for off_t... ugliest 'cleaning' possible, i think...
|
| 1.2 |
| 01-Aug-1993 |
mycroft | Add RCS identifiers.
|
| 1.1 |
| 21-Mar-1993 |
cgd | branches: 1.1.1; after 0.2.2 "stable" patches applied
|
| 1.1.1.1 |
| 06-Oct-1994 |
mycroft | Import original 4.4-Lite version.
|
| 1.14.2.1 |
| 03-Apr-1999 |
hubertf | pullup 1.15
|
| 1.22.2.1 |
| 09-Apr-2004 |
jmc | Pullup rev 1.23 (requested by atatat in ticket #108)
sysctl(3) no longer returns ENOPROTOOPT in this case, but ENOENT, which is a more generic "that's not in the tree" response.
ENOPROTOOPT was specific to the net subtree under the old framework, and didn't add much value (other than letting the caller know they were looking up something under the net subtree, which they presumably ought to have known already).
|
| 1.24.12.2 |
| 23-Mar-2008 |
matt | sync with HEAD
|
| 1.24.12.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
| 1.28.12.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
| 1.30.6.1 |
| 17-Apr-2012 |
yamt | sync with head
|
| 1.33.16.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
| 1.33.8.1 |
| 12-Sep-2022 |
martin | Pull up the following, requested by msaitoh in ticket #1762:
usr.bin/netstat/atalk.c 1.18,1.20-1.21 usr.bin/netstat/bpf.c 1.16 via patch usr.bin/netstat/fast_ipsec.c 1.24 via patch usr.bin/netstat/if.c 1.97-1.99,1.101-1.104 via patch usr.bin/netstat/inet.c 1.111,1.115-1.116 via patch usr.bin/netstat/inet6.c 1.70,1.74-1.75,1.80-1.81 via patch usr.bin/netstat/main.c 1.100,1.102-1.103 usr.bin/netstat/mbuf.c 1.34-1.35 usr.bin/netstat/mroute.c 1.26-1.27 usr.bin/netstat/mroute6.c 1.16 usr.bin/netstat/netstat.h 1.52-1.53 usr.bin/netstat/pfkey.c 1.4-1.5 via patch usr.bin/netstat/pfsync.c 1.4-1.5 via patch usr.bin/netstat/route.c 1.87-1.88 usr.bin/netstat/unix.c 1.36-1.37 usr.bin/netstat/vtw.c 1.11,1.13
- Add names of a few more ICMPv6 messages. Also make the array be explicitly 256 entries long. - sprintf() -> snprintf(), and adjust a buffer size to avoid any potential for overflow. - Add missing {IP,IP6}_STAT_NOIPSEC to netstat. - Don't show any of the completely and utterly undocumented VTW info if the feature isn't enabled. - Print oqdrops correctly. - netstat.1: Add various xrefs present in the body to "See Also". - Limit maximum owner name to appease gcc. - KNF. Style fixes.
|
| 1.34.2.1 |
| 12-Sep-2022 |
martin | Pull up the following, requested by msaitoh in ticket #1522:
usr.bin/netstat/atalk.c 1.18,1.20-1.21 usr.bin/netstat/bpf.c 1.16 via patch usr.bin/netstat/fast_ipsec.c 1.24 usr.bin/netstat/if.c 1.97-1.99,1.101-1.104 via patch usr.bin/netstat/inet.c 1.111,1.115-1.116 via patch usr.bin/netstat/inet6.c 1.74-1.75,1.80-1.81 via patch usr.bin/netstat/main.c 1.100-1.103 usr.bin/netstat/mbuf.c 1.35 usr.bin/netstat/mroute.c 1.26-1.27 usr.bin/netstat/mroute6.c 1.16 usr.bin/netstat/netstat.h 1.52-1.53 usr.bin/netstat/pfkey.c 1.4-1.5 via patch usr.bin/netstat/pfsync.c 1.4-1.5 via patch usr.bin/netstat/route.c 1.86-1.88 usr.bin/netstat/unix.c 1.36-1.37 usr.bin/netstat/vtw.c 1.11,1.13
- sprintf() -> snprintf(), and adjust a buffer size to avoid any potential for overflow. - Fix netstat -rs to print it correctly. - Add missing {IP,IP6}_STAT_NOIPSEC to netstat. - Don't show any of the completely and utterly undocumented VTW info if the feature isn't enabled. - Print oqdrops correctly. - Remove Network ATM soft intr queue reporting, we don't have that in the kernel anymore. - netstat.1: Add various xrefs present in the body to "See Also". - KNF. Style fixes.
|
| 1.35.2.1 |
| 11-Sep-2024 |
martin | Pull up following revision(s) (requested by rin in ticket #837):
usr.bin/netstat/mbuf.c: revision 1.36
Don't truncate mo_descr output and protect against missing terminating NUL.
|