Page MenuHomeFreeBSD

netinet6: Add a definition of struct ip6_hdr_pseudo{} for OCF compatibility.
Needs ReviewPublic

Authored by bms on Thu, Jul 30, 3:56 PM.
Referenced Files
Unknown Object (File)
Mon, Aug 17, 10:43 PM
Unknown Object (File)
Thu, Aug 13, 1:22 PM
Unknown Object (File)
Wed, Aug 12, 8:09 AM
Unknown Object (File)
Tue, Aug 11, 12:02 AM
Unknown Object (File)
Mon, Aug 10, 5:56 PM
Unknown Object (File)
Mon, Aug 10, 8:05 AM
Unknown Object (File)
Sun, Aug 9, 4:09 AM
Unknown Object (File)
Sat, Aug 8, 3:48 PM

Details

Reviewers
glebius
pouria
imp
Summary

This change is intended to address @glebius comments from the original D55663.
ip6_hdr_pseudo{} is referenced by certain OpenBSD OCF related components. I am
using aligned(4) and not packed as urged by the late Hans-Petter Selasky.
Use C99 types and style. We must eat the churn now cross-BSD compatibility
is "Fade to Black".

Put _Static_assert under #ifdef INVARIANTS to not disrupt regular compilation,
as this resides in a commonly included header file.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 75295
Build 72178: arc lint + arc unit

Event Timeline

bms requested review of this revision.Thu, Jul 30, 3:56 PM

Compile tested for amd64 GENERIC.
The next Differential will contain the netipsec/xform_tcp.c refactoring to use ip6_hdr_pseudo{}.

The #ifdef INVARIANTS conditional for _Static_assert() is mostly a no-op, because GENERIC enables them via "include "std.debug"".