aboutsummaryrefslogtreecommitdiff
path: root/(developers-only)
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2025-07-22 08:20:13 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2025-08-03 10:07:33 +0000
commit877e70e6087f9937e41da82f53bcbb4e04432428 (patch)
treebe09f7277eb72f37af598732bd51eb2f12b6bf84 /(developers-only)
parent630efff12879f64da5338abb08b04710f8c0f2cb (diff)
ipfw: add protected rule for orphaned dynamic statesHEADmain
When we have enabled V_dyn_keep_states, states that become ORPHANED will keep pointer to original rule. Then this rule pointer is used to apply rule action after ipfw_dyn_lookup_state(). Some rule actions use IPFW_INC_RULE_COUNTER() directly to this rule pointer to increment rule counters, but other rule actions use chain->map[f_pos] instead. The last case leads to incrementing counters on the wrong rule, because ORPHANED states have not parent rule in chain->map[]. To solve this we add protected rule, that will be matched only by packets that are handled by ORPHANED states. This is `count' rule that is prior to the default rule: 65535 count ip from any to any not // orphaned dynamic states counter Obtained from: Yandex LLC Sponsored by: Yandex LLC Differential Revision: https://reviews.freebsd.org/D51460
Diffstat (limited to '(developers-only)')
0 files changed, 0 insertions, 0 deletions