HomeFreeBSD

Fix the problem with O_LIMIT states introduced in r344018.

Description

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: 236292
MFC after: 3 days

Details

Provenance
aeAuthored on
Parents
rS344869: add GPL text in addition to SPDX tags as requested by core
Branches
Unknown
Tags
Unknown