Commit Graph

34 Commits

Author SHA1 Message Date
matt d34c2845b8 Use C89 function definitions 2012-03-20 20:34:57 +00:00
manu 1b0d8e317f Display SOCK_SEQPACKET local sockets in sockstat and netstat 2011-05-29 04:45:08 +00:00
dyoung 7135b6c6f4 Access the kvm_t using get_kvmd(), only. 2011-05-04 01:11:29 +00:00
pooka f2ee316255 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.
2010-12-13 21:15:30 +00:00
plunky f183cc477b 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.
2010-04-22 14:37:06 +00:00
lukem d5a0caad3b Fix many WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare).
Fix probable bug with numeric printing of anon ports when using sysctl.
2009-04-12 16:08:37 +00:00
ad 835572acdb - Define _KERNEL for sys/types.h in unix.c.
- caddr_t -> char * in a couple of places.
2008-02-27 16:36:54 +00:00
elad a81bf90a94 PR/31347: Geoff C. Wing: netstat err message is ambiguous about cause
Applied patch, thanks!
2006-09-22 23:21:52 +00:00
liamjfoy 362a260c6d check if malloc(3) failed
ok joerg@
2006-05-21 21:01:55 +00:00
mrg 0e223467a4 nfiles -> ns_nfiles (conflicts with kernel header files and _KERNEL.) 2006-05-11 01:23:20 +00:00
elad 4c70438790 Use sysctl to fetch AF_LOCAL PCB lists if reading live kernel. 2005-09-04 18:59:57 +00:00
atatat e698a148f7 For connected local domain sockets that don't have a "local" name,
print the "remote" name instead.
2005-03-04 03:59:07 +00:00
atatat 9244b3d60d Print the pcb address like the man page says, not the socket address. 2005-03-04 03:57:48 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
christos 0fcef5865c undo mallocvar.h changes! 2003-02-02 02:35:58 +00:00
tron 1161776951 Include "sys/mallocvar.h" with "_KERNEL" defined in time to avoid
build failure because MALLOC_DECLARE() is not defined.
2003-02-01 18:35:44 +00:00
cgd f33ac29caa 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.
1999-08-19 06:13:09 +00:00
lukem e55eeec2c5 fix up .Nm usage, getopt returns -1 not EOF 1997-10-19 05:49:56 +00:00
christos c3a7122e73 - netatalk additions
- printf format fixes
- minor prototype cleanups
1997-04-03 04:46:44 +00:00
mikel 5ca01fc0a4 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.
1997-02-27 05:41:19 +00:00
mycroft 445ad1968f Make this work again. 1996-05-24 11:57:16 +00:00
thorpej 67f6822225 New-style RCS ids. 1995-10-03 21:42:34 +00:00
jtc ae0b9c2010 KERNEL -> _KERNEL 1995-03-28 17:18:59 +00:00
deraadt 841f975d13 #include <kvm.h> later 1994-11-02 09:20:33 +00:00
mycroft d3877f2073 Clean up import. 1994-05-13 08:08:09 +00:00
cgd ea7e0c1cca kill lots of off_t's. 1994-04-01 09:18:06 +00:00
cgd 1e6c1e0ef2 clean up, for off_t... ugliest 'cleaning' possible, i think... 1994-03-28 10:29:31 +00:00
mycroft 231463b415 Don't print an extra character after a Unix domain socket name. 1994-01-11 23:27:10 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd 784b6e7b9d Remove a couple of warnings, add includes
(from Havard Eidnes <Havard.Eidnes@runit.sintef.no>)
1993-05-21 12:51:14 +00:00
cgd 599306af5d get rid of select.h inclusion, and clean up headers *more*. 1993-05-20 12:03:49 +00:00
cgd 7d313cbd4c fix for new select & clean up headers 1993-05-20 10:40:48 +00:00
mycroft 7ca0c915de Cleanup for GCC 2. 1993-04-19 08:00:58 +00:00
cgd e541169ce2 after 0.2.2 "stable" patches applied 1993-03-21 18:04:42 +00:00