summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat/netstat.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Switch the netstat view of systat to use the same kvm_getfiles()claudio2015-03-121-145/+176
| | | | | | | | | | | function similar to netstat(1). The output still shows the same info but may be a bit differently sorted. Also it will now show connections that are not UDP or TCP. This was the last bit of systat that needed kvm access and so now systat no longer needs to be setgid kmem. With this commit OpenBSD is officially setgid kmem free and an almost 10 year journey finally comes to an end. OK deraadt@
* Adjust <sys/param.h> comments regarding use of use of MSIZE, orderaadt2015-01-201-2/+1
| | | | | delete <sys/param.h> if now possible ok guenther
* first batch of programs adapting to the namespace cleanupderaadt2015-01-161-2/+4
| | | | | (pfvar.h nameser.h proc.h ucred.h) ok guenther millert, and some review from doug as well.
* This tool doesn't actually support networks(5).schwarze2014-10-241-9/+1
| | | | | | | | So remove the call to setnetent(3) which is a no-op here (except for consuming a file descriptor) and the call sethostent(3) which is a no-op in general. Also remove the misleading reference to networks(5) from the manual. OK okan@ henning@
* userland reallocarray audit.doug2014-10-081-2/+2
| | | | | | | Replace malloc() and realloc() calls that may have integer overflow in the multiplication of the size argument with reallocarray(). ok deraadt@
* No need for <netinet/in_systm.h> nor <netinet/tcpip.h>.mpi2014-08-141-4/+1
|
* final circleq to tailq fix. restore the previous pointer check by readingtedu2013-12-251-3/+12
| | | | | the previous value again and checking prev.next is still next. maybe ok guenther
* more fixing after circleq conversion. a better fix to check the prevtedu2013-12-241-9/+3
| | | | pointer is forthcoming.
* Switch inpt_queue from CIRCLEQ to TAILQ. Thus ending use of CIRCLEQkrw2013-12-201-4/+4
| | | | | | | in the base. Ports fixes to follow shortly for the two ports (gkrellm and net-snmp) affected. ok zhuk@ millert@
* Do not expose a kernel address.deraadt2013-03-201-2/+2
|
* - allow the default to only show all non-listneing scokets, which matchesokan2012-01-301-3/+15
| | | | | | | | | the manpage and what netstat(1) does, sans the aflag (-a). - allow one to use 'a' to toggle the above (include listening or not). - implement [r]eset to reset all toggles to default (all/tcp/udp). - document a/n/r/t/u toggles. ok henning@ sthen@ jmc@
* - use a common FIELD_ADDR macro, instead of rolling 78 identical copies.jasper2011-03-021-9/+7
| | | | ok canacar@
* Let systat -N states resolve network addressesgiovanni2010-07-221-50/+1
| | | | | help and ok sthen@ lum@ ok canacar@
* Warning cleanup including unused variables and shadowed namescanacar2008-12-071-7/+7
|
* New display engine for systat, based on pftop. Adds new views for pfcanacar2008-06-121-366/+303
| | | | | | | | (status, state, rule, queue). While all displays work, some keyboard comands are not implemented yet. Other features include better handling of display resize and scrolling for long views. Committing now to fix the remaining issues in the tree. Testing and comments by otto@ and harding@, ok deraadt@
* use the 1 line load line from 'systat vm' on all the other displays, givingderaadt2007-02-251-3/+3
| | | | them more room. much cleaner, and it is less code too; ok deanna
* fairly simple cleanup, lots of testing donederaadt2006-03-311-11/+15
|
* Use queue macros instead of directly accessing fields. ok pat@ "put itotto2005-10-171-6/+6
| | | | in" deraadt@
* correct v6 handling; yanovich@psc.eduderaadt2005-05-101-5/+2
|
* always compile in INET6 supportderaadt2004-09-291-34/+5
|
* add -n flag (do not reverse-lookup). pb and deraadt okitojun2004-04-261-7/+3
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* mark which nlist[] kmem entries are not needed in the sysctl case, and which arederaadt2002-06-191-4/+4
|
* ANSIderaadt2002-06-181-29/+16
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-7/+7
|
* move back. pvalchev -- the bug was quite obscurederaadt2001-12-071-21/+19
|
* back out latest changes which cause problems on alpha/sparc64 untilpvalchev2001-12-071-19/+21
| | | | they are fixed
* fix signal races. use sysctl() instead of kvm where possible, and then KNFderaadt2001-11-231-21/+19
| | | | the hell out of it; checked by miod
* kill more registersmpech2001-11-191-12/+12
| | | | millert@ ok
* Wall cleanuppvalchev2001-07-281-3/+4
|
* use strlcpy vs strncpy+a[len-1]='\0'lebel2001-06-221-6/+4
|
* handle kvm_nlist() failing, from pr#1798.ericj2001-05-041-5/+7
| | | | Patch similar to the one submitted by <peterw@documenta.com.au>
* correct type to be passed to IN6_ARE_ADDR_EQUAL macro.itojun2000-05-241-3/+3
|
* IPv6 support. commands under "netstat" are all IPv6-aware.itojun2000-01-051-22/+153
| | | | const checks in netstat.c.
* Fix compile conflict with the new IPv6 code (namespace pollution).angelos1999-12-081-83/+87
|
* carefulderaadt1997-12-191-3/+3
|
* proactive buffer blocksderaadt1997-12-191-7/+9
|
* bye bye sprintfderaadt1997-12-191-6/+8
|
* Cleanup by Theo and myself. CMDLINE changed to long to makemillert1997-06-231-2/+3
| | | | | command line work on 64bit platforms. This is somewhat bogus and is really just a temporary workaround (there may be a curses bug).
* r?index -> strr?chrmillert1997-01-171-5/+5
|
* avoid buf oflowsderaadt1996-08-061-3/+3
|
* refresh screen better; freebsd pr#1425; from fnderaadt1996-07-271-2/+4
|
* rcsidderaadt1996-06-261-1/+2
|
* it compiles w/ new cursesmickey1996-06-021-1/+1
|
* initial import of NetBSD treederaadt1995-10-181-0/+480