summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Handle ifi_oqdrops in netstat(8).uebayasi2015-10-051-10/+7
| | | | OK mpi@ dlg@
* Remove XRESOLVE support.mpi2015-09-112-5/+3
| | | | | dlg@ is sad because we won't be able to implement arpd(8) the way people intended it in the 80s.
* Remove never called functions to dump per-ifp IPv6 statistics now thatmpi2015-09-112-129/+2
| | | | | | the kernel buffers are gone. ok claudio@
* Fix mbuf memory accounting after recent *8 pool size change.mpi2015-09-041-8/+10
| | | | | | | | | Use the ``pr_pgsize'' argument instead of assuming that pool page sizes are identical to the value returned by getpagesize(3). Issue reported by trondd <trondd AT kagu-tsuchi DOT com> on tech@. ok millert@, tedu@
* 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
* Do not cast result of malloc/calloc/realloc* if stdlib.h is in scopederaadt2015-08-201-2/+2
| | | | ok krw millert
* There is no need to include sys/ucred.h. Only sys/file.h is needed for theclaudio2015-06-211-2/+1
| | | | DTYPE defines.
* sync with rev 1.99 of sbin/route/show.cbenno2015-04-271-3/+1
| | | | requested by claudio@ and mpi@
* 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@
* remove unfinished/unused support for socket-attached ipsec-policiesmarkus2015-04-161-6/+1
| | | | ok mikeb
* IPsec auth and credentials are not stored in the kernel anymore;mikeb2015-04-141-3/+1
| | | | noticed by deraadt@
* implicit declaration of function 'free'; add missing stdlib.hdcoppa2015-02-131-1/+2
| | | | OK sthen@
* Free the buffers used for the sysctl. OK sthen@claudio2015-02-123-5/+8
|
* be more explicit about how -A and -P work, and fix a booboo in previous;jmc2015-02-121-8/+10
| | | | help/ok claudio
* Initialize buffer pointers passed to get_sysctl to NULL; otherwise they pointsthen2015-02-122-4/+4
| | | | | to random memory so when the sysctl-estimate is too small, the realloc() fails. Problem reported by Ze Loff, ok claudio
* Switch the printing of open sockets from ugly KVM internals to useclaudio2015-02-128-375/+377
| | | | | | | | 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.
* Get rid of another KVM reader and convert the multicast output to useclaudio2015-02-096-209/+136
| | | | the new sysctls. Looks good deraadt@
* Count dropped SYN packets on the tcpstat. They are dropped due to theyasuoka2015-02-081-1/+2
| | | | | | listen queue (backlog) limit or the memory shortage in syn-cache. ok henning reyk claudio
* -a for -I or -i is gone for good. So adjust manpage.claudio2015-02-081-21/+2
|
* The multicast address printing code has been disabled for 7 years.claudio2015-02-081-49/+1
| | | | | Nobody complained about it missing. It is time to kill it for real. OK phessler, henning, deraadt
* Do extend CFLAGS instead of assigning it so that DEBUG=-g worksclaudio2015-02-081-2/+2
| | | | OK deraadt@
* Remove route/netstat -f encap in favor of ipsecctl -s flow.reyk2015-02-065-374/+8
| | | | OK deraadt@
* Adjust <sys/param.h> comments regarding use of use of MSIZE, orderaadt2015-01-202-6/+4
| | | | | delete <sys/param.h> if now possible ok guenther
* First step of hiding many kernel-only parts of <netinet/ip_ipsp.h>deraadt2015-01-191-2/+2
| | | | | | under _KERNEL, and adjust the one consumer (netstat) so that it requests the exposure. Will take a few more rounds to get this right. ok mikeb
* _KERNEL 1? no, just _KERNELderaadt2015-01-171-2/+2
|
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-1611-26/+26
| | | | | | | | | 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)
* not necessary to define INET anymoretedu2014-12-261-5/+1
|
* remove pointless if_var.h and socketvar.h includes; ok deraadtmikeb2014-11-213-6/+3
|
* i renamed the mbuf pool.dlg2014-11-061-2/+2
|
* Put the socket splicing fields into a seperate struct sosplice thatbluhm2014-11-031-8/+30
| | | | | | | gets only allocated when needed. This way struct socket shrinks from 472 to 392 bytes on amd64. When splicing gets active, another 88 bytes are allocated for struct sosplice. OK dlg@
* remove unused variableschl2014-10-261-4/+1
| | | | ok schwarze@
* Remove networks(5) support.schwarze2014-10-234-43/+17
| | | | | | In particular, do not call getnetbyaddr(3), use gethostbyaddr(3) only. Do not call setnetent(3) and the dummy sethostent(3). OK henning@; and deraadt@ agrees with the general direction.
* No need for <netinet/in_systm.h> nor <netinet/tcpip.h>.mpi2014-08-143-8/+3
|
* Kill bandwidth monitoring meters.mpi2014-08-141-100/+1
|
* #define _KERNEL hack requires ucred.h now as wellderaadt2014-07-101-1/+2
|
* info about pools is currently given to userland by copying eachdlg2014-07-021-6/+6
| | | | | | | | | | | | | | | | | | | | | | | pools struct out. however, struct pool in the kernel contains lots of things that userland probably isnt interested in, like actual mutexes, and probably shouldnt get easy access to, like pointers to kernel memory via all the lists/trees. this implements a kinfo_pool structure that has only the data that userland needs to know about. it cuts the sysctl code over to building it from struct pool as required and copying that out instead, and cuts userland over to only handling kinfo_pool. the only problem with this is vmstat, which can read kernel images via kvm, which needs some understanding of struct pool. to cope, the struct pool definition is guarded by if defined(_KERNEL) || defined(_LIBKVM) as inspired by sysctl which needs to do the same thing sometimes. struct pool itself is generally not visible to userland though, which is good. matthew@ suggested struct kinfo_pool instead of struct pool_info. the kinfo prefix has precedent. lots of people liked this.
* The second level of the CTL_NET sysctl is a PF_*, not an AF_*guenther2014-06-236-34/+34
| | | | inconsistent usage in route(8) noted by Gregor Best (gbe (at) ring0.de)
* catch up with the inet(3) rename; this commit missed in previousjmc2014-05-101-4/+4
| | | | ok guenther
* Introduce two new route flags: RTF_LOCAL and RTF_BROADCAST.mpi2014-05-082-3/+7
| | | | | | | | | | | | | | | Nothing use them for the moment, but here is the plan: Since a route lookup is always necessary to output a packet it makes sense to store all the information regarding how the packet should be sent in the routing entry. This will save us some expensive lookups on address lists. But once we have all the information about our addresses in the routing table, we can even use it in the input path with the hope that the number of lookups in the forwarding case can be reduce to one. ok henning@, chris@
* Sync show.c with the route version. Make the two files more similar butclaudio2014-04-171-9/+6
| | | | still not identical. OK sthen@ mpi@ jca@
* use strtonum. ok krwtedu2014-02-131-5/+9
|
* Fix printing of icps_toofreq unlike IPv6 the IPv4 value is just a u_long.claudio2014-01-251-2/+2
| | | | Found by csszep (at) gmail.
* hardware cecksummed counters -> software checksummed countershenning2014-01-231-7/+7
|
* Report the number of dropped ICMP error because the rate limit got exceeded.claudio2014-01-191-1/+4
| | | | OK benno@ deraadt@
* ddpcb and unixsw symbols are no longer used with kvm_readguenther2014-01-101-18/+14
| | | | ok deraadt@
* final circleq to tailq fix. restore the previous pointer check by readingtedu2013-12-251-2/+9
| | | | | 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-6/+3
| | | | pointer is forthcoming.
* fix circleq tailq conversiontedu2013-12-231-6/+4
|
* Switch inpt_queue from CIRCLEQ to TAILQ. Thus ending use of CIRCLEQkrw2013-12-201-5/+5
| | | | | | | in the base. Ports fixes to follow shortly for the two ports (gkrellm and net-snmp) affected. ok zhuk@ millert@
* netstat -Ar leaked some kernel pointers to unprivileged users. Usebluhm2013-11-251-5/+6
| | | | | hideroot to show them only to root. OK deraadt@