Page MenuHomeFreeBSD

pf: Remove struct pf_pdesc->nat_rule
ClosedPublic

Authored by vegeta_tuxpowered.net on Oct 2 2024, 8:38 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 9, 12:14 AM
Unknown Object (File)
Sun, Apr 5, 11:15 AM
Unknown Object (File)
Feb 8 2026, 2:45 AM
Unknown Object (File)
Feb 7 2026, 11:32 PM
Unknown Object (File)
Jan 31 2026, 5:29 AM
Unknown Object (File)
Dec 28 2025, 3:01 PM
Unknown Object (File)
Dec 23 2025, 2:07 PM
Unknown Object (File)
Nov 14 2025, 10:36 PM

Details

Summary

The variable struct pd->nat_rule is set only during rule evaluation, that is
only for the first packet of a connection. Use struct pf_kstate->nat_rule instead.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Oct 2 2024, 12:21 PM
This revision was automatically updated to reflect the committed changes.