Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-01-20 | Adjust <sys/param.h> comments regarding use of use of MSIZE, or | Theo de Raadt | |
delete <sys/param.h> if now possible ok guenther | |||
2015-01-19 | First step of hiding many kernel-only parts of <netinet/ip_ipsp.h> | Theo de Raadt | |
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 | |||
2015-01-17 | _KERNEL 1? no, just _KERNEL | Theo de Raadt | |
2015-01-16 | Replace <sys/param.h> with <limits.h> and other less dirty headers where | Theo de Raadt | |
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) | |||
2014-12-26 | not necessary to define INET anymore | Ted Unangst | |
2014-11-21 | remove pointless if_var.h and socketvar.h includes; ok deraadt | Mike Belopuhov | |
2014-11-06 | i renamed the mbuf pool. | David Gwynne | |
2014-11-03 | Put the socket splicing fields into a seperate struct sosplice that | Alexander Bluhm | |
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@ | |||
2014-10-26 | remove unused variables | Charles Longeau | |
ok schwarze@ | |||
2014-10-23 | Remove networks(5) support. | Ingo Schwarze | |
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. | |||
2014-08-14 | No need for <netinet/in_systm.h> nor <netinet/tcpip.h>. | Martin Pieuchot | |
2014-08-14 | Kill bandwidth monitoring meters. | Martin Pieuchot | |
2014-07-10 | #define _KERNEL hack requires ucred.h now as well | Theo de Raadt | |
2014-07-02 | info about pools is currently given to userland by copying each | David Gwynne | |
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. | |||
2014-06-23 | The second level of the CTL_NET sysctl is a PF_*, not an AF_* | Philip Guenther | |
inconsistent usage in route(8) noted by Gregor Best (gbe (at) ring0.de) | |||
2014-05-10 | catch up with the inet(3) rename; this commit missed in previous | Jason McIntyre | |
ok guenther | |||
2014-05-08 | Introduce two new route flags: RTF_LOCAL and RTF_BROADCAST. | Martin Pieuchot | |
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@ | |||
2014-04-17 | Sync show.c with the route version. Make the two files more similar but | Claudio Jeker | |
still not identical. OK sthen@ mpi@ jca@ | |||
2014-02-13 | use strtonum. ok krw | Ted Unangst | |
2014-01-25 | Fix printing of icps_toofreq unlike IPv6 the IPv4 value is just a u_long. | Claudio Jeker | |
Found by csszep (at) gmail. | |||
2014-01-23 | hardware cecksummed counters -> software checksummed counters | Henning Brauer | |
2014-01-19 | Report the number of dropped ICMP error because the rate limit got exceeded. | Claudio Jeker | |
OK benno@ deraadt@ | |||
2014-01-10 | ddpcb and unixsw symbols are no longer used with kvm_read | Philip Guenther | |
ok deraadt@ | |||
2013-12-25 | final circleq to tailq fix. restore the previous pointer check by reading | Ted Unangst | |
the previous value again and checking prev.next is still next. maybe ok guenther | |||
2013-12-24 | more fixing after circleq conversion. a better fix to check the prev | Ted Unangst | |
pointer is forthcoming. | |||
2013-12-23 | fix circleq tailq conversion | Ted Unangst | |
2013-12-20 | Switch inpt_queue from CIRCLEQ to TAILQ. Thus ending use of CIRCLEQ | Kenneth R Westerback | |
in the base. Ports fixes to follow shortly for the two ports (gkrellm and net-snmp) affected. ok zhuk@ millert@ | |||
2013-11-25 | netstat -Ar leaked some kernel pointers to unprivileged users. Use | Alexander Bluhm | |
hideroot to show them only to root. OK deraadt@ | |||
2013-11-21 | split kernel parts of the if.h into a separate header file if_var.h | Mike Belopuhov | |
which allows us to modify ifnet structure in a relatively safe way; discussed with deraadt, ok mpi | |||
2013-11-20 | unsigned char cast for isdigit, dealing with argv | Theo de Raadt | |
ok benno | |||
2013-11-13 | handle lack of proto | Theo de Raadt | |
2013-11-09 | kinfo_file returns the socket buffer counts in uint64_ts, so we need to | Philip Guenther | |
update the printf format for them. While here, delete a now unused variable. problem pointed out by Scott McEachern (scott (at) blackstaff.ca) | |||
2013-10-28 | use %d instea of %i | Theo de Raadt | |
2013-10-24 | These two programs got fooled by the KAME/NRL split and need type repair. | Theo de Raadt | |
They do not indicate a problem with the reduction of namespace export, but got suckered into the 1999 plan. ok benno | |||
2013-10-22 | - add UNIX-domain socket info to struct kinfo_file2 | Philip Guenther | |
- 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@ | |||
2013-09-29 | Prepare netstat for printing 64 bit route expire time. | Alexander Bluhm | |
OK claudio@ | |||
2013-08-18 | Fix calls to printf-like functions which passed a non-fixed string | Philip Guenther | |
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@ | |||
2013-04-23 | create a method to print the unp_ino (ino_t) properly once it becomes | Theo de Raadt | |
bigger | |||
2013-04-18 | improve time_t handling here, too | Theo de Raadt | |
2013-04-18 | improve time_t printing; ok claudio | Theo de Raadt | |
2013-04-16 | handle long long tv_sec; ok millert | Theo de Raadt | |
2013-03-20 | As non-root, whenever netstat is about to print out a kernel pointer... | Theo de Raadt | |
print 0x0 instead. Hides a lot stuff people don't need to see. | |||
2013-02-05 | netstat -vP also shows the new struct sockbuf field sb_flagsintr. | Alexander Bluhm | |
OK markus@ claudio@ | |||
2013-01-16 | sys/mbuf.h not needed | Theo de Raadt | |
2012-12-05 | Remove excessive sys/cdefs.h inclusion | Theo de Raadt | |
ok guenther millert kettenis | |||
2012-12-04 | remove some unnecessary sys/mbuf.h inclusions | Theo de Raadt | |
2012-08-26 | oops, i added a stray character. spotted by jmc | Ted Unangst | |
2012-08-22 | remove unneccessary .Pp; | Jason McIntyre | |
2012-08-22 | i missed usage and the manpage. prod by jmc | Ted Unangst | |
2012-08-22 | -h flag to print human numbers in conjunction with -w -b | Ted Unangst | |