Page MenuHomeFreeBSD

netinet: Make ip.h self-contained
ClosedPublic

Authored by markj on Wed, Apr 9, 1:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 17, 2:47 AM
Unknown Object (File)
Tue, Apr 15, 5:45 PM
Unknown Object (File)
Sun, Apr 13, 10:59 AM
Unknown Object (File)
Sat, Apr 12, 1:00 PM
Unknown Object (File)
Sat, Apr 12, 10:33 AM
Unknown Object (File)
Sat, Apr 12, 7:46 AM
Unknown Object (File)
Fri, Apr 11, 10:39 PM
Unknown Object (File)
Thu, Apr 10, 11:13 PM
Subscribers

Details

Summary

cdefs.h is included for __packed; just assume that types.h includes
cdefs.h as that's a very common assumption.

PR: 285924

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.Wed, Apr 9, 1:41 PM

IMO the commit message could use one more sentence introducing the justification (which was reasonably explained in either the PR or the upstream report IIRC) but LGTM.

This revision is now accepted and ready to land.Wed, Apr 9, 1:45 PM

Also we have some commentary in style(9) about kernel headers visible to userland applications:

In header files visible to userland applications, prototypes that are
visible must use either “protected” names (ones beginning with an
underscore) or no names with the types.  It is preferable to use
protected names.  E.g., use:

We ought to make a note of our (evolving) approach wrt self-contained headers there. I can pick that up if nobody else wants to.

We ought to make a note of our (evolving) approach wrt self-contained headers there. I can pick that up if nobody else wants to.

Since you volunteered... :)

This revision was automatically updated to reflect the committed changes.