HomeFreeBSD

pf: replace union pf_krule_ptr with struct pf_krule in in-kernel structs

Description

pf: replace union pf_krule_ptr with struct pf_krule in in-kernel structs

There is no need for the union pf_krule_ptr for kernel-only structs like
pf_kstate and pf_ksrc_node. The rules are always accessed by pointer. The rule
numbers are a leftover from using the same structure for pfctl(8) and pf(4).

Reviewed by: kp
Differential Revision: https://reviews.freebsd.org/D46868

Details

Provenance
vegeta_tuxpowered.netAuthored on Oct 2 2024, 12:21 PM
kpCommitted on Oct 2 2024, 5:53 PM
Reviewer
kp
Differential Revision
D46868: pf: Replace union pf_krule_ptr with struct pf_krule in in-kernel structs
Parents
rGc25e55bcf80b: include: ssp: hide gets_s behind __EXT1_VISIBLE
Branches
Unknown
Tags
Unknown