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)
Mon, Apr 8, 7:56 PM
Unknown Object (File)
Feb 13 2024, 1:15 PM
Unknown Object (File)
Dec 27 2023, 3:33 PM
Unknown Object (File)
Dec 20 2023, 7:31 AM
Unknown Object (File)
Dec 14 2023, 10:08 PM
Unknown Object (File)
Oct 18 2023, 7:38 AM
Unknown Object (File)
Sep 14 2023, 2:25 AM
Unknown Object (File)
Aug 16 2023, 8:19 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 39835
Build 36724: 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
924

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.