master
Switch the printing of open sockets from ugly KVM internals to use 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.
Delete obsolete /* ARGSUSED */ lint comments.
Handle sockets that are closing in parallel.
Remove specific divert6 netstat counters, use divert instead.
Protect mbuf statistics counter with splnet.
Harmonize netstat(1) ip4 and ip6 multicast counter output.
sys/select.h is not needed, if howmany/NBBY are needed they will arrive via netinet/in.h and sys/time.h, which I must say surprises me a bit
minor text shuffle, for clarity; ok millert
This code depends on internals from net/art.h so include it explicitly. OK bluhm@
ndp, route, netstat: adjust ipv6 address width
Use <fcntl.h> instead of <sys/file.h> for open() and friends. Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup.