freebsd-nq/usr.bin/netstat
Gleb Smirnoff cc65eb4e79 Hide struct inpcb, struct tcpcb from the userland.
This is a painful change, but it is needed.  On the one hand, we avoid
modifying them, and this slows down some ideas, on the other hand we still
eventually modify them and tools like netstat(1) never work on next version of
FreeBSD.  We maintain a ton of spares in them, and we already got some ifdef
hell at the end of tcpcb.

Details:
- Hide struct inpcb, struct tcpcb under _KERNEL || _WANT_FOO.
- Make struct xinpcb, struct xtcpcb pure API structures, not including
  kernel structures inpcb and tcpcb inside.  Export into these structures
  the fields from inpcb and tcpcb that are known to be used, and put there
  a ton of spare space.
- Make kernel and userland utilities compilable after these changes.
- Bump __FreeBSD_version.

Reviewed by:	rrs, gnn
Differential Revision:	D10018
2017-03-21 06:39:49 +00:00
..
bpf.c Stop including if_var.h from userland. 2015-04-06 09:42:23 +00:00
flowtable.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
if.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
inet6.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
inet.c Hide struct inpcb, struct tcpcb from the userland. 2017-03-21 06:39:49 +00:00
ipsec.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
main.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
Makefile Replace DPSRCS that work fine in SRCS. 2015-11-25 20:38:17 +00:00
Makefile.depend DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
mbuf.c Use bogus_page to properly reduce number of I/Os in sendfile(2). The new 2016-11-17 21:02:55 +00:00
mroute6.c Use a common subroutine to fetch and zero protocol stats instead of 2015-09-11 04:37:01 +00:00
mroute.c Use strlcpy and snprintf in netstat(1). 2017-01-05 09:23:54 +00:00
netgraph.c Simplify kvm symbol resolution and error handling. The symbol table 2015-09-02 18:51:36 +00:00
netisr.c Simplify kvm symbol resolution and error handling. The symbol table 2015-09-02 18:51:36 +00:00
netstat.1 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
netstat.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
nlist_symbols Print running TCP connection counts with TCP statistics. 2016-03-15 00:19:30 +00:00
pfkey.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
route.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
sctp.c Use strlcpy and snprintf in netstat(1). 2017-01-05 09:23:54 +00:00
unix.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00