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)
Sun, May 17, 1:30 AM
Unknown Object (File)
Sun, May 17, 1:30 AM
Unknown Object (File)
Sun, May 17, 1:23 AM
Unknown Object (File)
Apr 29 2026, 11:14 AM
Unknown Object (File)
Apr 25 2026, 6:22 PM
Unknown Object (File)
Apr 25 2026, 9:49 AM
Unknown Object (File)
Apr 20 2026, 5:40 PM
Unknown Object (File)
Apr 20 2026, 4:52 AM

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.