freebsd-nq/contrib/bsnmp/snmp_mibII
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
..
BEGEMOT-IP-MIB.txt Add a REVISION section to track changes for the BEGEMOT-IP-MIB MIB file 2017-01-09 03:21:21 +00:00
BEGEMOT-MIB2-MIB.txt
mibII_begemot.c Remove unnecessary __unused attribute attached to ctx in op_begemot_mibII(..) 2017-01-06 07:57:45 +00:00
mibII_ifmib.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
mibII_ifstack.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
mibII_interfaces.c MIB-II: use strlcpy when copying interface names to .ifr_name 2016-12-31 11:50:36 +00:00
mibII_ip.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
mibII_ipaddr.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
mibII_nettomedia.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
mibII_rcvaddr.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
mibII_route.c style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
mibII_tcp.c Hide struct inpcb, struct tcpcb from the userland. 2017-03-21 06:39:49 +00:00
mibII_tree.def style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
mibII_udp.c Hide struct inpcb, struct tcpcb from the userland. 2017-03-21 06:39:49 +00:00
mibII.c Use nitems(mib) instead of hardcoding mib's length when calling sysctl(3) 2017-01-09 01:47:00 +00:00
mibII.h style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00
snmp_mibII.3 snmp_mibII(3) requires net/if.h and net/if_mib.h 2017-01-04 10:08:18 +00:00
snmp_mibII.h style(9): clean up trailing whitespace 2016-12-27 23:32:54 +00:00