aboutsummaryrefslogtreecommitdiff
path: root/test/Other/(developers-only)
diff options
context:
space:
mode:
authorKajetan Staszkiewicz <ks@FreeBSD.org>2025-06-05 18:40:28 +0000
committerKajetan Staszkiewicz <ks@FreeBSD.org>2025-07-13 11:48:39 +0000
commitcbd06dd2afd543fc3cb9aa95ab2219a9ec60619d (patch)
treeb35df24f6531087354b28c36ff059b2916af9936 /test/Other/(developers-only)
parent5031da20599bb1163f0e8d1c4b415ab3bbebce00 (diff)
pf: Fix error handling when pf_map_addr() failsHEADmain
When pf_map_addr() fails, for example for a NAT pool, we expect packet will not be forwarded. The error returned by pf_map_addr() has been ignored in pf_map_addr_sn(), though, causing packets being forwarded without NAT applied. Catch the error, return the error to caller, let the caller handle error counters for route-to pools just like it does for NAT pools. Add tests for NAT and route-to rules. Improve logging by not hardcoding function name and use __func__ instead. Reviewed by: kp Approved by: kp Sponsored by: InnoGames GmbH Differential Revision: https://reviews.freebsd.org/D50763
Diffstat (limited to 'test/Other/(developers-only)')
0 files changed, 0 insertions, 0 deletions