Page MenuHomeFreeBSD

pf: add post-NAT src/dst address/port to pf_pdesc
ClosedPublic

Authored by kp on Nov 27 2024, 4:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
May 6 2026, 4:15 AM
Unknown Object (File)
Apr 20 2026, 11:16 AM
Unknown Object (File)
Apr 19 2026, 11:24 PM
Unknown Object (File)
Apr 19 2026, 6:42 PM
Unknown Object (File)
Apr 17 2026, 9:07 PM
Unknown Object (File)
Apr 16 2026, 12:40 PM
Unknown Object (File)
Apr 6 2026, 12:04 AM
Unknown Object (File)
Apr 4 2026, 12:39 AM

Details

Summary

stuff nsaddr/ndaddr/nsport/ndport (addrs/ports after NAT, used a lot while
walking the ruleset and up until state is fully set up) into pf_pdesc instead
of passing around those 4 seperately all the time, also shrinks the argument
count for a few functions that have/partialy had an insane count of arguments.
kinda preparational since we'll need them elsewhere too, soon
ok ryan jsing

Obtained from: OpenBSD, henning <henning@openbsd.org>, ccf63ac6cb
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

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