HomeFreeBSD

MFC r344870:

Description

MFC r344870:

Fix the problem with O_LIMIT states introduced in r344018.

dyn_install_state() uses `rule` pointer when it creates state.
For O_LIMIT states this pointer actually is not struct ip_fw,
it is pointer to O_LIMIT_PARENT state, that keeps actual pointer
to ip_fw parent rule. Thus we need to cache rule id and number
before calling dyn_get_parent_state(), so we can use them later
when the `rule` pointer is overrided.

PR:		[[ https://bugs.freebsd.org/236292 | 236292 ]]

Details

Provenance
aeAuthored on
Parents
rS344975: pf: Small performance tweak
Branches
Unknown
Tags
Unknown