Page MenuHomeFreeBSD

pf: store L4 headers in pf_pdesc
ClosedPublic

Authored by kp on Jun 10 2021, 6:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 2, 12:26 AM
Unknown Object (File)
Thu, Oct 17, 9:08 AM
Unknown Object (File)
Oct 2 2024, 6:56 AM
Unknown Object (File)
Oct 2 2024, 6:56 AM
Unknown Object (File)
Oct 2 2024, 6:56 AM
Unknown Object (File)
Oct 2 2024, 5:06 AM
Unknown Object (File)
Oct 2 2024, 2:29 AM
Unknown Object (File)
Sep 28 2024, 9:15 AM

Details

Summary

Rather than pointers to the headers store full copies. This brings us
slightly closer to what OpenBSD does, and also makes more sense than
storing pointers to stack variable copies of the headers.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39839
Build 36728: arc lint + arc unit

Event Timeline

kp requested review of this revision.Jun 10 2021, 6:14 PM
donner added inline comments.
sys/net/pfvar.h
931

Seems to be used as a pointer to a variable length data space. The common idiom is char any[0]. This also avoids to use &complex_entry.any instead of complex_entry.any.

This revision is now accepted and ready to land.Jun 11 2021, 9:35 AM
This revision was automatically updated to reflect the committed changes.