HomeFreeBSD

pf: Fix interface counters for af-to rules

Description

pf: Fix interface counters for af-to rules

An inbound af-to rule creates a state bypassing outbound pf_test().
In such case increase counters of the outbound interface directly in
pf_route() for post-af-to address family.

For outbound af-to rules ensure that post-af-to address family is used
to increase interface counters.

Reviewed by: kp
Sponsored by: InnoGames GmbH
Differential Revision: https://reviews.freebsd.org/D52448

Details

Provenance
vegeta_tuxpowered.netAuthored on Sep 8 2025, 5:53 PM
Reviewer
kp
Differential Revision
D52448: pf: Fix interface counters for af-to rules
Parents
rG6353f5d9a5c6: pf: Fix rule and state counters
Branches
Unknown
Tags
Unknown