HomeFreeBSD

pf: do not pass af to PFLOG_PACKET

Description

pf: do not pass af to PFLOG_PACKET

Do not pass AF specific information to pf_test_rule() and PFLOG_PACKET()
because either the info is already available in struct pd or easy
to figure out. Makes pf_test() and pf_test6() even more similar
(with the target to remove one of them in the near future).
OK henning@

Reviewed by: zlei
Obtained from: OpenBSD, claudio <claudio@openbsd.org>, 5480721ed1
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D46596

Details

Provenance
kpAuthored on Sep 6 2024, 8:55 AM
Reviewer
zlei
Differential Revision
D46596: pf: do not pass af to PFLOG_PACKET
Parents
rG9746c1e28877: pf tests: ensure we don't NAT to link-local addresses
Branches
Unknown
Tags
Unknown