HomeFreeBSD

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

Description

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

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")
Differential Revision: https://reviews.freebsd.org/D47784

Details

Provenance
kpAuthored on Oct 23 2024, 9:36 AM
Differential Revision
D47784: pf: add post-NAT src/dst address/port to pf_pdesc
Parents
rGe11dacbf8484: pf: partially import OpenBSD's NAT rewrite
Branches
Unknown
Tags
Unknown