freebsd-nq/usr.bin/sockstat
Gleb Smirnoff 0e229f343f Hide struct socket and struct unpcb from the userland.
Violators may define _WANT_SOCKET and _WANT_UNPCB respectively and
are not guaranteed for stability of the structures.  The violators
list is the the usual one: libprocstat(3) and netstat(1) internally
and lsof in ports.

In struct xunpcb remove the inclusion of kernel structure and add
a bunch of spare fields.  The xsocket already has socket not included,
but add there spares as well.  Embed xsockbuf into xsocket.

Sort declarations in sys/socketvar.h to separate kernel only from
userland available ones.

PR:		221820 (exp-run)
2017-10-02 23:29:56 +00:00
..
Makefile
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
sockstat.1 Add a command line option for using a wider field for displaying 2017-09-13 06:57:52 +00:00
sockstat.c Hide struct socket and struct unpcb from the userland. 2017-10-02 23:29:56 +00:00