Page MenuHomeFreeBSD

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

Authored by bms on Jul 30 2026, 3:56 PM.
Referenced Files
F173189830: D58556.diff
Thu, Sep 24, 4:44 AM
Unknown Object (File)
Sat, Sep 19, 7:37 AM
Unknown Object (File)
Thu, Sep 17, 7:33 PM
Unknown Object (File)
Tue, Sep 8, 12:23 PM
Unknown Object (File)
Sun, Sep 6, 10:01 AM
Unknown Object (File)
Fri, Sep 4, 5:04 PM
Unknown Object (File)
Thu, Sep 3, 10:49 PM
Unknown Object (File)
Thu, Sep 3, 2:51 AM

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.Jul 30 2026, 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"".