History log of /src/usr.bin/netstat/unix.c |
Revision | | Date | Author | Comments |
1.37 |
| 02-Sep-2022 |
msaitoh | KNF. No functional change.
|
1.36 |
| 01-Sep-2022 |
msaitoh | KNF. No functional change.
|
1.35 |
| 13-Jan-2017 |
christos | branches: 1.35.6; 1.35.16; use _KMEMUSER for <sys/file.h>
|
1.34 |
| 20-Mar-2012 |
matt | branches: 1.34.14; Use C89 function definitions
|
1.33 |
| 29-May-2011 |
manu | branches: 1.33.4; Display SOCK_SEQPACKET local sockets in sockstat and netstat
|
1.32 |
| 04-May-2011 |
dyoung | Access the kvm_t using get_kvmd(), only.
|
1.31 |
| 13-Dec-2010 |
pooka | 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.30 |
| 22-Apr-2010 |
plunky | no need to forward declare struct uio and proc before including <sys/file.h> as it does that internally, and don't continue the _KERNEL definition afterwards as it causes some other problems with pcc relating to unreferenced symbols in unused static inline functions which gcc optimises away.
|
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 |
| 27-Feb-2008 |
ad | branches: 1.28.10; - Define _KERNEL for sys/types.h in unix.c. - caddr_t -> char * in a couple of places.
|
1.27 |
| 22-Sep-2006 |
elad | branches: 1.27.8; 1.27.14; PR/31347: Geoff C. Wing: netstat err message is ambiguous about cause Applied patch, thanks!
|
1.26 |
| 21-May-2006 |
liamjfoy | check if malloc(3) failed
ok joerg@
|
1.25 |
| 11-May-2006 |
mrg | branches: 1.25.2; nfiles -> ns_nfiles (conflicts with kernel header files and _KERNEL.)
|
1.24 |
| 04-Sep-2005 |
elad | Use sysctl to fetch AF_LOCAL PCB lists if reading live kernel.
|
1.23 |
| 04-Mar-2005 |
atatat | For connected local domain sockets that don't have a "local" name, print the "remote" name instead.
|
1.22 |
| 04-Mar-2005 |
atatat | Print the pcb address like the man page says, not the socket address.
|
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 |
| 02-Feb-2003 |
christos | undo mallocvar.h changes!
|
1.19 |
| 01-Feb-2003 |
tron | Include "sys/mallocvar.h" with "_KERNEL" defined in time to avoid build failure because MALLOC_DECLARE() is not defined.
|
1.18 |
| 19-Aug-1999 |
cgd | not all kvm_getfiles() errors are "out of memory." for instance, some of them are caused by the kvm_getfiles() implementation being TOTALLY BROKEN for dead kernels. Print out the KVM descriptor's error so that error causes are more easily diagnosed.
|
1.17 |
| 19-Oct-1997 |
lukem | branches: 1.17.4; fix up .Nm usage, getopt returns -1 not EOF
|
1.16 |
| 03-Apr-1997 |
christos | - netatalk additions - printf format fixes - minor prototype cleanups
|
1.15 |
| 27-Feb-1997 |
mikel | Don't assume that sun_path in sockaddr_un is null-terminated; final fix by Noriyuki Soda <soda@sra.co.jp>. fixes part of PR 3035.
|
1.14 |
| 24-May-1996 |
mycroft | Make this work again.
|
1.13 |
| 03-Oct-1995 |
thorpej | branches: 1.13.6; New-style RCS ids.
|
1.12 |
| 28-Mar-1995 |
jtc | KERNEL -> _KERNEL
|
1.11 |
| 02-Nov-1994 |
deraadt | #include <kvm.h> later
|
1.10 |
| 13-May-1994 |
mycroft | Clean up import.
|
1.9 |
| 01-Apr-1994 |
cgd | kill lots of off_t's.
|
1.8 |
| 28-Mar-1994 |
cgd | clean up, for off_t... ugliest 'cleaning' possible, i think...
|
1.7 |
| 11-Jan-1994 |
mycroft | Don't print an extra character after a Unix domain socket name.
|
1.6 |
| 01-Aug-1993 |
mycroft | Add RCS identifiers.
|
1.5 |
| 21-May-1993 |
cgd | Remove a couple of warnings, add includes (from Havard Eidnes <Havard.Eidnes@runit.sintef.no>)
|
1.4 |
| 20-May-1993 |
cgd | get rid of select.h inclusion, and clean up headers *more*.
|
1.3 |
| 20-May-1993 |
cgd | fix for new select & clean up headers
|
1.2 |
| 19-Apr-1993 |
mycroft | Cleanup for GCC 2.
|
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.13.6.2 |
| 02-Mar-1997 |
mycroft | Pull up change from trunk to fix printing of Un*x-domain socket addresses.
|
1.13.6.1 |
| 11-Dec-1996 |
mycroft | From trunk: Eliminate SS_PRIV; instead, pass down a proc pointer to the usrreq methods that need it. Fix numerous memory leaks and bogus return values.
|
1.17.4.1 |
| 20-Aug-1999 |
cgd | pull up rev 1.18 from trunk (cgd)
|
1.25.2.1 |
| 19-Jun-2006 |
chap | Sync with head.
|
1.27.14.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
1.27.8.1 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.28.10.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.33.4.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.34.14.1 |
| 20-Mar-2017 |
pgoyette | Sync with HEAD
|
1.35.16.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.6.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.
|