summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/unix.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use <fcntl.h> instead of <sys/file.h> for open() and friends.guenther2018-04-261-2/+1
| | | | | | | Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup. ok deraadt@ krw@
* No need for <sys/socketvar.h>mpi2018-01-051-2/+1
|
* dont #define _KERNEL around some #includesdlg2016-09-151-3/+1
| | | | | | | | | the data structures are now readable without _KERNEL needing to be defined. ok deraadt@ there's probably a lot more of these that can be cleaned up if anyone is interested in looking into it.
* Pull in <sys/time.h> for struct timespec and timevalguenther2016-08-271-1/+2
| | | | ok deraadt@
* Remove obsolete fields in struct unpcb. In the past they were usedbluhm2015-08-241-3/+1
| | | | | | for flow control with unix domain sockets, this is now done by filling the send buffer with fake data counters. OK naddy@; no fallout in a bulk build
* Expand SLIST macro of unix pcb members before printing the pointer.bluhm2015-04-221-3/+3
| | | | | Fixes a gcc warning. No binary change. Found by and OK deraadt@
* Switch the printing of open sockets from ugly KVM internals to useclaudio2015-02-121-33/+12
| | | | | | | | kvm_getfiles. This allows to run netstat without any extra privileges and removes another setgid program from base.. There is still kvm reader code in there which is used for debugging purposes (crashdump). netstat should still behave mostly the same. deraadt@ and sthen@ agree that it is time to get this puppy in.
* Adjust <sys/param.h> comments regarding use of use of MSIZE, orderaadt2015-01-201-3/+2
| | | | | delete <sys/param.h> if now possible ok guenther
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+2
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* #define _KERNEL hack requires ucred.h now as wellderaadt2014-07-101-1/+2
|
* kinfo_file returns the socket buffer counts in uint64_ts, so we need toguenther2013-11-091-3/+2
| | | | | | update the printf format for them. While here, delete a now unused variable. problem pointed out by Scott McEachern (scott (at) blackstaff.ca)
* - add UNIX-domain socket info to struct kinfo_file2guenther2013-10-221-51/+27
| | | | | | | | | | - convert netstat from kvm_getfiles() to kvm_getfile2() using that - delete kvm_getfiles() and KERN_FILE as no longer used (bump libkvm's major) - rename kvm_getfile2() to kvm_getfiles(), kinfo_file2 to kinfo_file and KERN_FILE2 to KERN_FILE. ok deraadt@, millert@ ports scan sthen@
* Fix calls to printf-like functions which passed a non-fixed stringguenther2013-08-181-2/+2
| | | | | | | | as the format and no variable args. Replace "%#0.*X" with "%#.*X": the zero-fill flag is ignored/implied on numeric conversions when a precision is specified. ok jung@ millert@ krw@
* create a method to print the unp_ino (ino_t) properly once it becomesderaadt2013-04-231-2/+3
| | | | bigger
* improve time_t printing; ok claudioderaadt2013-04-181-11/+12
|
* handle long long tv_sec; ok millertderaadt2013-04-161-11/+11
|
* As non-root, whenever netstat is about to print out a kernel pointer...deraadt2013-03-201-11/+16
| | | | print 0x0 instead. Hides a lot stuff people don't need to see.
* Print socket structure internals when netstat -P pcbaddr is calledbluhm2010-10-301-5/+43
| | | | | with -v. Also netstat -P supports more than TCP now. ok markus@ jmc@
* Rename nfiles so as not to collide with sys/file.h,jsg2010-04-281-4/+4
| | | | | | makes gcc4 happy. ok deraadt@ miod@
* delete rcsid crudderaadt2007-12-191-9/+1
|
* kill unneeded (char *) casts. ok millert, ottojaredy2005-03-251-6/+6
|
* some NULL vs 0 and knf; parts from nimadeus@pandora.bederaadt2004-03-131-7/+6
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* ansideraadt2003-02-011-7/+4
|
* 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-3/+3
|
* kill more registersmpech2001-11-191-4/+4
| | | | millert@ ok
* add IPv6 support from KAME. cleanup type matches with printf() format.itojun1999-12-081-4/+4
| | | | KAME_SCOPEID should be enabled after KAME get{addr,name}info(3) merge.
* Use correct spacing on both 32bit and 64bit machines.millert1997-06-291-9/+11
|
* Make fields line up nicely for 64-bit addresses. Should probably #ifmillert1997-06-291-4/+4
| | | | some things based on sizeof(long).
* Mostly clean -Wall + 64bit issues.millert1997-06-291-3/+3
|
* rcsidderaadt1996-06-261-1/+2
|
* initial import of NetBSD treederaadt1995-10-181-0/+140