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)
Fri, Apr 4, 7:48 AM
Unknown Object (File)
Mon, Mar 24, 5:59 PM
Unknown Object (File)
Feb 27 2025, 3:57 AM
Unknown Object (File)
Feb 24 2025, 8:52 AM
Unknown Object (File)
Feb 23 2025, 4:03 PM
Unknown Object (File)
Feb 20 2025, 3:53 PM
Unknown Object (File)
Feb 19 2025, 11:19 AM
Unknown Object (File)
Feb 16 2025, 12:45 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.