diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2026-08-27 13:02:37 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2026-08-27 13:33:10 +0000 |
| commit | 00a793def743b5be8fcbdd39fc1dfa61534ed66c (patch) | |
| tree | c56091ad7e43615fd92e3efe7ce297f7b2f57282 /source/Target/ThreadPlanPython.cpp | |
| parent | 901a242269b208613a3e4fc02f78c52b7eeed828 (diff) | |
pf: Fix fallout from the STATE_LOOKUP macro removal
Commit 8572367b6814 ("pf: remove STATE_LOOKUP") introduced two seemingly
unintentional changes with respect to divert(4)-injected packets (i.e.,
the PACKET_LOOPED case): we no longer return the matching state, and
direct callers of pf_find_state() now treat matches of diverted packets
the same as having no matching state at all.
This seems inadvertent, and breaks certain rulesets which use divert-to.
Fix them, and add a regression test case.
Fixes: 8572367b6814 ("pf: remove STATE_LOOKUP")
Reviewed by: kp
MFC after: 2 weeks
Sponsored by: OPNsense
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D59015
Diffstat (limited to 'source/Target/ThreadPlanPython.cpp')
0 files changed, 0 insertions, 0 deletions
