svn commit: r315662 - in head: contrib/bsnmp/snmp_mibII contrib/ipfilter/ipsend lib/libprocstat sys/netinet sys/sys usr.bin/netstat usr.bin/sockstat usr.bin/systat usr.sbin/tcpdrop usr.sbin/trpt

Ngie Cooper (yaneurabeya) yaneurabeya at gmail.com
Tue Mar 21 08:42:47 UTC 2017


> On Mar 20, 2017, at 23:39, Gleb Smirnoff <glebius at freebsd.org> wrote:
> 
> Author: glebius
> Date: Tue Mar 21 06:39:49 2017
> New Revision: 315662
> URL: https://svnweb.freebsd.org/changeset/base/315662
> 
> Log:
>  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

	This change broke the sdp module: https://ci.freebsd.org/job/FreeBSD-head-amd64-LINT/2294/console .
Thanks,
-Ngie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20170321/86b417c3/attachment.sig>


More information about the svn-src-all mailing list